Skip to content
Heist/ feed
Back to feed
UnratedFix available

sysctl: Fix out of bounds access for empty sysctl registers

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.6.16, 6.7.4
CVEs
CVE-2023-52596
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 00:38 UTC · Revision 1

Source evidence

sysctl: Fix out of bounds access for empty sysctl registers

core-osv · Original source

Published 6 Mar 2024, 06:45 UTC

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.

osv:CVE-2023-52596

Kernel

Fixed versions: 6.6.16, 6.7.4

Complete source record
{
  "id": "7e5417fb69c9766bf31b0a065cfed676c1a63ea4cbbcd55aeb9bec5ce8db3659",
  "url": "https://osv.dev/vulnerability/CVE-2023-52596",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "sysctl: Fix out of bounds access for empty sysctl registers",
    "summary": "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.",
    "evidence": "osv:CVE-2023-52596",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-52596",
      "aliases": [
        "CVE-2023-52596"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9edbfe92a0a1355bae1e47c8f542ac0d39f19f8c"
                },
                {
                  "fixed": "15893975e9e382f8294ea8d926f08dc2d8d39ede"
                },
                {
                  "fixed": "2ae7081bc10123b187e36a4f3a8e53768de31489"
                },
                {
                  "fixed": "315552310c7de92baea4e570967066569937a843"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52596.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.6.0"
                },
                {
                  "fixed": "6.6.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52596.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.547372829Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/15893975e9e382f8294ea8d926f08dc2d8d39ede",
        "https://git.kernel.org/stable/c/2ae7081bc10123b187e36a4f3a8e53768de31489",
        "https://git.kernel.org/stable/c/315552310c7de92baea4e570967066569937a843",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52596.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52596",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52596.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52596",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 513554,
  "published_at": "2024-03-06T06:45:26.094+00:00"
}