Home

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.

PUBLISHED Reserved 2025-04-16 | Published 2025-12-16 | Updated 2025-12-16 | Assigner Linux

Product status

Default status
unaffected

715b6a5b41dae39baeaa40d3386b548bb278b9c2 (git) before c7af5300d78460fc5037ddc77113ba3dbfe77dc0
affected

07e38a54cabd9b4de7ceb7f075f29ffa463e458a (git) before 7c34feda6a9a203c9744281f1b6671b7dad2012d
affected

f7381b9116407ba2a429977c80ff8df953ea9354 (git) before 6ed8bfd24ce1cb31742b09a3eb557cd008533eec
affected

Default status
unaffected

6.12.54 (semver) before 6.12.56
affected

6.17.4 (semver) before 6.17.6
affected

References

git.kernel.org/...c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0

git.kernel.org/...c/7c34feda6a9a203c9744281f1b6671b7dad2012d

git.kernel.org/...c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec

cve.org (CVE-2025-40348)

nvd.nist.gov (CVE-2025-40348)

Download JSON

Data based on CVE®. Copyright © 1999-2025, The MITRE Corporation. All rights reserved.