# CVE-2023-52596: sysctl: Fix out of bounds access for empty sysctl registers

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-03-06T06:45:26.094Z
- Modified: 2026-06-17T06:43:06.807Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: before 6.6.16; from 6.7 before 6.7.4

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

- CVE List: [CVE-2023-52596](https://www.cve.org/CVERecord?id=CVE-2023-52596), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52596](https://nvd.nist.gov/vuln/detail/CVE-2023-52596), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52596 · Whole record: https://cve.day/CVE-2023-52596.json · Rebuilt by cve.day 2026-11-25T22:58:33.279Z
