{"id":"CVE-2025-40348","aliases":["CVE-2025-40348"],"related":[],"kind":"vulnerability","state":"published","title":"slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nslab: Evitar condición de carrera en slab -> obj_exts en alloc_slab_obj_exts\n\nSi dos hilos competidores entran en alloc_slab_obj_exts() y uno de ellos falla al asignar el vector de extensión de objeto, podría sobrescribir el slab -> obj_exts válido asignado por el otro hilo con OBJEXTS_ALLOC_FAIL. Esto hará que el hilo que perdió esta condición de carrera y espera un puntero válido desreferencie un puntero NULL más adelante.\n\nActualizar slab -> obj_exts atómicamente usando cmpxchg() para evitar sobrescrituras de slab -> obj_exts por hilos en condición de carrera.\n\nGracias por la ayuda de Vlastimil y Suren con la depuración.","source":"nvd"}],"published":"2025-12-16T13:30:22.368Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"715b6a5b41dae39baeaa40d3386b548bb278b9c2","fixed":"c7af5300d78460fc5037ddc77113ba3dbfe77dc0","status":"affected"},{"type":"git","introduced":"07e38a54cabd9b4de7ceb7f075f29ffa463e458a","fixed":"7c34feda6a9a203c9744281f1b6671b7dad2012d","status":"affected"},{"type":"git","introduced":"f7381b9116407ba2a429977c80ff8df953ea9354","fixed":"6ed8bfd24ce1cb31742b09a3eb557cd008533eec","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.12.54","fixed":"6.12.56","status":"affected"},{"type":"semver","introduced":"6.17.4","fixed":"6.17.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40348","url":"https://www.cve.org/CVERecord?id=CVE-2025-40348","licence":"CVE Terms of Use","modified":"2026-05-11T21:47:37.835Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40348","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40348","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.468Z","epss":{"score":0.00213,"percentile":0.12335,"date":"2026-12-02T12:00:21.000Z"}}