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 4E1D5145FE4 for ; Sat, 17 Aug 2024 09:23: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=1723886613; cv=none; b=QDoJwVfP+ETl87YWALNdeAcUFqXQgK2PyBOKUkJD4rwyMZsx0WuamBpk3hZnWnVKhzOJQs78+2PjLPDWrJikWdkLMbtNKy8WYOYESIWKxCfxNv2zyyGaKCJKzsLguKEoN9NiYVW85XqQG9+QXZsZXNQuphQk2+W0zD+gufb3ECw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886613; c=relaxed/simple; bh=/iKctCBKpPZbYucw7mw4jAYqwvHfe1Cxo91tj/Sqso4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jIMy6lYUmvhN6bGO/YxhrWjNW/cGP5W9p3o3sTybOjNeP4i//33o6miXRl5xDYhlZICM0WEFWHZYW+j39NVKfT5zWz1QkXIszvTViSQM7itJd7eSBUfMCNIHN3dFC9jeu18+jC79EezYMhC+bcfvNe4D+RBoQRtGk4nfUF5e5Io= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SYRgCbE5; 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="SYRgCbE5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB868C116B1; Sat, 17 Aug 2024 09:23:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886613; bh=/iKctCBKpPZbYucw7mw4jAYqwvHfe1Cxo91tj/Sqso4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SYRgCbE5qNghH6V0s+DUU8givzG5Yqh9aFqoGSjE9PwVUlEa977p7v01MnaMSGGW4 PJilZlXwxx+97hbDu4uUrDAi0O1mJdsIx+fhyrX6+F5slY45bdxSNm1xzKV6DNg2mG x+ZzSB51+Vmxv9pqQsWpepgdBJPXR5aKi40Yxlqc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43841: wifi: virt_wifi: avoid reporting connection success with wrong SSID Date: Sat, 17 Aug 2024 11:22:45 +0200 Message-ID: <2024081730-CVE-2024-43841-8143@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=2632; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/iKctCBKpPZbYucw7mw4jAYqwvHfe1Cxo91tj/Sqso4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHsq8ptHSu3LTh562zholVd4XyD2pf+Xkr0bVszxxb3 bf/8r9e74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJzDzOsGDvk3279PzuFc+/ /PfM972+B5+ISvxhmGd8Y/EEkZhLbw21VgYU/pL61X5WiB0A 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: virt_wifi: avoid reporting connection success with wrong SSID When user issues a connection with a different SSID than the one virt_wifi has advertised, the __cfg80211_connect_result() will trigger the warning: WARN_ON(bss_not_found). The issue is because the connection code in virt_wifi does not check the SSID from user space (it only checks the BSSID), and virt_wifi will call cfg80211_connect_result() with WLAN_STATUS_SUCCESS even if the SSID is different from the one virt_wifi has advertised. Eventually cfg80211 won't be able to find the cfg80211_bss and generate the warning. Fixed it by checking the SSID (from user space) in the connection code. The Linux kernel CVE team has assigned CVE-2024-43841 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit c7cdba31ed8b and fixed in 6.1.103 with commit d3cc85a10abc Issue introduced in 5.0 with commit c7cdba31ed8b and fixed in 6.6.44 with commit 36e92b5edc8e Issue introduced in 5.0 with commit c7cdba31ed8b and fixed in 6.10.3 with commit 416d3c1538df Issue introduced in 5.0 with commit c7cdba31ed8b and fixed in 6.11-rc1 with commit b5d14b0c6716 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-43841 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/wireless/virtual/virt_wifi.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/d3cc85a10abc8eae48988336cdd3689ab92581b3 https://git.kernel.org/stable/c/36e92b5edc8e0daa18e9325674313802ce3fbc29 https://git.kernel.org/stable/c/416d3c1538df005195721a200b0371d39636e05d https://git.kernel.org/stable/c/b5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7