{"id":"CVE-2025-40185","state":"PUBLISHED","title":"ice: ice_adapter: release xa entry on adapter allocation failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: ice_adapter: release xa entry on adapter allocation failure\n\nWhen ice_adapter_new() fails, the reserved XArray entry created by\nxa_insert() is not released. This causes subsequent insertions at\nthe same index to return -EBUSY, potentially leading to\nNULL pointer dereferences.\n\nReorder the operations as suggested by Przemek Kitszel:\n1. Check if adapter already exists (xa_load)\n2. Reserve the XArray slot (xa_reserve)\n3. Allocate the adapter (ice_adapter_new)\n4. Store the adapter (xa_store)","publishedAt":"2025-11-12T21:56:28.561Z","updatedAt":"2026-05-11T21:44:24.259Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","status":"affected","lessThan":"7b9269de9815fc34d93dab90bd5169bacbe78e70","versionType":"git"},{"version":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","status":"affected","lessThan":"794abb265de3e792167fe3ea0440c064c722bb84","versionType":"git"},{"version":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","status":"affected","lessThan":"2db687f3469dbc5c59bc53d55acafd75d530b497","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_adapter.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.54","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.4","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_adapter.c"]}],"references":["https://git.kernel.org/stable/c/7b9269de9815fc34d93dab90bd5169bacbe78e70","https://git.kernel.org/stable/c/794abb265de3e792167fe3ea0440c064c722bb84","https://git.kernel.org/stable/c/2db687f3469dbc5c59bc53d55acafd75d530b497"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40185.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40185","state":"PUBLISHED","datePublished":"2025-11-12T21:56:28.561Z","dateUpdated":"2026-05-11T21:44:24.259Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.177Z"},"containers":{"cna":{"title":"ice: ice_adapter: release xa entry on adapter allocation failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: ice_adapter: release xa entry on adapter allocation failure\n\nWhen ice_adapter_new() fails, the reserved XArray entry created by\nxa_insert() is not released. This causes subsequent insertions at\nthe same index to return -EBUSY, potentially leading to\nNULL pointer dereferences.\n\nReorder the operations as suggested by Przemek Kitszel:\n1. Check if adapter already exists (xa_load)\n2. Reserve the XArray slot (xa_reserve)\n3. Allocate the adapter (ice_adapter_new)\n4. Store the adapter (xa_store)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","status":"affected","lessThan":"7b9269de9815fc34d93dab90bd5169bacbe78e70","versionType":"git"},{"version":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","status":"affected","lessThan":"794abb265de3e792167fe3ea0440c064c722bb84","versionType":"git"},{"version":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","status":"affected","lessThan":"2db687f3469dbc5c59bc53d55acafd75d530b497","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_adapter.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.54","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.4","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_adapter.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7b9269de9815fc34d93dab90bd5169bacbe78e70"},{"url":"https://git.kernel.org/stable/c/794abb265de3e792167fe3ea0440c064c722bb84"},{"url":"https://git.kernel.org/stable/c/2db687f3469dbc5c59bc53d55acafd75d530b497"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:44:24.259Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.17.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}