Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.7, < 5.10.155 |
Related Weaknesses (CWE)
References
- https://git.kernel.org/stable/c/34de8e6e0e1f66e431abf4123934a2581cb5f133Patch
- https://git.kernel.org/stable/c/6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4aPatch
- https://git.kernel.org/stable/c/8c80b2fca4112d724dde477aed13f7b0510a2792Patch
- https://git.kernel.org/stable/c/da5161ba94c5e9182c301dd4f09c94f715c068bdPatch
FAQ
What is CVE-2022-49875?
CVE-2022-49875 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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 ...
How severe is CVE-2022-49875?
CVE-2022-49875 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-49875?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel.