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 129A32309A1 for ; Wed, 15 Jan 2025 13:07:15 +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=1736946436; cv=none; b=XcVrvfJFc0QaGwSBCmLj/qsBdHQ28UHVdbEO/uSkBTSk6dZOcdrJLQGZPc5xO9YhWmprmfDIH8l0V889hQJr3Zq91FdKZsQWrB2LWNHzxYMEuIjYZJlmzywa5gZzFZfFYcajSSQfXKGHapcNP1TBNQTZ3pVWZujRHfdOPjC1Z50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736946436; c=relaxed/simple; bh=VECpv43+tQnfO7qmHoDobqfQhvvv+UsML4AEY6yHHEk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SSdliYtAeXCgBo6WEgd6m5eR8cPgcosRgTYAIG+WUkhO6YTaqxb0Wf1QA1A/0DscyemgRsz1qcvqoijBZLXj3nsbUzw4WhXrgiA34jkqK1Q8sLcuA0PBILoY339s+HU9A0Kl/BfHjcoenTFf5IPSIuAEE+SK4BlugY37inOGhmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vZcnU7l3; 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="vZcnU7l3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 232F5C4CEDF; Wed, 15 Jan 2025 13:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736946435; bh=VECpv43+tQnfO7qmHoDobqfQhvvv+UsML4AEY6yHHEk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vZcnU7l3Bo/n8YOvsaRvQ+9CZp5899+nZzPIOvB8aWXqXj1Zgf4g6SGa2AMzPFF5z uDx4Zy6Zeoc6SoSjCEWBKJIkguF/4We+wB1Up4HpDVVS/mnADQLY5zwrw9taKmjMI2 jpLWZoR9JE1KmhnyAfMl9EcV7eX0DXXDPvitPG0g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57898: wifi: cfg80211: clear link ID from bitmap during link delete after clean up Date: Wed, 15 Jan 2025 14:06:21 +0100 Message-ID: <2025011515-CVE-2024-57898-bfde@gregkh> X-Mailer: git-send-email 2.48.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=2402; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VECpv43+tQnfO7qmHoDobqfQhvvv+UsML4AEY6yHHEk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOntm46LpgjdjmWQ9b/qa3njdZDJpLiHLt0TZT6xbQ8SX h+pPCe9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC/ZNhNusS8x0XvH2Zexey +x6XUoh8FL4hg2HBifKgHSdlLr/88aG9Qn3R4dNq/wNnAwA= 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: cfg80211: clear link ID from bitmap during link delete after clean up Currently, during link deletion, the link ID is first removed from the valid_links bitmap before performing any clean-up operations. However, some functions require the link ID to remain in the valid_links bitmap. One such example is cfg80211_cac_event(). The flow is - nl80211_remove_link() cfg80211_remove_link() ieee80211_del_intf_link() ieee80211_vif_set_links() ieee80211_vif_update_links() ieee80211_link_stop() cfg80211_cac_event() cfg80211_cac_event() requires link ID to be present but it is cleared already in cfg80211_remove_link(). Ultimately, WARN_ON() is hit. Therefore, clear the link ID from the bitmap only after completing the link clean-up. The Linux kernel CVE team has assigned CVE-2024-57898 to this issue. Affected and fixed versions =========================== Fixed in 6.12.9 with commit ae07daf440d3220d0986e676317a5da66e4f9dfd Fixed in 6.13-rc3 with commit b5c32ff6a3a38c74facdd1fe34c0d709a55527fd 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-57898 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/cfg.c net/wireless/util.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/ae07daf440d3220d0986e676317a5da66e4f9dfd https://git.kernel.org/stable/c/b5c32ff6a3a38c74facdd1fe34c0d709a55527fd