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 4B74519049F for ; Tue, 30 Jul 2024 07:49:33 +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=1722325773; cv=none; b=Qc9AZX/E6UGLvBdedf1hbvaexUv0g6800dw/tuTEWtfCYW9xj6o3FPGuJ3q5gsOZ04iUsyOolgiP2M+Ucti1+OH6r6Pq8FZc/QgDnNuD7VbuxrHOi/xizlSXkN8cA3QyY20qdf9uQeLUpV3YbbSpyZDao1J4wKnbqqo2JUFnXIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325773; c=relaxed/simple; bh=+7lkcDdt7D9FISyBFdpiTqm3mYQ0Gl4r1Kwg6JvYRp8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hFKz7dj8CIldli8UYdCPAuZjF/Gf5kEIoABWfsGaRusv/sVxox6stWgchzzTFbFoEmovqiTBKadYG8EH7bY+ve4YLW59xx0g16RMvR81r4bZlNPggVcZ9t8c/IQO3e7UEWiA9BKoBwZ/kVtBxqQPfQS1Ay72AbNxhn69Klqpq2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N5XsYK2O; 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="N5XsYK2O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0A61C32782; Tue, 30 Jul 2024 07:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325773; bh=+7lkcDdt7D9FISyBFdpiTqm3mYQ0Gl4r1Kwg6JvYRp8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=N5XsYK2OrjV96Vowmi1ZUKUk36/BO76AM7SuWZFUHUEBYLErHhgOE3HZYBI30LulW EG9ca4VxBpBlwtTzDB4ibitmnvPYK0XTt5uHaCRQhOwDegjZIvKvbMrzvZb2z01qaz reSZLzx8bNAadWqZv+amRLNemTq1OO9z6VfM6hTQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42112: net: txgbe: free isb resources at the right time Date: Tue, 30 Jul 2024 09:47:30 +0200 Message-ID: <2024073022-CVE-2024-42112-ee07@gregkh> X-Mailer: git-send-email 2.45.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=2133; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+7lkcDdt7D9FISyBFdpiTqm3mYQ0Gl4r1Kwg6JvYRp8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZnV9PnY91qlCwyDxXOi1hPNXXu1eItH/bGHuDJf/f SluzC+edcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEyj4zzFMUm2h5wulQ3J6H DgvbviUGOzx23cqwYKpVt/QOi5OXF/0N7bV/dcFQaIb2SgA= 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: net: txgbe: free isb resources at the right time When using MSI/INTx interrupt, the shared interrupts are still being handled in the device remove routine, before free IRQs. So isb memory is still read after it is freed. Thus move wx_free_isb_resources() from txgbe_close() to txgbe_remove(). And fix the improper isb free action in txgbe_open() error handling path. The Linux kernel CVE team has assigned CVE-2024-42112 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit aefd013624a1 and fixed in 6.9.9 with commit efdc3f542998 Issue introduced in 6.9 with commit aefd013624a1 and fixed in 6.10 with commit 935124dd5883 Issue introduced in 6.8.12 with commit ffe8a87463c8 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-2024-42112 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/wangxun/libwx/wx_lib.c drivers/net/ethernet/wangxun/ngbe/ngbe_main.c drivers/net/ethernet/wangxun/txgbe/txgbe_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/efdc3f54299835ddef23bea651c753c4d467010b https://git.kernel.org/stable/c/935124dd5883b5de68dc5a94f582480a10643dc9