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 04DBD1EDA28 for ; Thu, 1 May 2025 14:16:32 +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=1746108993; cv=none; b=Ad+IM+6eLA5ZT3r8Ll3waEil6GS0fi4Q1hAh2LV1/oTchStSJKnZDAcbdMeYdX2A6k4GZkIaanyoZTretGlge4/P5/jz2acMFsrjuTdAmEKS+rN8eZSBRr4uHoCiplekKHxT01wqpnz32jvqU7B6inJ+4pJhv0dC6hwA6HGGezA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108993; c=relaxed/simple; bh=xewMq4E4hs5+y9kREKtWPyG8jJ1nNW7Mdbl11ZSVIhw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fyoJqu9skvwFLKAWxbleFLrWiCV7ipF4402jymyPyBIk+XqXIHnT5aP82cynC07hk5b9kUmZUfbzM6EVkwxyqN/ugtNzUxLjNAPXbKlC0VSgVhtydDdyD71IFr73Xa64MuKXBgSj9/Zjteaa2cwtgABeXuncpEYcmeY9brfp1HU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QkoFsxT6; 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="QkoFsxT6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D229BC4CEE3; Thu, 1 May 2025 14:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108992; bh=xewMq4E4hs5+y9kREKtWPyG8jJ1nNW7Mdbl11ZSVIhw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QkoFsxT6X/z3s12JuFpqxfYdFivTyBUHmSsC3FwDoH6Vzt9+Wady7z9acLmJ4WoiV mdJjfiQ0rx81XhfPlQlH4/bHfa+SEvZ/h4nrQkuT8XpqG+WKzkcfqJwjg3k+BAUGLp WN/C23WLm+qoLtRfdNLBl+gZmHI8bJ4dby4kp2Is= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49876: wifi: mac80211: fix general-protection-fault in ieee80211_subif_start_xmit() Date: Thu, 1 May 2025 16:11:06 +0200 Message-ID: <2025050152-CVE-2022-49876-498d@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=3310; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rwCS0GjIgnehgd7mGJvuxfloyaRxwP19Id1W3KssyNo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDRubrbxyXpUm3Wb//qmhJNj2p+DVo5IvQ/yPiPx1M u6Rn2TQEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5/4FhDvf04OqLvtezJwUe ZWf9c8cvpsdQhWHBPj/n7+uvnphZ/qCA36xufSPLxIUbAQ== 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: wifi: mac80211: fix general-protection-fault in ieee80211_subif_start_xmit() When device is running and the interface status is changed, the gpf issue is triggered. The problem triggering process is as follows: Thread A: Thread B ieee80211_runtime_change_iftype() process_one_work() ... ... ieee80211_do_stop() ... ... ... sdata->bss = NULL ... ... ieee80211_subif_start_xmit() ieee80211_multicast_to_unicast //!sdata->bss->multicast_to_unicast cause gpf issue When the interface status is changed, the sending queue continues to send packets. After the bss is set to NULL, the bss is accessed. As a result, this causes a general-protection-fault issue. The following is the stack information: general protection fault, probably for non-canonical address 0xdffffc000000002f: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000178-0x000000000000017f] Workqueue: mld mld_ifc_work RIP: 0010:ieee80211_subif_start_xmit+0x25b/0x1310 Call Trace: dev_hard_start_xmit+0x1be/0x990 __dev_queue_xmit+0x2c9a/0x3b60 ip6_finish_output2+0xf92/0x1520 ip6_finish_output+0x6af/0x11e0 ip6_output+0x1ed/0x540 mld_sendpack+0xa09/0xe70 mld_ifc_work+0x71c/0xdb0 process_one_work+0x9bf/0x1710 worker_thread+0x665/0x1080 kthread+0x2e4/0x3a0 ret_from_fork+0x1f/0x30 The Linux kernel CVE team has assigned CVE-2022-49876 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit f856373e2f31ffd340e47e2b00027bd4070f74b3 and fixed in 6.0.9 with commit 03eb68c72cee249aeb7af7d04a83c033aca3d6d9 Issue introduced in 5.19 with commit f856373e2f31ffd340e47e2b00027bd4070f74b3 and fixed in 6.1 with commit 780854186946e0de2be192ee7fa5125666533b3a 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-2022-49876 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/tx.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/03eb68c72cee249aeb7af7d04a83c033aca3d6d9 https://git.kernel.org/stable/c/780854186946e0de2be192ee7fa5125666533b3a