Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04CD92E613C for ; Wed, 12 Nov 2025 22:01:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762984897; cv=none; b=BArGfpaumOJu7XVfn6PSrdGNX0/dO9gO8Y0c6e+q7WSx7h0i8DiWpedi+L2v0QpY2Z4wqrsnk7xesbEAYUHvKQULEaoT8knqkUvMXAto0c/kGlCF/D2Q93cUIiSrvA43qkZc2II5KudCWYXOzvCPlowK1UMJ4bB7wXoZEM2U2Ms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762984897; c=relaxed/simple; bh=xCiujrxQwl0+Y+Pxn8+oex6XtL17FUtd2N7s53bKSLA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uhw7e2A2A44n5yEZYjeu1WWSOC7i4j5Zz3f6pt6ezKwlFlaBmfP82IamKqvgz3wSuyudDXEoDiFpJ4H53Fnk5EMupR+aqlKpPu1JWvOVsp9g+u5a5RQQH5Kr4NcskFvFQiO6FQ8icu8MYZN6GHdSxKFM92ggK8xA0t12jyLrStw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UQk8G0XN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UQk8G0XN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBE14C4CEF1; Wed, 12 Nov 2025 22:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762984896; bh=xCiujrxQwl0+Y+Pxn8+oex6XtL17FUtd2N7s53bKSLA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UQk8G0XNaUjK8HKhOsv9npbBgdBG07jyAXufyjkw/7UIpYKUD4xUJAJpmr9yVMvD5 1LAgpl8x2BbWd++HTpTdoFG6/1OYF8gJlhMeaOQKp77kvm1fupXZnzy99qGoDMqqkr 4z8Vr8hlbAcPHyn6C4Sxm1XqAC32JL9MN9RHzT3w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40185: ice: ice_adapter: release xa entry on adapter allocation failure Date: Wed, 12 Nov 2025 17:00:48 -0500 Message-ID: <2025111244-CVE-2025-40185-0689@gregkh> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2465; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NRdsiprdfpn+CCH1vq5Ttr4gp/EdYaoCxWAei58DoiU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmizD0esr+lVx1YetS/617yXI9spikazldZz1jFv83v9 Mmu+fW8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbi9ZNhwdbmcMu30z06Fd6v dr3/Q6/m1+nrAgwLLhrf7a11VTS+/Pt/crz2vWcy9rP3AAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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