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 84B463C277B for ; Fri, 1 May 2026 14:17:30 +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=1777645050; cv=none; b=LcMNLS4IWnoP4ppfm7j3yVi/nH417MsIwXlvZd+3kC9oyg46aJsNyWP1qKyiuoFpsDwsMhEb1dQSQ3zB3FXyso62cb2MwnAoxzBIHO+WqUVzpgdUrhtDC6eMS3q6USBqz7LZtWW6Slk6WWw4zLlP9th5qD96p0IJxgoSPsGHq8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645050; c=relaxed/simple; bh=xpLi/iRj5L6qGfQBAPO6Z6660w2D5kFzTUQmmds94fo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eNsm5dX0Uh6+MespSNeSShr63KImShIbK+5gSLVXH47XL5lSJms7g3GbWNDdBOxGlkO0vrJItCdw6dQaNnBWG3QCssucaAcXyaU2N7VjJKajoNdNE6/d9+YKeKfMRQq+pxjDsGDkfW0L2r2P/CofiaNAUFIIPlBssaoI0inydm8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mcjRP1RL; 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="mcjRP1RL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2AC2C2BCB4; Fri, 1 May 2026 14:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645050; bh=xpLi/iRj5L6qGfQBAPO6Z6660w2D5kFzTUQmmds94fo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=mcjRP1RLV/3EiIikuGfroafE/DgFXPqJbpMkYXrsfr15b8l6MOiF9peqcVyuYrv8A D5v2SYKakgc7xlQ7cruMrHwxkyZxAPkLzG8C0Sgf31fE30WwEhj6oWyA0mTL+pnlpP fs8hVUiofHK2I8lvbqAM2NnGkBaCdrLEI/rtdY9s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31737: net: ftgmac100: fix ring allocation unwind on open failure Date: Fri, 1 May 2026 16:14:48 +0200 Message-ID: <2026050138-CVE-2026-31737-1078@gregkh> X-Mailer: git-send-email 2.54.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=3547; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1Yytjg56JJG45bLu1bXPSuwiOxyhMgPvjpaKm3LOYlQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftvodsAr7Kf9Yc2OrV9/jW9Pr92fNOitnKFmTeZdDw M97aci7jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIjRqGBQ23Q0SzlxxTDDhx vC9qmsXkszJzzBjmWU3NuGe5eL6qT5/56prn10sXzs77CgA= 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: ftgmac100: fix ring allocation unwind on open failure ftgmac100_alloc_rings() allocates rx_skbs, tx_skbs, rxdes, txdes, and rx_scratch in stages. On intermediate failures it returned -ENOMEM directly, leaking resources allocated earlier in the function. Rework the failure path to use staged local unwind labels and free allocated resources in reverse order before returning -ENOMEM. This matches common netdev allocation cleanup style. The Linux kernel CVE team has assigned CVE-2026-31737 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 5.10.253 with commit 184b3a500d60ea48d1b176103cff1706c456edf3 Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 5.15.203 with commit 78da43320d9d6ed788147fb085184e4fc801f057 Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 6.1.168 with commit a7e1bf392acf11dc4209820fef75758f6e42bd65 Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 6.6.134 with commit 8a71911fc7eeea930153322bc1efc065db8cd97e Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 6.12.81 with commit d45230081f19c280096241353c26b0de457de795 Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 6.18.22 with commit 8351d18989c8642fc53e2e12d94e42314a39b078 Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 6.19.12 with commit 82f86111f0704ab2ded11a2033bc6cf0be3e09ea Issue introduced in 4.12 with commit d72e01a0430f8a1ae7adb3cbf0b2e73fcd99252e and fixed in 7.0 with commit c0fd0fe745f5e8c568d898cd1513d0083e46204a 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-31737 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/faraday/ftgmac100.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/184b3a500d60ea48d1b176103cff1706c456edf3 https://git.kernel.org/stable/c/78da43320d9d6ed788147fb085184e4fc801f057 https://git.kernel.org/stable/c/a7e1bf392acf11dc4209820fef75758f6e42bd65 https://git.kernel.org/stable/c/8a71911fc7eeea930153322bc1efc065db8cd97e https://git.kernel.org/stable/c/d45230081f19c280096241353c26b0de457de795 https://git.kernel.org/stable/c/8351d18989c8642fc53e2e12d94e42314a39b078 https://git.kernel.org/stable/c/82f86111f0704ab2ded11a2033bc6cf0be3e09ea https://git.kernel.org/stable/c/c0fd0fe745f5e8c568d898cd1513d0083e46204a