# CVE-2026-64368: mm/slab: do not limit zeroing to orig_size when only red zoning is enabled

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/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.42%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-07-25T08:50:21.831Z
- Modified: 2026-10-19T21:17:33.260Z
- Weaknesses: CWE-665
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/slab: do not limit zeroing to orig_size when only red zoning is enabled

When init (zeroing) on allocation is requested, for kmalloc() we
generally have to zero the full object size even if a smaller size is
requested, in order to provide krealloc()'s __GFP_ZERO guarantees.

But if we track the requested size, krealloc() uses that information to
do the right thing, so we can zero only the requested size. With red
zoning also enabled, any extra size became part of the red zone, so it
must not be zeroed and thus we must zero only the requested size.

However the current check is imprecise, and will trigger also when only
SLAB_RED_ZONE is enabled without SLAB_STORE_USER (which enables tracking
the requested size). This means enabling red zoning alone can compromise
krealloc()'s __GFP_ZERO contract.

Fix this by using slub_debug_orig_size() instead, which is the exact
check for whether the requested size is tracked. We don't need to care
if red zoning is also enabled or not. Also update and expand the
comment accordingly.

(As written by CVE List.)

## Affected

- Linux Linux: from 9ce67395f5a0cdec6ce152d26bfda13b98b25c01 before 6256899c3a34674bba6076884aedbba49fc695e4; from 9ce67395f5a0cdec6ce152d26bfda13b98b25c01 before 7e706d50fa119eead6376bf0ef973e8d73a96030; from 9ce67395f5a0cdec6ce152d26bfda13b98b25c01 before 2382971aaaef5bf85a651234c64906f59580b8be; from 9ce67395f5a0cdec6ce152d26bfda13b98b25c01 before 0d18ccef142f04433dfb2a0c120cf223d2b8a42c; from 9ce67395f5a0cdec6ce152d26bfda13b98b25c01 before 648927ceb84021a25a0fbd5673740956f318d534; 6.2 (not affected: before 6.2; from 6.6.145 up to 6.6.*; from 6.12.96 up to 6.12.*; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.2 before 6.6.145; from 6.7 before 6.12.96; from 6.13 before 6.18.39; from 6.19 before 7.1.4

## References

- <https://git.kernel.org/stable/c/6256899c3a34674bba6076884aedbba49fc695e4> (patch)
- <https://git.kernel.org/stable/c/7e706d50fa119eead6376bf0ef973e8d73a96030> (patch)
- <https://git.kernel.org/stable/c/2382971aaaef5bf85a651234c64906f59580b8be> (patch)
- <https://git.kernel.org/stable/c/0d18ccef142f04433dfb2a0c120cf223d2b8a42c> (patch)
- <https://git.kernel.org/stable/c/648927ceb84021a25a0fbd5673740956f318d534> (patch)

## Sources

- CVE List: [CVE-2026-64368](https://www.cve.org/CVERecord?id=CVE-2026-64368), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-64368](https://nvd.nist.gov/vuln/detail/CVE-2026-64368), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-64368 · Whole record: https://cve.day/CVE-2026-64368.json · Rebuilt by cve.day 2026-11-25T22:59:30.089Z
