# CVE-2024-46764: bpf: add check for invalid name in btf_name_valid_section()

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2024-09-18T07:12:23.591Z
- Modified: 2026-08-05T11:38:26.724Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from bd70a8fb7ca4fcb078086f4d96b048aaf1aa4786 before c8ffe2d4d37a05ce18c71b87421443c16f8475e5; from bd70a8fb7ca4fcb078086f4d96b048aaf1aa4786 before bb6705c3f93bed2af03d43691743d4c43e3c8e6f; 6.9 (not affected: before 6.9; from 6.10.10 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.9 before 6.10.10; 6.11

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c8ffe2d4d37a05ce18c71b87421443c16f8475e5> (patch)
- <https://git.kernel.org/stable/c/bb6705c3f93bed2af03d43691743d4c43e3c8e6f> (patch)

## Sources

- CVE List: [CVE-2024-46764](https://www.cve.org/CVERecord?id=CVE-2024-46764), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-46764](https://nvd.nist.gov/vuln/detail/CVE-2024-46764), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-46764 · Whole record: https://cve.day/CVE-2024-46764.json · Rebuilt by cve.day 2026-11-25T22:58:45.560Z
