CVE-2025-40185

medium

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)

References

https://git.kernel.org/stable/c/7b9269de9815fc34d93dab90bd5169bacbe78e70

https://git.kernel.org/stable/c/794abb265de3e792167fe3ea0440c064c722bb84

https://git.kernel.org/stable/c/2db687f3469dbc5c59bc53d55acafd75d530b497

Details

Source: Mitre, NVD

Published: 2025-11-12

Updated: 2025-11-14

Risk Information

CVSS v2

Base Score: 4.3

Vector: CVSS2#AV:L/AC:L/Au:M/C:N/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 4.4

Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Severity: Medium

EPSS

EPSS: 0.00017