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 0546A1E7659 for ; Wed, 4 Sep 2024 19:58:36 +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=1725479916; cv=none; b=Rpe/r8HfvF8RH2zBsrH5vyPgvOkiGaEgj2ZCNbHlPHQZGc01QnKV2lzLzwcJMRq7xQKH1pJt/WX0d3jdwydY1pgQ7k4iq9oOgt1e6065ZEhTmfX5lG22fVaD6/sK06K6jT5aKvTcZyQs+6qGVq/Md4Z7XDcvNHEcYYzOZGTP0DM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479916; c=relaxed/simple; bh=mw6z/DzbFlhsgTRYINr0uACbUfqlUHyIY/YYtWI8ueE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bz5teVlOGhUi5OpyVRgWaCVrmP7IgkYzPPBcN+MJkF1lMGsYoNucJnCgMc4qtpAZOnC12t7qph+fh5HFdLuXp0mh4wF9w5BMDfl1baby8jrkV1k8z+V0zarHlaQ9egFFsJ0diaiK7duvvJnQ7MIT73MU3ZGtN7YU+prDTYR9ugQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XC8MQ+b5; 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="XC8MQ+b5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7939FC4CEC2; Wed, 4 Sep 2024 19:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479915; bh=mw6z/DzbFlhsgTRYINr0uACbUfqlUHyIY/YYtWI8ueE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XC8MQ+b5EmO0+CQI64cEdw8XaRMi5ULShy64tEDCbQyAyClm1Z6Lyxcs4ABUa3RCA MpfbU1IUa5OiK+qwLcXkM/WnY8+eTGV5p9SGowuqHvScVhvnRqhc8hKvpMJ/QcB/nw TRGRZFlgfo8Z17VVLGRyR0TV+5Mk8VAk/B478VNY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44997: net: ethernet: mtk_wed: fix use-after-free panic in mtk_wed_setup_tc_block_cb() Date: Wed, 4 Sep 2024 21:57:02 +0200 Message-ID: <2024090449-CVE-2024-44997-2480@gregkh> X-Mailer: git-send-email 2.46.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=2495; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mw6z/DzbFlhsgTRYINr0uACbUfqlUHyIY/YYtWI8ueE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3djc2294MTq1yqHu18XCg9SWBBw6OW0pcNlk843qXb h13Ska7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSZcowm21PpZG9/7m76+/z 2x04sFvucqPuPIb51TfnCzW8CtUxtfwVEtos9UJOeesrAA== 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: ethernet: mtk_wed: fix use-after-free panic in mtk_wed_setup_tc_block_cb() When there are multiple ap interfaces on one band and with WED on, turning the interface down will cause a kernel panic on MT798X. Previously, cb_priv was freed in mtk_wed_setup_tc_block() without marking NULL,and mtk_wed_setup_tc_block_cb() didn't check the value, too. Assign NULL after free cb_priv in mtk_wed_setup_tc_block() and check NULL in mtk_wed_setup_tc_block_cb(). ---------- Unable to handle kernel paging request at virtual address 0072460bca32b4f5 Call trace: mtk_wed_setup_tc_block_cb+0x4/0x38 0xffffffc0794084bc tcf_block_playback_offloads+0x70/0x1e8 tcf_block_unbind+0x6c/0xc8 ... --------- The Linux kernel CVE team has assigned CVE-2024-44997 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 799684448e3e and fixed in 6.6.48 with commit 326a89321f9d Issue introduced in 6.2 with commit 799684448e3e and fixed in 6.10.7 with commit b453a4bbda03 Issue introduced in 6.2 with commit 799684448e3e and fixed in 6.11-rc4 with commit db1b4bedb9b9 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-44997 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/mediatek/mtk_wed.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/326a89321f9d5fe399fe6f9ff7c0fc766582a6a0 https://git.kernel.org/stable/c/b453a4bbda03aa8741279c360ac82d1c3ac33548 https://git.kernel.org/stable/c/db1b4bedb9b97c6d34b03d03815147c04fffe8b4