# CVE-2026-97941: mm/slab: take n-\>list\_lock in \_\_slab\_try\_return\_freelist() to avoid race

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-26)
- **Published:** 2026-09-25T10:22:53.556Z
- **Modified:** 2026-10-19T10:17:45.267Z

## Who should check

- Anyone running Linux \>= ba742531260782a2646bc031f9a12cafebc22594, \< 570a6aaf6b52c6ec098f4811cdb52b1496f13d15; \>= ba742531260782a2646bc031f9a12cafebc22594, \< 4a724bcf5d703e18957397914d79156fa2cf1174
- Anyone running Linux 7.2

## Description

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

mm/slab: take n-\>list\_lock in \_\_slab\_try\_return\_freelist() to avoid race

Commit ba7425312607 ("mm, slab: add an optimistic
\_\_slab\_try\_return\_freelist()") incorrectly assumed that nobody has freed
an object to the slab as long as slab-\>freelist is NULL and cmpxchg
succeeds.

However, as reported by Hyunwoo Kim \[1\], other CPUs might have freed
an object to the slab, insert the slab to the partial list, then
allocated an object from the slab, and be in the middle of removing
the slab from the list under n-\>list\_lock.

Since \_\_refill\_objects\_node() puts the slab back on pc.slabs
outside n-\>list\_lock, it might insert the slab into that list while
the slab is concurrently being removed from n-\>partial.
This led to a list corruption \[1\]:

  list\_add corruption. next-\>prev should be prev
  (ffff888100000248), but was dead000000000122.
  (next=ffffea000416e410).
  kernel BUG at lib/list\_debug.c:29!
  Oops: invalid opcode: 0000 \[\#1\] SMP NOPTI
  CPU: 1 UID: 65534 PID: 144 Comm: poc Not tainted
  7.2.0-16172-gcf72cbb39da8-dirty \#1 PREEMPT(lazy)
  RIP: 0010:\_\_list\_add\_valid\_or\_report+0x80/0xd0
  ...
  Call Trace:
   alloc\_from\_new\_slab+0x183/0x300
   \_\_\_slab\_alloc+0x31c/0x890
   \_\_kmalloc\_noprof+0x3d4/0x800
   lsm\_blob\_alloc+0x2d/0x50
   security\_msg\_msg\_alloc+0x26/0x90
   load\_msg+0x1aa/0x210
   do\_msgsnd+0x91/0x800
   do\_syscall\_64+0x109/0x5d0
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
  ...
  Kernel panic - not syncing: Fatal exception

This is a classic ABA problem where cmpxchg succeeds but the state has
changed since \_\_refill\_objects\_node() took the freelist from the slab.

As Vlastimil Babka mentioned \[2\], it should be rare to return more than
one slab (due to the racy read of slab-\>counters in
get\_partial\_node\_bulk()). Therefore, instead of introducing additional
complexity, acquire and release n-\>list\_lock twice in the worst case.

Return the slab directly to the partial list and hold n-\>list\_lock
across the cmpxchg and add\_partial(). This is similar to the initial
version of commit ba7425312607 \[3\]. This is enough to avoid the race as
the list manipulation is serialized by n-\>list\_lock. While at it,
bring back unlikely() hint now that the condition is unlikely.

## Affected and fixed versions

- Linux: \>= ba742531260782a2646bc031f9a12cafebc22594, \< 570a6aaf6b52c6ec098f4811cdb52b1496f13d15; \>= ba742531260782a2646bc031f9a12cafebc22594, \< 4a724bcf5d703e18957397914d79156fa2cf1174 (cvelist)
- Linux: 7.2 (cvelist)

## Mitigation

- Upgrade Linux to 4a724bcf5d703e18957397914d79156fa2cf1174 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-97941. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97941.md
Affected: Linux >= ba742531260782a2646bc031f9a12cafebc22594, < 570a6aaf6b52c6ec098f4811cdb52b1496f13d15; >= ba742531260782a2646bc031f9a12cafebc22594, < 4a724bcf5d703e18957397914d79156fa2cf1174; Linux 7.2
Fixed in: Linux 570a6aaf6b52c6ec098f4811cdb52b1496f13d15, Linux 4a724bcf5d703e18957397914d79156fa2cf1174

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= ba742531260782a2646bc031f9a12cafebc22594, \< 570a6aaf6b52c6ec098f4811cdb52b1496f13d15; \>= ba742531260782a2646bc031f9a12cafebc22594, \< 4a724bcf5d703e18957397914d79156fa2cf1174; Linux 7.2.

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

Yes. Fixed in Linux 570a6aaf6b52c6ec098f4811cdb52b1496f13d15, Linux 4a724bcf5d703e18957397914d79156fa2cf1174. Upgrade Linux to 4a724bcf5d703e18957397914d79156fa2cf1174 or later.

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

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/570a6aaf6b52c6ec098f4811cdb52b1496f13d15>
- other: <https://git.kernel.org/stable/c/4a724bcf5d703e18957397914d79156fa2cf1174>

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

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