{"id":"CVE-2025-40348","published":"2025-12-16T13:30:22Z","modified":"2026-05-11T21:47:37Z","title":"slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nslab: Avoid race on slab->obj_exts in alloc_slab_obj_exts\n\nIf two competing threads enter alloc_slab_obj_exts() and one of them\nfails to allocate the object extension vector, it might override the\nvalid slab->obj_exts allocated by the other thread with\nOBJEXTS_ALLOC_FAIL. This will cause the thread that lost this race and\nexpects a valid pointer to dereference a NULL pointer later on.\n\nUpdate slab->obj_exts atomically using cmpxchg() to avoid\nslab->obj_exts overrides by racing threads.\n\nThanks for Vlastimil and Suren's help with debugging.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00213,"percentile":0.11698,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0","tags":[]},{"url":"https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d","tags":[]},{"url":"https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.34}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 715b6a5b41dae39baeaa40d3386b548bb278b9c2, < c7af5300d78460fc5037ddc77113ba3dbfe77dc0",">= 07e38a54cabd9b4de7ceb7f075f29ffa463e458a, < 7c34feda6a9a203c9744281f1b6671b7dad2012d",">= f7381b9116407ba2a429977c80ff8df953ea9354, < 6ed8bfd24ce1cb31742b09a3eb557cd008533eec"]},{"vendor":"Linux","product":"Linux","versions":[">= 6.12.54, < 6.12.56",">= 6.17.4, < 6.17.6"]}],"euvd":{"id":"EUVD-2025-203639","exploited":false,"provenance":"source"}}