CVE-2022-49875
published 2025-05-01CVE-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…
PriorityP419medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.20%
10.5th percentile
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
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.0.10-1 (bookworm) | linux 6.0.10-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 75a1e792c335b5c6d7fdb1014da47aeb64c5944f < 8c80b2fca4112d724dde477aed13f7b0510a2792 | 8c80b2fca4112d724dde477aed13f7b0510a2792 |
| linux | linux | >= 75a1e792c335b5c6d7fdb1014da47aeb64c5944f < 6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a | 6dcdd1b68b7f9333d48d48fc77b75e7f235f6a4a |
| linux | linux | >= 75a1e792c335b5c6d7fdb1014da47aeb64c5944f < da5161ba94c5e9182c301dd4f09c94f715c068bd | da5161ba94c5e9182c301dd4f09c94f715c068bd |
| linux | linux | >= 75a1e792c335b5c6d7fdb1014da47aeb64c5944f < 34de8e6e0e1f66e431abf4123934a2581cb5f133 | 34de8e6e0e1f66e431abf4123934a2581cb5f133 |
| linux | linux_kernel | — | — |
| linux | linux_kernel | >= 0 < 5.10.158-1 | 5.10.158-1 |
| linux | linux_kernel | >= 0 < 6.0.10-1 | 6.0.10-1 |
| linux | linux_kernel | >= 0 < 6.0.10-1 | 6.0.10-1 |
| linux | linux_kernel | >= 0 < 6.0.10-1 | 6.0.10-1 |
| linux | linux_kernel | >= 5.11 < 5.15.79 | 5.15.79 |
| linux | linux_kernel | >= 5.16 < 6.0.9 | 6.0.9 |
| linux | linux_kernel | >= 5.7 < 5.10.155 | 5.10.155 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE
vendor_redhat·2025-05-01·CVSS 5.5
CVE-2022-49875 [MEDIUM] CWE-476 kernel: bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE
kernel: bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE
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.
A flaw was found in the bpftool distributed by the Linux kernel. A NULL pointer dereference can be triggered when bpftool is used to pin PROG, MAP, LINK without FILE due to a missing validation. This is
Debian
CVE-2022-49875: linux - In the Linux kernel, the following vulnerability has been resolved: bpftool: Fi...
vendor_debian·2022·CVSS 5.5
CVE-2022-49875 [MEDIUM] CVE-2022-49875: linux - In the Linux kernel, the following vulnerability has been resolved: bpftool: Fi...
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.
Scope: local
bookworm: resolved (fixed in 6.0.10-1)
bullseye: resolved (fixed in 5.10.158-1)
forky: resolved (fixed in 6.0.10-1)
sid: resolved (fixed in 6.0.10-1)
trixie: resolved (fixed in 6.0.10-1)
OSV
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
osv·2025-05-01·CVSS 5.5
CVE-2022-49875 [MEDIUM] 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
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.
GHSA
GHSA-c8r4-j2q4-mjgj: In the Linux kernel, the following vulnerability has been resolved:
bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE
Wh
ghsa_unreviewed·2025-05-01
CVE-2022-49875 [MEDIUM] CWE-476 GHSA-c8r4-j2q4-mjgj: In the Linux kernel, the following vulnerability has been resolved:
bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE
Wh
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.
No detection rules found.
No public exploits indexed.
2025-05-01
Published