[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025111244-CVE-2025-40185-0689@gregkh>
Date: Wed, 12 Nov 2025 17:00:48 -0500
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-40185: ice: ice_adapter: release xa entry on adapter allocation failure
From: Greg Kroah-Hartman <gregkh@...nel.org>
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)
The Linux kernel CVE team has assigned CVE-2025-40185 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 0f0023c649c7bc50543fbe6e1801eb6357b8bd63 and fixed in 6.12.54 with commit 7b9269de9815fc34d93dab90bd5169bacbe78e70
Issue introduced in 6.11 with commit 0f0023c649c7bc50543fbe6e1801eb6357b8bd63 and fixed in 6.17.4 with commit 794abb265de3e792167fe3ea0440c064c722bb84
Issue introduced in 6.11 with commit 0f0023c649c7bc50543fbe6e1801eb6357b8bd63 and fixed in 6.18-rc1 with commit 2db687f3469dbc5c59bc53d55acafd75d530b497
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-40185
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/intel/ice/ice_adapter.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/7b9269de9815fc34d93dab90bd5169bacbe78e70
https://git.kernel.org/stable/c/794abb265de3e792167fe3ea0440c064c722bb84
https://git.kernel.org/stable/c/2db687f3469dbc5c59bc53d55acafd75d530b497
Powered by blists - more mailing lists