CVE-2025-40348
kernel: slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 16, 2025
Updated · November 4, 2026
Description
A race condition was found in the Linux kernel's slab allocator. When two threads concurrently call alloc_slab_obj_exts() and one fails allocation, it may overwrite the other's valid obj_exts pointer with OBJEXTS_ALLOC_FAIL. The winning thread later dereferences this as a valid pointer, causing a null pointer dereference.
Statement
This race exists in core memory allocation code but requires CONFIG_SLUB_DEBUG or CONFIG_MEMCG_KMEM enabled with specific concurrent allocation patterns. The fix uses cmpxchg for atomic updates.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-476 · NULL Pointer Dereference