CVE-2022-49875

published 1 May 2025 · updated 11 May 2026

bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 34de8e6e0e1f66e431abf4123934a2581cb5f133, Kernel 6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a, Kernel 8c80b2fca4112d724dde477aed13f7b0510a2792 and 1 more.

In the Linux kernel, the following vulnerability has been resolved: bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE When using bpftool to pin {PROG, MAP, LINK} without FILE, segmentation fault will occur. The reson is that the lack of FILE will cause strlen to trigger NULL pointer dereference. The corresponding stacktrace is shown below: do_pin do_pin_any do_pin_fd mount_bpffs_for_pin strlen(name) <- NULL pointer dereference Fix it by adding validation to the common process.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.7, >=75a1e792c335b5c6d7fdb1014da47aeb64c5944f <34de8e6e0e1f66e431abf4123934a2581cb5f133, >=75a1e792c335b5c6d7fdb1014da47aeb64c5944f <6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a, >=75a1e792c335b5c6d7fdb1014da47aeb64c5944f <8c80b2fca4112d724dde477aed13f7b0510a2792, >=75a1e792c335b5c6d7fdb1014da47aeb64c5944f <da5161ba94c5e9182c301dd4f09c94f715c068bd34de8e6e0e1f66e431abf4123934a2581cb5f133, 6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a, 8c80b2fca4112d724dde477aed13f7b0510a2792, da5161ba94c5e9182c301dd4f09c94f715c068bd

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49875 severity on Zeptric[![CVE-2022-49875](https://zeptric.io/badge/cve/CVE-2022-49875.svg)](https://zeptric.io/cve/CVE-2022-49875)