What’s Vulnerable › Vulnerabilities
CVE-2024-46764: bpf: add check for invalid name in btf_name_valid_section()
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-09-18 · updated 2026-08-04
- Weakness: CWE-125
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: add check for invalid name in btf_name_valid_section() If the length of the name string is 1 and the value of name[0] is NULL byte, an OOB vulnerability occurs in btf_name_valid_section() and the return value is true, so the invalid name passes the check. To solve this, you need to check if the first position is NULL byte and if the first character is printable.
Affected products
- Linux kernel: from 6.9 before 6.10.10; 6.11-rc1, 6.11-rc2, 6.11-rc3, 6.11-rc4, 6.11-rc5, 6.11-rc6 — fixed in 6.10.10
How to fix
Upgrade to a fixed version: Linux kernel 6.10.10. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/bb6705c3f93bed2af03d43691743d4c43e3c8e6f
- https://git.kernel.org/stable/c/c8ffe2d4d37a05ce18c71b87421443c16f8475e5
Get alerted when CVE-2024-46764 or the next vulnerability affects your stack