{"api_version":"1","generated_at":"2026-10-29T10:21:04+00:00","cve":"CVE-2025-40348","urls":{"html":"https://cve.report/CVE-2025-40348","api":"https://cve.report/api/cve/CVE-2025-40348.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40348","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40348"},"summary":{"title":"slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-12-16 14:15:46","updated_at":"2026-10-14 13:10:00"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0","name":"https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec","name":"https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d","name":"https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40348","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40348","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 715b6a5b41dae39baeaa40d3386b548bb278b9c2 c7af5300d78460fc5037ddc77113ba3dbfe77dc0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 07e38a54cabd9b4de7ceb7f075f29ffa463e458a 7c34feda6a9a203c9744281f1b6671b7dad2012d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f7381b9116407ba2a429977c80ff8df953ea9354 6ed8bfd24ce1cb31742b09a3eb557cd008533eec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.54 6.12.56 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.17.4 6.17.6 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/slub.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c7af5300d78460fc5037ddc77113ba3dbfe77dc0","status":"affected","version":"715b6a5b41dae39baeaa40d3386b548bb278b9c2","versionType":"git"},{"lessThan":"7c34feda6a9a203c9744281f1b6671b7dad2012d","status":"affected","version":"07e38a54cabd9b4de7ceb7f075f29ffa463e458a","versionType":"git"},{"lessThan":"6ed8bfd24ce1cb31742b09a3eb557cd008533eec","status":"affected","version":"f7381b9116407ba2a429977c80ff8df953ea9354","versionType":"git"}]},{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/slub.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6.12.56","status":"affected","version":"6.12.54","versionType":"semver"},{"lessThan":"6.17.6","status":"affected","version":"6.17.4","versionType":"semver"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.56","versionStartIncluding":"6.12.54","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17.6","versionStartIncluding":"6.17.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-05-11T21:47:37.835Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0"},{"url":"https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d"},{"url":"https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec"}],"title":"slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40348","datePublished":"2025-12-16T13:30:22.368Z","dateReserved":"2025-04-16T07:20:57.187Z","dateUpdated":"2026-05-11T21:47:37.835Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-12-16 14:15:46","lastModifiedDate":"2026-10-14 13:10:00","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40348","Ordinal":"1","Title":"slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts","CVE":"CVE-2025-40348","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40348","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts"}]}}}