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 52D173D6F for ; Thu, 1 May 2025 12:57:11 +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=1746104232; cv=none; b=KPtzNDjrqm823XlLiqktg9DkecujNxP6oYdsclQRF4hVdXsBLG9SpBxG3Por2bE0+VssG3Sa1bm4X6dBs5ez0iyhrbwmHA6nM9poq5cx0rajonW7ULVI6Ca1jREYmXJqZcleLSb2Wj0M2LNnL78lxy6M6Gd+ElwDYpCvRULbNcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104232; c=relaxed/simple; bh=OIIk7D38nH12yZlVV+1J4X+n0+AxbX/j9ZeT1mmxB0c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W9vz4/Hi9c/BYFsEs/eIfnh21/HahhF1/g4cENnEmxzf/hi8Mrzo5r7gws0+GiYjnFdq3hFyA8ULJzt0wyJ+XYbBMLAzMaD07QVQQIkPznG0j2iVnJAokMBs5d4/F+fiyITILOcewoyUOuPpgTLESz56TbLUJVqz+W+PgyLCqZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=egHfCYJ3; 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="egHfCYJ3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67C44C4CEE3; Thu, 1 May 2025 12:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104231; bh=OIIk7D38nH12yZlVV+1J4X+n0+AxbX/j9ZeT1mmxB0c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=egHfCYJ3DTWqe1iUVajWvTtIOZsEUuxZQ+RGoJ4n+NEXhDqPHzHcYjkCT/cnClYMU UEKM5TMNt6AxI0zCwcn5XkPIE88kgMy4KdM8SCDTssofb+SIGncUSZMWNXbwEAdx8M ySN+LzSwNCSFjcsdChE/eQmnJA4ZXt/N0DFRaUAo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-23155: net: stmmac: Fix accessing freed irq affinity_hint Date: Thu, 1 May 2025 14:56:35 +0200 Message-ID: <2025050129-CVE-2025-23155-a9c4@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=2186; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7qm8DlUTO+jWHgVkZZDRTzx6W4k8hie0ohfs9MEGcXc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnC+bUGs3ssjqkLp4kG2ypL58gmSvLaV51XiAjK+X/iX PWLeKGOWBYGQSYGWTFFli/beI7urzik6GVoexpmDisTyBAGLk4BmMjVpwwLjn6oa7Oeq/Ow7P3Z CWWezzQe7AnWZ5if5GoaJNCqzn8w3dKoY/LSKdk/xGYBAA== 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: net: stmmac: Fix accessing freed irq affinity_hint The cpumask should not be a local variable, since its pointer is saved to irq_desc and may be accessed from procfs. To fix it, use the persistent mask cpumask_of(cpu#). The Linux kernel CVE team has assigned CVE-2025-23155 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 8deec94c6040bb4a767f6e9456a0a44c7f2e713e and fixed in 6.13.12 with commit e148266e104fce396ad624079a6812ac3a9982ef Issue introduced in 5.13 with commit 8deec94c6040bb4a767f6e9456a0a44c7f2e713e and fixed in 6.14.3 with commit 9e51a6a44e2c4de780a26e8fe110d708e806a8cd Issue introduced in 5.13 with commit 8deec94c6040bb4a767f6e9456a0a44c7f2e713e and fixed in 6.15-rc1 with commit c60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef 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-23155 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/stmicro/stmmac/stmmac_main.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/e148266e104fce396ad624079a6812ac3a9982ef https://git.kernel.org/stable/c/9e51a6a44e2c4de780a26e8fe110d708e806a8cd https://git.kernel.org/stable/c/c60d101a226f18e9a8f01bb4c6ca2b47dfcb15ef