CVE-2025-40185
JSON

Not scored

ice: ice_adapter: release xa entry on adapter allocation failure

Severity
Not scored
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
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)

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List

What each source says

CVE List

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)

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ice: ice_adapter: liberar entrada xa en caso de fallo en la asignación del adaptador Cuando ice_adapter_new() falla, la entrada XArray reservada creada por xa_insert() no es liberada. Esto provoca que inserciones posteriores en el mismo índice devuelvan -EBUSY, lo que podría llevar a desreferencias de puntero NULL. Reordenar las operaciones según lo sugerido por Przemek Kitszel: 1. Comprobar si el adaptador ya existe (xa_load) 2. Reservar la ranura XArray (xa_reserve) 3. Asignar el adaptador (ice_adapter_new) 4. Almacenar el adaptador (xa_store)

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40185 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-40185 changed 2026-10-19Public domain