Bug 2422710 (CVE-2025-40348) - CVE-2025-40348 kernel: slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts
Summary: CVE-2025-40348 kernel: slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts
Keywords:
Status: NEW
Alias: CVE-2025-40348
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-16 14:05 UTC by OSIDB Bzimport
Modified: 2025-12-17 01:26 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-16 14:05:34 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.