NULL pointer dereference in Linux
CVE-2022-49875
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.
EPSS: 0.002 (9.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Linux — versions 75a1e792c335b5c6d7fdb1014da47aeb64c5944f, 5.7, 0
- Linux Linux_kernel — versions 6.1
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2022-49875?
- CVE-2022-49875 is a medium-severity vulnerability in Linux, classified under NULL Pointer Dereference. CVSS score: 5.5/10. Published 2025-05-01.
- How severe is CVE-2022-49875?
- Medium severity. CVSS v3 base score is 5.5 out of 10.