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

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T13:30:22.368Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= 715b6a5b41dae39baeaa40d3386b548bb278b9c2, \< c7af5300d78460fc5037ddc77113ba3dbfe77dc0; \>= 07e38a54cabd9b4de7ceb7f075f29ffa463e458a, \< 7c34feda6a9a203c9744281f1b6671b7dad2012d; \>= f7381b9116407ba2a429977c80ff8df953ea9354, \< 6ed8bfd24ce1cb31742b09a3eb557cd008533eec
- Anyone running Linux \>= 6.12.54, \< 6.12.56; \>= 6.17.4, \< 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.

## Affected and fixed versions

- Linux: \>= 715b6a5b41dae39baeaa40d3386b548bb278b9c2, \< c7af5300d78460fc5037ddc77113ba3dbfe77dc0; \>= 07e38a54cabd9b4de7ceb7f075f29ffa463e458a, \< 7c34feda6a9a203c9744281f1b6671b7dad2012d; \>= f7381b9116407ba2a429977c80ff8df953ea9354, \< 6ed8bfd24ce1cb31742b09a3eb557cd008533eec (cvelist)
- Linux: \>= 6.12.54, \< 6.12.56; \>= 6.17.4, \< 6.17.6 (cvelist)

## Mitigation

- Upgrade Linux to 6ed8bfd24ce1cb31742b09a3eb557cd008533eec or later.
- Upgrade Linux to 6.17.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40348.md
Affected: Linux >= 715b6a5b41dae39baeaa40d3386b548bb278b9c2, < c7af5300d78460fc5037ddc77113ba3dbfe77dc0; >= 07e38a54cabd9b4de7ceb7f075f29ffa463e458a, < 7c34feda6a9a203c9744281f1b6671b7dad2012d; >= f7381b9116407ba2a429977c80ff8df953ea9354, < 6ed8bfd24ce1cb31742b09a3eb557cd008533eec; Linux >= 6.12.54, < 6.12.5…
Fixed in: Linux 7c34feda6a9a203c9744281f1b6671b7dad2012d, Linux 6ed8bfd24ce1cb31742b09a3eb557cd008533eec, Linux 6.12.56, Linux 6.17.6

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-2025-40348 being exploited?

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

### How serious is CVE-2025-40348?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40348?

Linux \>= 715b6a5b41dae39baeaa40d3386b548bb278b9c2, \< c7af5300d78460fc5037ddc77113ba3dbfe77dc0; \>= 07e38a54cabd9b4de7ceb7f075f29ffa463e458a, \< 7c34feda6a9a203c9744281f1b6671b7dad2012d; \>= f7381b9116407ba2a429977c80ff8df953ea9354, \< 6ed8bfd24ce1cb31742b09a3eb557cd008533eec; Linux \>= 6.12.54, \< 6.12.56; \>= 6.17.4, \< 6.17.6.

### Is there a fix for CVE-2025-40348?

Yes. Fixed in Linux 7c34feda6a9a203c9744281f1b6671b7dad2012d, Linux 6ed8bfd24ce1cb31742b09a3eb557cd008533eec, Linux 6.12.56, Linux 6.17.6. Upgrade Linux to 6ed8bfd24ce1cb31742b09a3eb557cd008533eec or later. Upgrade Linux to 6.17.6 or later.

### How do I check if I'm affected by CVE-2025-40348?

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/c7af5300d78460fc5037ddc77113ba3dbfe77dc0>
- other: <https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d>
- other: <https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec>

## 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-2025-40348>

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