{"id":"CVE-2023-52596","summary":"sysctl: Fix out of bounds access for empty sysctl registers","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsysctl: Fix out of bounds access for empty sysctl registers\n\nWhen registering tables to the sysctl subsystem there is a check to see\nif header is a permanently empty directory (used for mounts). This check\nevaluates the first element of the ctl_table. This results in an out of\nbounds evaluation when registering empty directories.\n\nThe function register_sysctl_mount_point now passes a ctl_table of size\n1 instead of size 0. It now relies solely on the type to identify\na permanently empty register.\n\nMake sure that the ctl_table has at least one element before testing for\npermanent emptiness.","modified":"2026-05-18T05:57:11.122155764Z","published":"2024-03-06T06:45:26.094Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52596.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/15893975e9e382f8294ea8d926f08dc2d8d39ede"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ae7081bc10123b187e36a4f3a8e53768de31489"},{"type":"WEB","url":"https://git.kernel.org/stable/c/315552310c7de92baea4e570967066569937a843"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52596.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52596"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9edbfe92a0a1355bae1e47c8f542ac0d39f19f8c"},{"fixed":"15893975e9e382f8294ea8d926f08dc2d8d39ede"},{"fixed":"2ae7081bc10123b187e36a4f3a8e53768de31489"},{"fixed":"315552310c7de92baea4e570967066569937a843"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52596.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.6.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.7.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52596.json"}}],"schema_version":"1.7.5"}