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 DEF7D14EC73 for ; Wed, 18 Jun 2025 10:54:56 +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=1750244097; cv=none; b=a8pUN1KtdZY/ojIWiQglsR+qu5sk2VUgkZXuJfKJQZfFSMydRIDjhdhGfBXJmMmudGdBr7ytxgwtGmHLvlKjHLFDvHczTZKxC0N395iBrOZgZaqRZr9AogQlGtdD6ty1ky/NSelPC1Q5SBgpFpLhgkKgBR4h7zdfvs46OD4j7HQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244097; c=relaxed/simple; bh=IUwzd0kN889/olXzMli5adYkaPFc4drPhFaLYkyT6CE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PVNE20n3UHJt/fWdf19mzIQLklSZc+p/bRQBGgK+zlj8cuvTiA388Y3k200CG5F0wIsanfGNLMeNqpq+w/hm3v6glS+XAXPTPiDr8f72fIxWKibl7i0GJfuBdKEtpWg/bTXwzqhMPAJohoztQU0Tsll5ODuV/WKs4w0ejpGSwcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZzQTFiBS; 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="ZzQTFiBS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32505C4CEE7; Wed, 18 Jun 2025 10:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244096; bh=IUwzd0kN889/olXzMli5adYkaPFc4drPhFaLYkyT6CE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZzQTFiBSGw6lI7Zr+Hhu2A6mrgxEoyW/rkZMkyskpWMHJtSUT1lkrUqAt03BSfSvz iUzAdGp3ZRgByeXgyYFv3uwwh3/uASSjtnAQNFYvCvQuMbeYud/Gi6kdwyjWfZyb1x 6VR8cc8Cin/mY3oZl6dZZBk52CGG4KVCsPG5Oqws= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49934: wifi: mac80211: Fix UAF in ieee80211_scan_rx() Date: Wed, 18 Jun 2025 12:54:45 +0200 Message-ID: <2025061845-CVE-2022-49934-108e@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=2938; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cd+mOYFxRrgUFkFTvKKkBr45S+jYfY4+sk4qPEVjHzM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBs74+OufZ//dg3L77E6SZboec/DEx7jVzb+hhLkfzX YrdlemTO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAijYUMc8U8dCTPsrGX/GxP iT6ywUTJW/S7NsM8owWMjaV/G3g89Zn/X/Pe3z9pvuRyAA== 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 UAF in ieee80211_scan_rx() ieee80211_scan_rx() tries to access scan_req->flags after a null check, but a UAF is observed when the scan is completed and __ieee80211_scan_completed() executes, which then calls cfg80211_scan_done() leading to the freeing of scan_req. Since scan_req is rcu_dereference()'d, prevent the racing in __ieee80211_scan_completed() by ensuring that from mac80211's POV it is no longer accessed from an RCU read critical section before we call cfg80211_scan_done(). The Linux kernel CVE team has assigned CVE-2022-49934 to this issue. Affected and fixed versions =========================== Fixed in 4.9.330 with commit 6eb181a64fdabf10be9e54de728876667da20255 Fixed in 4.14.295 with commit e0ff39448cea654843744c72c6780293c5082cb1 Fixed in 4.19.260 with commit 78a07732fbb0934d14827d8f09b9aa6a49ee1aa9 Fixed in 5.4.215 with commit 9ad48cbf8b07f10c1e4a7a262b32a9179ae9dd2d Fixed in 5.10.142 with commit 4abc8c07a065ecf771827bde3c63fbbe4aa0c08b Fixed in 5.15.66 with commit 5d20c6f932f2758078d0454729129c894fe353e7 Fixed in 5.19.8 with commit c0445feb80a4d0854898118fa01073701f8d356b Fixed in 6.0 with commit 60deb9f10eec5c6a20252ed36238b55d8b614a2c 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-49934 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/scan.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/6eb181a64fdabf10be9e54de728876667da20255 https://git.kernel.org/stable/c/e0ff39448cea654843744c72c6780293c5082cb1 https://git.kernel.org/stable/c/78a07732fbb0934d14827d8f09b9aa6a49ee1aa9 https://git.kernel.org/stable/c/9ad48cbf8b07f10c1e4a7a262b32a9179ae9dd2d https://git.kernel.org/stable/c/4abc8c07a065ecf771827bde3c63fbbe4aa0c08b https://git.kernel.org/stable/c/5d20c6f932f2758078d0454729129c894fe353e7 https://git.kernel.org/stable/c/c0445feb80a4d0854898118fa01073701f8d356b https://git.kernel.org/stable/c/60deb9f10eec5c6a20252ed36238b55d8b614a2c