# CVE-2026-142796: mm/slab: sample slab\_state once in kmem\_cache\_destroy()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:28.267Z
- **Modified:** 2026-12-03T04:18:13.063Z

## Who should check

- Anyone running Linux \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< e92aeeb4c3704f036ad1563630882b39f4c6c801; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 590f48b5644319437ad2bb8d64d5cfd4f5a5ed7b; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 93c839762ea9fa7339722ec815b9e32597858ed5; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 088bfdc0d7947d623f4899b9011c866e4445074d
- Anyone running Linux 3.2

## Description

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

mm/slab: sample slab\_state once in kmem\_cache\_destroy()

kmem\_cache\_release() tests slab\_state \>= FULL after kmem\_cache\_destroy()
has dropped slab\_mutex and unlinked the cache, and for a
SLAB\_TYPESAFE\_BY\_RCU cache after rcu\_barrier(). If slab\_late\_init() runs
before that test it sets slab\_state to FULL but skips the unlinked cache,
which never got a sysfs entry, so sysfs\_slab\_release() calls kobject\_put()
on a kobject that was never initialized:

  WARNING: lib/kobject.c:734 at kobject\_put+0x64/0x2c0, CPU\#1: kworker/u8:3/55
  kobject: '(null)' ((\_\_\_\_ptrval\_\_\_\_)): is not initialized, yet kobject\_put() is being called.
  refcount\_t: underflow; use-after-free.
  kobject\_put+0x64/0x2c0
  sysfs\_slab\_release+0xc/0x20
  kmem\_cache\_destroy+0x104/0x1e0
  bioset\_exit+0x13c/0x1e0
  disk\_release+0x54/0x140
  put\_disk+0x18/0x40
  floppy\_async\_init+0xbec/0xd10

slab\_state \>= FULL asks whether the cache has a kobject, which cache
creation skips while slab\_state \<= UP. UP is the state just below FULL,
so a false sample cannot skip a kobject\_put() that was owed.

Seen on sparc64 at boot, where the asynchronous floppy init tears down
its bio slab while the late initcalls are running.

Sample slab\_state once, under slab\_mutex which slab\_late\_init() holds
when it sets FULL, and use the result for both the unlink and the
release.

The history of this problem dates back to v3.2:

  Commit 69cb8e6b7c29 ("slub: free slabs without holding locks") in
  v3.2 moved sysfs\_slab\_remove() outside slub\_lock and introduced
  a race condition between kmem\_cache\_destroy() and slab\_sysfs\_init().

  Commit 945cf2b6199be ("mm/sl\[aou\]b: Extract a common function for
  kmem\_cache\_destroy") in v3.7 accidentally closed the race while
  extracting a common implementation for kmem\_cache\_destroy().

  Commit 5413dfba88d6 ("slub: drop mutex before deleting sysfs entry")
  in v3.8 re-opened the race by dropping slab\_mutex around
  sysfs\_slab\_remove() in \_\_kmem\_cache\_shutdown(), to avoid a lockdep
  splat between slab\_mutex and the sysfs lock.

  Commit 657dc2f97220 ("slab: remove synchronous rcu\_barrier() call in
  memcg cache release path") in v4.11 shifted from synchronous
  rcu\_barrier() to asynchronous RCU work for SLAB\_TYPESAFE\_BY\_RCU caches.
  That commit, again, accidentally closed the race by moving
  sysfs\_slab\_release() to shutdown\_cache(), but only for
  !SLAB\_TYPESAFE\_BY\_RCU caches because destruction of
  SLAB\_TYPESAFE\_BY\_RCU caches is done in an RCU work.

  Commit 0495e337b703 ("mm/slab\_common: Deleting kobject in
  kmem\_cache\_destroy() without holding slab\_mutex/cpu\_hotplug\_lock") in
  v6.0 re-introduced the race for !SLAB\_TYPESAFE\_BY\_RCU caches.

## Affected and fixed versions

- Linux: \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< e92aeeb4c3704f036ad1563630882b39f4c6c801; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 590f48b5644319437ad2bb8d64d5cfd4f5a5ed7b; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 93c839762ea9fa7339722ec815b9e32597858ed5; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 088bfdc0d7947d623f4899b9011c866e4445074d (cvelist)
- Linux: 3.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 088bfdc0d7947d623f4899b9011c866e4445074d or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-142796.md
Affected: Linux >= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, < e92aeeb4c3704f036ad1563630882b39f4c6c801; >= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, < 590f48b5644319437ad2bb8d64d5cfd4f5a5ed7b; >= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, < 93c839762ea9fa7339722ec815b9e32597858ed5; >= 69cb8e6b7c2982e015d2b35…
Fixed in: Linux 590f48b5644319437ad2bb8d64d5cfd4f5a5ed7b, Linux 93c839762ea9fa7339722ec815b9e32597858ed5, Linux 088bfdc0d7947d623f4899b9011c866e4445074d

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-142796 being exploited?

There is no confirmed exploitation: CVE-2026-142796 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< e92aeeb4c3704f036ad1563630882b39f4c6c801; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 590f48b5644319437ad2bb8d64d5cfd4f5a5ed7b; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 93c839762ea9fa7339722ec815b9e32597858ed5; \>= 69cb8e6b7c2982e015d2b35a34ac2674c79e801c, \< 088bfdc0d7947d623f4899b9011c866e4445074d; Linux 3.2.

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

Yes. Fixed in Linux 590f48b5644319437ad2bb8d64d5cfd4f5a5ed7b, Linux 93c839762ea9fa7339722ec815b9e32597858ed5, Linux 088bfdc0d7947d623f4899b9011c866e4445074d. Upgrade Linux to 088bfdc0d7947d623f4899b9011c866e4445074d or later.

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

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/e92aeeb4c3704f036ad1563630882b39f4c6c801>
- other: <https://git.kernel.org/stable/c/590f48b5644319437ad2bb8d64d5cfd4f5a5ed7b>
- other: <https://git.kernel.org/stable/c/93c839762ea9fa7339722ec815b9e32597858ed5>
- other: <https://git.kernel.org/stable/c/088bfdc0d7947d623f4899b9011c866e4445074d>

## 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-142796>

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