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 F1836221550 for ; Fri, 19 Sep 2025 15:29:16 +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=1758295757; cv=none; b=VH7SDs1ExxyFKd8Xzzguoj8nJXV8LR6Noyej3y64DYih4Pbm0qrmD0KpW7VWBA/f0i51UObdU5CS/Xqcfc1Maon3htDKNdUpqJnhBgAB+CMenaTigwzT6lwQ6+rxZEurBXhwi6uTUotmlKek77zGn3IOFyNA0T5dt+XBPd6+duA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295757; c=relaxed/simple; bh=2dD5qDrbr+3+m8mfUnduCJ2TvxQ8aPacpSHZgqg3Iww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CdEBTtK7m56/0yTv73lWC1W8qG+eB+Jvw54p6eeJCJpHxd/Dm8x7u+sYOh0RvdhbpHengXe0oW1gCKC6FrHxFP+/npQ/SQFLpYlPILdDDz91rC+kiiGFHo0Tkep9U1goAoakjZQTBI/YDAjmnb3HxCBluF4W1vHD1xWZ5Td46vk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fBa8HEgA; 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="fBa8HEgA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65310C4CEFD; Fri, 19 Sep 2025 15:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758295756; bh=2dD5qDrbr+3+m8mfUnduCJ2TvxQ8aPacpSHZgqg3Iww=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fBa8HEgAhdvz66ZTykR/26UZs8raX1bMOxBtuf37YAnpjsqQKotMP05egc5T7IXTA Vuu1swClAefKJMx84XY9t/hA2fTbOlnJHiO52mK/j8cqSzgcdEks+BJ8kdzH4MFJxZ ImHwLBvRKPqP0HYN3AvLJEtNoQD7e7L0IIFcQopU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39864: wifi: cfg80211: fix use-after-free in cmp_bss() Date: Fri, 19 Sep 2025 17:28:28 +0200 Message-ID: <2025091906-CVE-2025-39864-a3a2@gregkh> X-Mailer: git-send-email 2.51.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=3389; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zHY7ChqOCUjz4oTBzzgoP7miVJ9eHuwFZTPgML9eOO0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlny9pmbFDrrmibPSkk8JjrymNn6xzETvisMBHp2fHnl 0+0hAxjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk5z3D/KKVrdOXKaXwmO1f zbFupo/QoTe2CxnmV+e//pWw58f39qr9jw0Pv7Z8ZLZ0FQA= 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: cfg80211: fix use-after-free in cmp_bss() Following bss_free() quirk introduced in commit 776b3580178f ("cfg80211: track hidden SSID networks properly"), adjust cfg80211_update_known_bss() to free the last beacon frame elements only if they're not shared via the corresponding 'hidden_beacon_bss' pointer. The Linux kernel CVE team has assigned CVE-2025-39864 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 5.4.299 with commit a8bb681e879ca3c9f722aa08d3d7ae41c42a8807 Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 5.10.243 with commit a97a9791e455bb0cd5e7a38b5abcb05523d4e21c Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 5.15.192 with commit ff040562c10a540b8d851f7f4145fa112977f853 Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 6.1.151 with commit 6854476d9e1aeaaf05ebc98d610061c2075db07d Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 6.6.105 with commit b7d08929178c16398278613df07ad65cf63cce9d Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 6.12.46 with commit 5b7ae04969f822283a95c866967e42b4d75e0eef Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 6.16.6 with commit 912c4b66bef713a20775cfbf3b5e9bd71525c716 Issue introduced in 5.4 with commit 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 and fixed in 6.17-rc5 with commit 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08 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-2025-39864 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/wireless/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/a8bb681e879ca3c9f722aa08d3d7ae41c42a8807 https://git.kernel.org/stable/c/a97a9791e455bb0cd5e7a38b5abcb05523d4e21c https://git.kernel.org/stable/c/ff040562c10a540b8d851f7f4145fa112977f853 https://git.kernel.org/stable/c/6854476d9e1aeaaf05ebc98d610061c2075db07d https://git.kernel.org/stable/c/b7d08929178c16398278613df07ad65cf63cce9d https://git.kernel.org/stable/c/5b7ae04969f822283a95c866967e42b4d75e0eef https://git.kernel.org/stable/c/912c4b66bef713a20775cfbf3b5e9bd71525c716 https://git.kernel.org/stable/c/26e84445f02ce6b2fe5f3e0e28ff7add77f35e08