Vulnerabilities · 2022 · Linux
CVE-2022-49875
Linux Kernel vulnerability
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 products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/34de8e6e0e1f66e431abf4123934a2581cb5f133 · Patch
- git.kernel.org/stable/c/6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a · Patch
- git.kernel.org/stable/c/8c80b2fca4112d724dde477aed13f7b0510a2792 · Patch
- git.kernel.org/stable/c/da5161ba94c5e9182c301dd4f09c94f715c068bd · Patch
- nvd.nist.gov/vuln/detail/CVE-2022-49875
- cve.org/CVERecord?id=CVE-2022-49875
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.