CVE-2023-52596
JSON

5.5medium

sysctl: Fix out of bounds access for empty sysctl registers

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: sysctl: Fix out of bounds access for empty sysctl registers When registering tables to the sysctl subsystem there is a check to see if header is a permanently empty directory (used for mounts). This check evaluates the first element of the ctl_table. This results in an out of bounds evaluation when registering empty directories. The function register_sysctl_mount_point now passes a ctl_table of size 1 instead of size 0. It now relies solely on the type to identify a permanently empty register. Make sure that the ctl_table has at least one element before testing for permanent emptiness.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 9edbfe92a0a1355bae1e47c8f542ac0d39f19f8c before 15893975e9e382f8294ea8d926f08dc2d8d39ede, from 9edbfe92a0a1355bae1e47c8f542ac0d39f19f8c before 2ae7081bc10123b187e36a4f3a8e53768de31489, from 9edbfe92a0a1355bae1e47c8f542ac0d39f19f8c before 315552310c7de92baea4e570967066569937a843, 6.6
Not affected: before 6.6, from 6.6.16 up to 6.6.*, from 6.7.4 up to 6.7.*, from 6.8 up to *
CVE List
linux linux_kernelbefore 6.6.16, from 6.7 before 6.7.4NVD

Classification

CWE-787

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: sysctl: Fix out of bounds access for empty sysctl registers When registering tables to the sysctl subsystem there is a check to see if header is a permanently empty directory (used for mounts). This check evaluates the first element of the ctl_table. This results in an out of bounds evaluation when registering empty directories. The function register_sysctl_mount_point now passes a ctl_table of size 1 instead of size 0. It now relies solely on the type to identify a permanently empty register. Make sure that the ctl_table has at least one element before testing for permanent emptiness.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: sysctl: corrige el acceso fuera de los límites para registros sysctl vacíos. Al registrar tablas en el subsistema sysctl, se verifica si el encabezado es un directorio permanentemente vacío (usado para montajes). Esta verificación evalúa el primer elemento de ctl_table. Esto da como resultado una evaluación fuera de los límites al registrar directorios vacíos. La función Register_sysctl_mount_point ahora pasa un ctl_table de tamaño 1 en lugar de tamaño 0. Ahora se basa únicamente en el tipo para identificar un registro permanentemente vacío. Asegúrese de que ctl_table tenga al menos un elemento antes de probar el vacío permanente.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52596 changed 2026-05-11CVE Terms of Use
NVDCVE-2023-52596 changed 2026-06-17Public domain