CVE-2024-46764
JSON

7.3high

bpf: add check for invalid name in btf_name_valid_section()

Severity
7.3high CVSS:3.1 by Linux
Exploit likelihood
0.28% (higher than 13% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.9 before 6.10.10, 6.11NVD

All scores

Linux7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: añadir comprobación de nombre no válido en btf_name_valid_section() Si la longitud de la cadena de nombre es 1 y el valor de name[0] es un byte NULL, se produce una vulnerabilidad OOB en btf_name_valid_section() y el valor de retorno es verdadero, por lo que el nombre no válido pasa la comprobación. Para resolver esto, debe comprobar si la primera posición es un byte NULL y si el primer carácter es imprimible.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-46764 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-46764 changed 2026-08-04Public domain