CVE-2022-49875: bpftool: Fix NULL pointer dereference when pin {PROG, MAP, LINK} without FILE

Published May 1, 2025
·
Updated

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:

dopin dopinany dopinfd mountbpffsforpin strlen(name) <- NULL pointer dereference

Fix it by adding validation to the common process.

Affected Software

8 affected components
Linux Linux kernel
Linux Linux kernel>=5.7<5.10.155
Linux Linux kernel>=5.11<5.15.79
Linux Linux kernel>=5.16<6.0.9
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4

Event History

May 1, 2025
CVE Published
via MITRE·02:10 PM
Data Sourced
via MITRE·02:10 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49875?

CVE-2022-49875 has a severity rating that reflects the potential for denial of service due to segmentation faults in the Linux kernel.

2

How do I fix CVE-2022-49875?

To fix CVE-2022-49875, update your Linux kernel to the latest patched version provided by your distribution.

3

What systems are affected by CVE-2022-49875?

CVE-2022-49875 affects the Linux kernel, specifically when using bpftool to pin {PROG, MAP, LINK} without specifying a FILE.

4

What type of vulnerability is CVE-2022-49875?

CVE-2022-49875 is a vulnerability that leads to a NULL pointer dereference and potential segmentation fault.

5

When was CVE-2022-49875 first reported?

CVE-2022-49875 was reported and addressed in 2022 as part of kernel updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203