Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3CB8A49480C for ; Fri, 25 Sep 2026 10:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332276; cv=none; b=qI7lUGptBMghWVNJbQwb9GX20UM0ydfj2lxpIq23g7IEC30PnzPWc4cxkYuJvtYjsaN1BXl2MWAyggC+Rcc+jfHVJi8Q/TECeEa7zEf6iOSrbTqY3iPB8if03qdPRZFsD2RtezFAaGmBCoXqmjwFxi6auFDN6/lGZoYnjjwaM2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332276; c=relaxed/simple; bh=uAQNRmce9C1gP7yE1WleuooQt826GI5nH/YGCxo4YEE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QWn0JrSDYQ970bK1lfvbUHeQ4/B5ZQfedKsfNNSbf6yUmyQl+eqJ1g4O7LNVJdQ/Aq5godiVA77pNMAWaoDXRn4vvQo9Qf5teTkgPg7+13FG3nuPa7QEJGldP731UkeqPlH7ZSfkWKnkS74dvpf9g9XNeDovZnUi4SNsVYovQrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nPeubQz8; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nPeubQz8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94FA21F00893; Fri, 25 Sep 2026 10:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332275; bh=E+0kVMoYkfXvLqM2JA5IUm3sUQFq9twGHlAIlvlII5o=; h=From:To:Cc:Subject:Date:Reply-To; b=nPeubQz8LTxj4OSJVLyTtS08vW3+GLtWJIjLGlIYwH1FTCeict73cl7ffR3xj5n7d D/0EgZoYnyQBcFoHENac0dwfzVa0GY8/SXIo1fQQfEoYF9H3xEWUpLtgcawBvKO4Fg v/GrAeSttFFFnvI/lWBJErAkryzBU1vsGM8+1xFk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97979: ice: add missing xa_destroy for sched_node_ids Date: Fri, 25 Sep 2026 12:24:42 +0200 Message-ID: <2026092519-CVE-2026-97979-3546@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3934; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C97McqtMOZBx+3BACISLqd9s89FZckkF8VMfH4sGvx8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvKN3Zp6dunYxQ63lTgEuRv45BZ1rd8UJ+T1OqL8SF 5GlHyvUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOxi2KYXy69cCXv2eBv/tZF zjaPGH4UllyYwTA/N9x++oT5zhn9R2ZLGPk7dfr9/rkDAA== 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: add missing xa_destroy for sched_node_ids Commit 16dfa49406bc ("ice: Introduce new parameters in ice_sched_node") added a sched_node_ids xarray to the port info structure, but never called xa_destroy on it. Since xarrays can allocate internal memory, this can result in a memory leak even if every element in the xarray has been removed. The xarray is currently embedded in the port_info structure. This appears to have been done because its use is within functions that take the port_info as a primary argument. However, this complicates managing the lifecycle of the field. The port_info structure is allocated in ice_init_hw() using devm, and it is not released until the devm cleanup when the driver is unloaded. The ice_init_hw() function is called in many places, including devlink reload, and possibly during DDP load after updating the Tx scheduler layout. Adding a call of xa_destroy to the ice_deinit_hw() causes Sashiko to raise multiple concerns due to potential ordering issues and possible ways that port_info could be a dangling reference. To handle this, move the sched_node_ids out of port_info and into the hw structure. All users of the array already have a pointer to hw anyways, and there is only one sched_node_ids per adapter. While here, remove the overly verbose comment explaining the nature of the sched_node_ids xarray. Add the missing xa_destroy to the cleanup path and to ice_deinit_hw(), ensuring that we properly release the xarray memory. This was caught by Sashiko during development of unrelated code. The Linux kernel CVE team has assigned CVE-2026-97979 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 16dfa49406bc5e1f4cbb115027cbd719d7e6c930 and fixed in 6.12.111 with commit 44cdd6b7e036303f7fecf841cf23c05a4a4faf2d Issue introduced in 6.2 with commit 16dfa49406bc5e1f4cbb115027cbd719d7e6c930 and fixed in 6.18.53 with commit f5463bc124c0d6f922e272336584730c5c61c4f1 Issue introduced in 6.2 with commit 16dfa49406bc5e1f4cbb115027cbd719d7e6c930 and fixed in 7.2.7 with commit d6f38fb12069fb1edf762962b5fcf3f42d643b47 Issue introduced in 6.2 with commit 16dfa49406bc5e1f4cbb115027cbd719d7e6c930 and fixed in 7.3-rc3 with commit 53432c4c3e869076350aef319534431af8ba99c1 Issue introduced in 6.1.95 with commit a388961be5ed8ee037ac68220e389bc4e9339a39 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-2026-97979 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_common.c drivers/net/ethernet/intel/ice/ice_sched.c drivers/net/ethernet/intel/ice/ice_type.h 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/44cdd6b7e036303f7fecf841cf23c05a4a4faf2d https://git.kernel.org/stable/c/f5463bc124c0d6f922e272336584730c5c61c4f1 https://git.kernel.org/stable/c/d6f38fb12069fb1edf762962b5fcf3f42d643b47 https://git.kernel.org/stable/c/53432c4c3e869076350aef319534431af8ba99c1