# CVE-2025-40185: ice: ice_adapter: release xa entry on adapter allocation failure

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-11-12T21:56:28.561Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ice: ice_adapter: release xa entry on adapter allocation failure

When ice_adapter_new() fails, the reserved XArray entry created by
xa_insert() is not released. This causes subsequent insertions at
the same index to return -EBUSY, potentially leading to
NULL pointer dereferences.

Reorder the operations as suggested by Przemek Kitszel:
1. Check if adapter already exists (xa_load)
2. Reserve the XArray slot (xa_reserve)
3. Allocate the adapter (ice_adapter_new)
4. Store the adapter (xa_store)

(As written by CVE List.)

## Affected

- Linux Linux: from 0f0023c649c7bc50543fbe6e1801eb6357b8bd63 before 7b9269de9815fc34d93dab90bd5169bacbe78e70; from 0f0023c649c7bc50543fbe6e1801eb6357b8bd63 before 794abb265de3e792167fe3ea0440c064c722bb84; from 0f0023c649c7bc50543fbe6e1801eb6357b8bd63 before 2db687f3469dbc5c59bc53d55acafd75d530b497; 6.11 (not affected: before 6.11; from 6.12.54 up to 6.12.*; from 6.17.4 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/7b9269de9815fc34d93dab90bd5169bacbe78e70>
- <https://git.kernel.org/stable/c/794abb265de3e792167fe3ea0440c064c722bb84>
- <https://git.kernel.org/stable/c/2db687f3469dbc5c59bc53d55acafd75d530b497>

## Sources

- CVE List: [CVE-2025-40185](https://www.cve.org/CVERecord?id=CVE-2025-40185), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40185](https://nvd.nist.gov/vuln/detail/CVE-2025-40185), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40185 · Whole record: https://cve.day/CVE-2025-40185.json · Rebuilt by cve.day 2026-11-25T22:59:07.591Z
