CVE-2024-46764

bpf: add check for invalid name in btf_name_valid_section()

State
Published
Severity
7.3 High
Published
Sep 18, 2024
Updated
Aug 5, 2026
Reserved
Sep 11, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • bd70a8fb7ca4fcb078086f4d96b048aaf1aa4786 to before c8ffe2d4d37a05ce18c71b87421443c16f8475e5Affected
  • bd70a8fb7ca4fcb078086f4d96b048aaf1aa4786 to before bb6705c3f93bed2af03d43691743d4c43e3c8e6fAffected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.10.10 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.