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 2C3DE20FA97 for ; Thu, 6 Mar 2025 15:55:01 +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=1741276502; cv=none; b=jaHfnvcmag2kuSaSXKYATJdpCuhF3GDPLa4fzex1U4XGM9nIs+Cudd9B9w3buTtILn8iIINZdgC/o5HkefJ2uzUSPSDhqBBImnL/D6l8/gu3BDBW5eGZ0286vAoTpOXndJTIneHLUv3WzMcpnt+DhDhttDzbsoT5XH4DfLLAoXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741276502; c=relaxed/simple; bh=fsxh3tGMxrwmBdx+A3UfQ8rzJ/ER8DMTKB9Q/ib/3SA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B3tJc6BXZz9dL7/hx/w+SN3y2ENx+MmrXQEsf/98Eb7h0PUvfpJftvvIgeXgTRC9Oi3y2J3vLmmQ5iVGmM7qUACU2mDbXiyAnv6xwwwE9Nig8awu/IThPSP8agVL1jYTItlU9r0WODXBNs090bJKQXI36V5o0m93+aniwtB/X/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uMqXmAfO; 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="uMqXmAfO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AF49C4CEE9; Thu, 6 Mar 2025 15:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741276501; bh=fsxh3tGMxrwmBdx+A3UfQ8rzJ/ER8DMTKB9Q/ib/3SA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uMqXmAfOUU5vTg7rPPenZSX8rPM9gz8C+GtW79L+peQcT3PWLM6EnHFnpQnNL1YhG 6ktI0Ntbt3XQHJoBvCikqu8ICOlGspPTudEeyjGO1CuT4eBK725GkKC4wPKuRFECp5 FUeNq32DQjVtVED0k2F23NMaQ/5GOYAIrY9XSSUo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58072: wifi: rtlwifi: remove unused check_buddy_priv Date: Thu, 6 Mar 2025 16:54:25 +0100 Message-ID: <2025030612-CVE-2024-58072-2dc3@gregkh> X-Mailer: git-send-email 2.48.1 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=3365; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fsxh3tGMxrwmBdx+A3UfQ8rzJ/ER8DMTKB9Q/ib/3SA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOknj6qEXVYR1PMt2DXzXomIVNyvO22hBu1uIbt3VvpN+ Ws9V9y1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayIIBhfu4xDa/Ca9n31ifJ qhy8duWwU1qSNcP8wNBP63Ouv9zK+DN14TLGlIbafT91AQ== 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: rtlwifi: remove unused check_buddy_priv Commit 2461c7d60f9f ("rtlwifi: Update header file") introduced a global list of private data structures. Later on, commit 26634c4b1868 ("rtlwifi Modify existing bits to match vendor version 2013.02.07") started adding the private data to that list at probe time and added a hook, check_buddy_priv to find the private data from a similar device. However, that function was never used. Besides, though there is a lock for that list, it is never used. And when the probe fails, the private data is never removed from the list. This would cause a second probe to access freed memory. Remove the unused hook, structures and members, which will prevent the potential race condition on the list and its corruption during a second probe when probe fails. The Linux kernel CVE team has assigned CVE-2024-58072 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit 26634c4b1868323f49f8cd24c3493b57819867fd and fixed in 6.1.129 with commit 1e39b0486cdb496cdfba3bc89886150e46acf6f4 Issue introduced in 3.10 with commit 26634c4b1868323f49f8cd24c3493b57819867fd and fixed in 6.6.76 with commit 465d01ef6962b82b1f0ad1f3e58b398dbd35c1c1 Issue introduced in 3.10 with commit 26634c4b1868323f49f8cd24c3493b57819867fd and fixed in 6.12.13 with commit 543e3e9f2e9e47ded774c74e680f28a0ca362aee Issue introduced in 3.10 with commit 26634c4b1868323f49f8cd24c3493b57819867fd and fixed in 6.13.2 with commit 006e803af7408c3fc815b0654fc5ab43d34f0154 Issue introduced in 3.10 with commit 26634c4b1868323f49f8cd24c3493b57819867fd and fixed in 6.14-rc1 with commit 2fdac64c3c35858aa8ac5caa70b232e03456e120 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-58072 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/realtek/rtlwifi/base.c drivers/net/wireless/realtek/rtlwifi/base.h drivers/net/wireless/realtek/rtlwifi/pci.c drivers/net/wireless/realtek/rtlwifi/wifi.h 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/1e39b0486cdb496cdfba3bc89886150e46acf6f4 https://git.kernel.org/stable/c/465d01ef6962b82b1f0ad1f3e58b398dbd35c1c1 https://git.kernel.org/stable/c/543e3e9f2e9e47ded774c74e680f28a0ca362aee https://git.kernel.org/stable/c/006e803af7408c3fc815b0654fc5ab43d34f0154 https://git.kernel.org/stable/c/2fdac64c3c35858aa8ac5caa70b232e03456e120