# CVE-2026-74576: mm/slab: prevent unbounded recursion in free path with new kmalloc type

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **Published:** 2026-08-15T12:28:13.798Z
- **Modified:** 2026-10-16T20:17:39.233Z

## Who should check

- Anyone running Linux \>= 4b8736964640fe160724e7135dc62883bddcdace, \< 3e71bfbdd3fd81ee9fefd867fdb2be62bade4140; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< d01e88d421a6d07f35235600a43fbd0e551cf292; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< ebefca49e4c69df24ba9307bfe0806230301d5c6; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< d9e6a7623938968e3752b67e37eaff097e559a54
- Anyone running Linux 6.10

## Description

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

mm/slab: prevent unbounded recursion in free path with new kmalloc type

Commit 280ea9c3154b ("mm/slab: avoid allocating slabobj\_ext array from
its own slab") avoided recursive allocation of obj\_exts from kmalloc
caches of the same size, by bumping the obj\_exts array's allocation
size whenever the array size equals the size of the object being
allocated.

However, as reported by Danielle Costantino and Shakeel Butt,
even slabs from kmalloc caches of different sizes can form a cycle
by allocating obj\_exts arrays from each other \[1\]:

  What happened: a KMALLOC\_NORMAL slab's obj\_exts array (used by
  allocation profiling / memcg accounting) is itself kmalloc()'d from a
  KMALLOC\_NORMAL cache, so the "slab holds another slab's obj\_exts array"
  relation can form cycles. With sizeof(struct slabobj\_ext) == 16 and
  the host's geometry:

  - kmalloc-512 has 64 objects/slab -\> array is 64\*16 == 1024 bytes,
    served from kmalloc-1k;
  - kmalloc-1k  has 32 objects/slab -\> array is 32\*16 ==  512 bytes,
    served from kmalloc-512.

  A kmalloc-512 slab and a kmalloc-1k slab therefore hold each other's
  obj\_exts array.  Discarding one frees the other's array, which empties
  and discards that slab, which frees the first's array, and so on:
  \_\_free\_slab() -\> free\_slab\_obj\_exts() -\> kfree() -\> discard\_slab() -\>
  \_\_free\_slab() recurses along the cycle until the stack is exhausted.

With memory allocation profiling, this allows unbounded recursion
in the free path and led to a stack overflow on a production host in
the Meta fleet \[1\]:

  BUG: TASK stack guard page was hit
  Oops: stack guard page
  RIP: 0010:kfree+0x8/0x5d0
  Call Trace:
   \_\_free\_slab+0x66/0xc0
   kfree+0x3f0/0x5d0
   ... ( ~125x \_\_free\_slab \<-\> kfree ) ...
   \<kernel driver freeing a resource\>
   do\_syscall\_64

It is proposed \[1\] to resolve this issue by always serving the obj\_exts
array allocation from kmalloc caches (or large kmalloc) of sizes larger
than the object size. However, as pointed out by Vlastimil Babka \[2\],
this can waste an excessive amount of memory as slabs from large
kmalloc sizes (e.g. kmalloc-8k) generally need obj\_exts arrays much
smaller than the object size.

Therefore, rather than bumping the size, let us take a different
approach; disallow formation of cycles between kmalloc types when
allocating obj\_exts arrays. Currently, all obj\_exts arrays are served
from normal kmalloc caches. Cycles cannot be created if obj\_exts arrays
of normal kmalloc caches are served from a special kmalloc type that can
never have obj\_exts arrays.

To achieve this, create a new kmalloc type called KMALLOC\_NO\_OBJ\_EXT.
KMALLOC\_NO\_OBJ\_EXT caches are created with SLAB\_NO\_OBJ\_EXT flag when
either 1) memory allocation profiling is not permanently disabled,
or 2) kmalloc types with a priority higher than KMALLOC\_CGROUP are
aliased with KMALLOC\_NORMAL.

Sheaf bootstrapping for KMALLOC\_NO\_OBJ\_EXT caches now must be deferred
because allocation of a barn can trigger obj\_exts array allocation of
normal kmalloc caches when the KMALLOC\_NO\_OBJ\_EXT cache for that size
is not ready yet. For simplicity, perform bootstrapping of sheaves for
all kmalloc caches later.

Introduce a new slab alloc flag, SLAB\_ALLOC\_NO\_OBJ\_EXT, to prevent
allocation of obj\_exts arrays, and let kmalloc\_slab() override the type
to KMALLOC\_NO\_OBJ\_EXT when specified. Note that kmalloc\_type() remains
unchanged because kmalloc\_flags() bypasses the kmalloc fastpath.

Do not pass SLAB\_ALLOC\_NO\_RECURSE to kmalloc\_flags() in
alloc\_slab\_obj\_exts() and instead use SLAB\_ALLOC\_NO\_OBJ\_EXT only when
the objects are allocated from normal kmalloc caches. While this
prevents unbounded recursive allocation of obj\_exts, it allows
KMALLOC\_NO\_OBJ\_EXT caches to have sheaves.

Since sheaf allocations specify SLAB\_ALLOC\_NO\_RECURSE that prevents
allocation of both sheaves and obj\_exts arrays, the recursion depth
is bounded.

obj\_exts arrays for non-
---truncated---

## Affected and fixed versions

- Linux: \>= 4b8736964640fe160724e7135dc62883bddcdace, \< 3e71bfbdd3fd81ee9fefd867fdb2be62bade4140; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< d01e88d421a6d07f35235600a43fbd0e551cf292; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< ebefca49e4c69df24ba9307bfe0806230301d5c6; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< d9e6a7623938968e3752b67e37eaff097e559a54 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74576. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74576.md
Affected: Linux >= 4b8736964640fe160724e7135dc62883bddcdace, < 3e71bfbdd3fd81ee9fefd867fdb2be62bade4140; >= 4b8736964640fe160724e7135dc62883bddcdace, < d01e88d421a6d07f35235600a43fbd0e551cf292; >= 4b8736964640fe160724e7135dc62883bddcdace, < ebefca49e4c69df24ba9307bfe0806230301d5c6; >= 4b8736964640fe160724e71…
Fixed in: Linux 3e71bfbdd3fd81ee9fefd867fdb2be62bade4140

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74576 being exploited?

There is no confirmed exploitation: CVE-2026-74576 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74576?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-74576?

Linux \>= 4b8736964640fe160724e7135dc62883bddcdace, \< 3e71bfbdd3fd81ee9fefd867fdb2be62bade4140; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< d01e88d421a6d07f35235600a43fbd0e551cf292; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< ebefca49e4c69df24ba9307bfe0806230301d5c6; \>= 4b8736964640fe160724e7135dc62883bddcdace, \< d9e6a7623938968e3752b67e37eaff097e559a54; Linux 6.10.

### Is there a fix for CVE-2026-74576?

Yes. Fixed in Linux 3e71bfbdd3fd81ee9fefd867fdb2be62bade4140. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-74576?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3e71bfbdd3fd81ee9fefd867fdb2be62bade4140>
- other: <https://git.kernel.org/stable/c/d01e88d421a6d07f35235600a43fbd0e551cf292>
- other: <https://git.kernel.org/stable/c/ebefca49e4c69df24ba9307bfe0806230301d5c6>
- other: <https://git.kernel.org/stable/c/d9e6a7623938968e3752b67e37eaff097e559a54>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74576>

HTML: <https://flawdb.com/CVE-2026-74576> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74576>
