ice: ice_adapter: release xa entry on adapter allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.546.17.46.18In 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)
From the CVE record · Linux
In the Linux kernel’s ice_adapter code, a failed adapter allocation leaves a reserved XArray entry behind. Later insertions at the same index can fail with -EBUSY, potentially leading to a NULL pointer dereference. The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version contains the affected ice_adapter code; affected versions are not specified.