CVE-2025-40185

Source
https://cve.org/CVERecord?id=CVE-2025-40185
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40185.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40185
Downstream
Related
Published
2025-11-12T21:56:28.561Z
Modified
2026-03-20T12:43:12.858877Z
Summary
ice: ice_adapter: release xa entry on adapter allocation failure
Details

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

ice: ice_adapter: release xa entry on adapter allocation failure

When iceadapternew() 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 (xaload) 2. Reserve the XArray slot (xareserve) 3. Allocate the adapter (iceadapternew) 4. Store the adapter (xa_store)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40185.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0f0023c649c7bc50543fbe6e1801eb6357b8bd63
Fixed
7b9269de9815fc34d93dab90bd5169bacbe78e70
Fixed
794abb265de3e792167fe3ea0440c064c722bb84
Fixed
2db687f3469dbc5c59bc53d55acafd75d530b497

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40185.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.12.54
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40185.json"