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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 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_kernel | before 6.6.16, from 6.7 before 6.7.4 | NVD |
Classification
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
| https://git.kernel.org/stable/c/15893975e9e382f8294ea8d926f08dc2d8d39ede | mailing-list, patch | |
| https://git.kernel.org/stable/c/2ae7081bc10123b187e36a4f3a8e53768de31489 | mailing-list, patch | |
| https://git.kernel.org/stable/c/315552310c7de92baea4e570967066569937a843 | mailing-list, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52596 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-52596 changed 2026-06-17 | Public domain |