Skip to main content
← All vulnerabilities
CVE-2025-40348

slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.12.56, 6.17.6
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    Version range not reported

  • Linux Linux

    From 6.12.54 · fixed in 6.12.56; From 6.17.4 · fixed in 6.17.6

References 3

git.kernel.org