CVE-2022-49875
bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE
- Published
- Updated
- Reserved
- Assigned by
- Linux
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.
Timeline
ID reserved
By Linux
Published
- 13 months later
· 13 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.21% · top 88% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
- affected 75a1e792c335b5c6d7fdb1014da47aeb64c5944f – < 8c80b2fca4112d724dde477aed13f7b0510a2792
- affected 75a1e792c335b5c6d7fdb1014da47aeb64c5944f – < 6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a
- affected 75a1e792c335b5c6d7fdb1014da47aeb64c5944f – < da5161ba94c5e9182c301dd4f09c94f715c068bd
- affected 75a1e792c335b5c6d7fdb1014da47aeb64c5944f – < 34de8e6e0e1f66e431abf4123934a2581cb5f133
- affected 5.7
- unaffected < 5.7
- unaffected 5.10.155 – ≤ 5.10.*
- unaffected 5.15.79 – ≤ 5.15.*
- unaffected 6.0.9 – ≤ 6.0.*
- unaffected 6.1 – ≤ *
References (4)
- https://git.kernel.org/stable/c/8c80b2fca4112d724dde477aed13f7b0510a2792 (opens in a new tab)
- https://git.kernel.org/stable/c/6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a (opens in a new tab)
- https://git.kernel.org/stable/c/da5161ba94c5e9182c301dd4f09c94f715c068bd (opens in a new tab)
- https://git.kernel.org/stable/c/34de8e6e0e1f66e431abf4123934a2581cb5f133 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-49875)Record last updated .