{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9ce67395f5a0cdec6ce152d26bfda13b98b25c01"
            },
            {
              "fixed": "6256899c3a34674bba6076884aedbba49fc695e4"
            },
            {
              "fixed": "7e706d50fa119eead6376bf0ef973e8d73a96030"
            },
            {
              "fixed": "2382971aaaef5bf85a651234c64906f59580b8be"
            },
            {
              "fixed": "0d18ccef142f04433dfb2a0c120cf223d2b8a42c"
            },
            {
              "fixed": "648927ceb84021a25a0fbd5673740956f318d534"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.96"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.39"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64368.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/slab: do not limit zeroing to orig_size when only red zoning is enabled\n\nWhen init (zeroing) on allocation is requested, for kmalloc() we\ngenerally have to zero the full object size even if a smaller size is\nrequested, in order to provide krealloc()'s __GFP_ZERO guarantees.\n\nBut if we track the requested size, krealloc() uses that information to\ndo the right thing, so we can zero only the requested size. With red\nzoning also enabled, any extra size became part of the red zone, so it\nmust not be zeroed and thus we must zero only the requested size.\n\nHowever the current check is imprecise, and will trigger also when only\nSLAB_RED_ZONE is enabled without SLAB_STORE_USER (which enables tracking\nthe requested size). This means enabling red zoning alone can compromise\nkrealloc()'s __GFP_ZERO contract.\n\nFix this by using slub_debug_orig_size() instead, which is the exact\ncheck for whether the requested size is tracked. We don't need to care\nif red zoning is also enabled or not. Also update and expand the\ncomment accordingly.",
  "id": "CVE-2026-64368",
  "modified": "2026-07-28T03:56:09.121752152Z",
  "published": "2026-07-25T08:50:21.831Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0d18ccef142f04433dfb2a0c120cf223d2b8a42c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2382971aaaef5bf85a651234c64906f59580b8be"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6256899c3a34674bba6076884aedbba49fc695e4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/648927ceb84021a25a0fbd5673740956f318d534"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7e706d50fa119eead6376bf0ef973e8d73a96030"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64368.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64368"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "mm/slab: do not limit zeroing to orig_size when only red zoning is enabled"
}