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 064351E7C3F for ; Mon, 21 Oct 2024 12:03: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=1729512211; cv=none; b=VAosTgBLqsF3PAK0GR7GmqoZyVncNNY7BiLZbST+6RjN9wFjg5NDkEVK5UPryVLXOOnw0CKwRoRGNDFVCpNvsgGhNy99iuQ4i6tpLh7KCS7pwZ//qj5Y3xI/Ok/goecZPqJ5jGR1alMf7jZMnksknQ3ebaRUkIx5vS5WMxaew4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512211; c=relaxed/simple; bh=oBXHnNXPDGOKHefbxw2mtt70cSfekfRtF8wJBAwDPPI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JWil2Fh3bpGNDB0sNoBxTMpFAkgAyJujIiBqOfp+J5SwziO+Nu9UzktdnlE860UC85NUzdvojAmj32Scq2KzymDtUGvhLd7V+wsQx+UYMb2p4tSYgIrj4oCAY++qJsBwglaw5aUr+fRD4siGb5swHRD3GEV5zXkE72zPu++4Q9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y84cxq67; 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="Y84cxq67" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7644BC4CEC3; Mon, 21 Oct 2024 12:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512210; bh=oBXHnNXPDGOKHefbxw2mtt70cSfekfRtF8wJBAwDPPI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y84cxq67wbjd7wCPT60PlyHapcWlXDx2QYm/NuL1Wr+4qAZGbfi+fBjkTBbe+UrLs LZHSZTD2fTTK7Kfq7xeGVbr9qRo7aC1zH2nY/qBFeAQ5c3+TzxjOdHHWEdISa4bylh Z5x8weva15SDw4g9cBOibJBSMeRUBqfuLdxIuLj0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47713: wifi: mac80211: use two-phase skb reclamation in ieee80211_do_stop() Date: Mon, 21 Oct 2024 14:00:41 +0200 Message-ID: <2024102119-CVE-2024-47713-2624@gregkh> X-Mailer: git-send-email 2.47.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=3628; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oBXHnNXPDGOKHefbxw2mtt70cSfekfRtF8wJBAwDPPI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTsGVG/rc4g0zlcocmB2v7Pf9tt7Yl6M1UO7mz6RMx ajwWQs6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCIW3xjm+/f8/RIYpG/n+eGo xyPOuamf5lRNYFhw6uTTWUI3BHj2N3x5P3HWGcnnjMWcAA== 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: wifi: mac80211: use two-phase skb reclamation in ieee80211_do_stop() Since '__dev_queue_xmit()' should be called with interrupts enabled, the following backtrace: ieee80211_do_stop() ... spin_lock_irqsave(&local->queue_stop_reason_lock, flags) ... ieee80211_free_txskb() ieee80211_report_used_skb() ieee80211_report_ack_skb() cfg80211_mgmt_tx_status_ext() nl80211_frame_tx_status() genlmsg_multicast_netns() genlmsg_multicast_netns_filtered() nlmsg_multicast_filtered() netlink_broadcast_filtered() do_one_broadcast() netlink_broadcast_deliver() __netlink_sendskb() netlink_deliver_tap() __netlink_deliver_tap_skb() dev_queue_xmit() __dev_queue_xmit() ; with IRQS disabled ... spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags) issues the warning (as reported by syzbot reproducer): WARNING: CPU: 2 PID: 5128 at kernel/softirq.c:362 __local_bh_enable_ip+0xc3/0x120 Fix this by implementing a two-phase skb reclamation in 'ieee80211_do_stop()', where actual work is performed outside of a section with interrupts disabled. The Linux kernel CVE team has assigned CVE-2024-47713 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.32 with commit 5061b0c2b906 and fixed in 5.10.227 with commit f232916fab67 Issue introduced in 2.6.32 with commit 5061b0c2b906 and fixed in 5.15.168 with commit acb53a716e49 Issue introduced in 2.6.32 with commit 5061b0c2b906 and fixed in 6.1.113 with commit db5ca4b42ccf Issue introduced in 2.6.32 with commit 5061b0c2b906 and fixed in 6.6.54 with commit 058c9026ad79 Issue introduced in 2.6.32 with commit 5061b0c2b906 and fixed in 6.10.13 with commit eab272972cff Issue introduced in 2.6.32 with commit 5061b0c2b906 and fixed in 6.11.2 with commit ad4b7068b101 Issue introduced in 2.6.32 with commit 5061b0c2b906 and fixed in 6.12-rc1 with commit 9d301de12da6 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-47713 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: net/mac80211/iface.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/f232916fab67ca1c3425926df4a866e59ff26908 https://git.kernel.org/stable/c/acb53a716e492a02479345157c43f21edc8bc64b https://git.kernel.org/stable/c/db5ca4b42ccfa42d2af7b335ff12578e57775c02 https://git.kernel.org/stable/c/058c9026ad79dc98572442fd4c7e9a36aba6f596 https://git.kernel.org/stable/c/eab272972cffff9cd973b8e4055a8e81c64f7e6a https://git.kernel.org/stable/c/ad4b7068b101fbbb4a9ca4b99b25eb051a9482ec https://git.kernel.org/stable/c/9d301de12da6e1bb069a9835c38359b8e8135121