{"schema_version":"1.7.5","id":"CVE-2025-40185","published":"2025-11-12T21:56:28.561Z","modified":"2026-07-15T01:49:15.790806285Z","related":["ALSA-2025:22405","ALSA-2025:22854","SUSE-SU-2025:4393-1","SUSE-SU-2025:4516-1","SUSE-SU-2025:4517-1","SUSE-SU-2026:20012-1","SUSE-SU-2026:20015-1","SUSE-SU-2026:20021-1","SUSE-SU-2026:20562-1","openSUSE-SU-2025:20172-1"],"summary":"ice: ice_adapter: release xa entry on adapter allocation failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: ice_adapter: release xa entry on adapter allocation failure\n\nWhen ice_adapter_new() fails, the reserved XArray entry created by\nxa_insert() is not released. This causes subsequent insertions at\nthe same index to return -EBUSY, potentially leading to\nNULL pointer dereferences.\n\nReorder the operations as suggested by Przemek Kitszel:\n1. Check if adapter already exists (xa_load)\n2. Reserve the XArray slot (xa_reserve)\n3. Allocate the adapter (ice_adapter_new)\n4. Store the adapter (xa_store)","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/cve-osv-conversion/osv-output/CVE-2025-40185.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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/cve-osv-conversion/osv-output/CVE-2025-40185.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2db687f3469dbc5c59bc53d55acafd75d530b497"},{"type":"WEB","url":"https://git.kernel.org/stable/c/794abb265de3e792167fe3ea0440c064c722bb84"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b9269de9815fc34d93dab90bd5169bacbe78e70"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40185.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40185"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40185.json"}}