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 3F9A920C027 for ; Tue, 1 Apr 2025 15:48:08 +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=1743522489; cv=none; b=BGrye2f1ZwPrNq2Jh3Jrp2q0D3jFWCRQtZYgg3TGySQHM4HbkeDz4bNkl21siySB+/KyROLiZbkyVR8VnmIgruRTQrnv7H/grFutf9wxM29u6jw1bMZtvXfFSItWfFDNhGafqTtl6PTwk53aBocHQrbLgB26iODptFQznb7p8Bs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522489; c=relaxed/simple; bh=D96pmGFf7ZVbxIDM5VDZhAySV0/ykpJhRBV09Bt02Xk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o2QCN8sfyDHymbaGXsjuoZzLTKqvdAY+/JAAg+02Lrj8a65PRDGSFPPhi6eQfurrIO3CoJe6LP9f7fLNpNrWOtZ41bnW+tGU8jurAmwjCoLrPlbJnt9z1i7N6+kk2jfg7xAp14cMNad74cSGZBcJ6cQHe0diQjOOrHnXQ3saTO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Geoa2mqj; 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="Geoa2mqj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66006C4CEE4; Tue, 1 Apr 2025 15:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522488; bh=D96pmGFf7ZVbxIDM5VDZhAySV0/ykpJhRBV09Bt02Xk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Geoa2mqjK0yyS7fk2rjsYOalXnbfOknsUDelRMFG6bNbFS5kG9zmVvXYYF5B98WFm dM1Lze0ZkmBlyHkFOvTQZhwL21h1JD9Xt2a9KWvbqt5+UELBnSopXBKTsb1IUoUqmL to7+1ZHcW8FYs91RetvpKOVpXVyWJNPD73btEsmU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21981: ice: fix memory leak in aRFS after reset Date: Tue, 1 Apr 2025 16:46:06 +0100 Message-ID: <2025040148-CVE-2025-21981-963c@gregkh> X-Mailer: git-send-email 2.49.0 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=3994; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D96pmGFf7ZVbxIDM5VDZhAySV0/ykpJhRBV09Bt02Xk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuHT6jmvZn3nwZuUmo4TrbtNd/y1ryw4Jd5mzYF/X9 vQZe9hndsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXHkZ5nCt/O0h3DZ5u1H6 qb9rewtv8twKqmKYX8e3afLetRs3MS57kDx5ZVqpCmPBYwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ice: fix memory leak in aRFS after reset Fix aRFS (accelerated Receive Flow Steering) structures memory leak by adding a checker to verify if aRFS memory is already allocated while configuring VSI. aRFS objects are allocated in two cases: - as part of VSI initialization (at probe), and - as part of reset handling However, VSI reconfiguration executed during reset involves memory allocation one more time, without prior releasing already allocated resources. This led to the memory leak with the following signature: [root@os-delivery ~]# cat /sys/kernel/debug/kmemleak unreferenced object 0xff3c1ca7252e6000 (size 8192): comm "kworker/0:0", pid 8, jiffies 4296833052 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 0): [] __kmalloc_cache_noprof+0x275/0x340 [] ice_init_arfs+0x3a/0xe0 [ice] [] ice_vsi_cfg_def+0x607/0x850 [ice] [] ice_vsi_setup+0x5b/0x130 [ice] [] ice_init+0x1c1/0x460 [ice] [] ice_probe+0x2af/0x520 [ice] [] local_pci_probe+0x43/0xa0 [] work_for_cpu_fn+0x13/0x20 [] process_one_work+0x179/0x390 [] worker_thread+0x239/0x340 [] kthread+0xcc/0x100 [] ret_from_fork+0x2d/0x50 [] ret_from_fork_asm+0x1a/0x30 ... The Linux kernel CVE team has assigned CVE-2025-21981 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 28bf26724fdb0e02267d19e280d6717ee810a10d and fixed in 6.1.132 with commit fcbacc47d16306c87ad1b820b7a575f6e9eae58b Issue introduced in 5.8 with commit 28bf26724fdb0e02267d19e280d6717ee810a10d and fixed in 6.6.84 with commit 5d30d256661fc11b6e73fac6c3783a702e1006a3 Issue introduced in 5.8 with commit 28bf26724fdb0e02267d19e280d6717ee810a10d and fixed in 6.12.20 with commit 3b27e6e10a32589fcd293b8933ab6de9387a460e Issue introduced in 5.8 with commit 28bf26724fdb0e02267d19e280d6717ee810a10d and fixed in 6.13.8 with commit 78f3d64b30210c0e521c59357431aca14024cb79 Issue introduced in 5.8 with commit 28bf26724fdb0e02267d19e280d6717ee810a10d and fixed in 6.14 with commit 23d97f18901ef5e4e264e3b1777fe65c760186b5 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-21981 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_arfs.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/fcbacc47d16306c87ad1b820b7a575f6e9eae58b https://git.kernel.org/stable/c/5d30d256661fc11b6e73fac6c3783a702e1006a3 https://git.kernel.org/stable/c/3b27e6e10a32589fcd293b8933ab6de9387a460e https://git.kernel.org/stable/c/78f3d64b30210c0e521c59357431aca14024cb79 https://git.kernel.org/stable/c/23d97f18901ef5e4e264e3b1777fe65c760186b5