CVE-2024-58072
JSON

7.8high

wifi: rtlwifi: remove unused check_buddy_priv

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 26634c4b1868323f49f8cd24c3493b57819867fd before f801e754efa21bd61b3cc15ec7565696165b272f, from 26634c4b1868323f49f8cd24c3493b57819867fd before 1b9cbd8a9ae68b32099fbb03b2d5ffa0c5e0dcc9, from 26634c4b1868323f49f8cd24c3493b57819867fd before 8e2fcc68fbaab3ad9f5671fee2be0956134b740a, from 26634c4b1868323f49f8cd24c3493b57819867fd before 1e39b0486cdb496cdfba3bc89886150e46acf6f4, from 26634c4b1868323f49f8cd24c3493b57819867fd before 465d01ef6962b82b1f0ad1f3e58b398dbd35c1c1, from 26634c4b1868323f49f8cd24c3493b57819867fd before 543e3e9f2e9e47ded774c74e680f28a0ca362aee, from 26634c4b1868323f49f8cd24c3493b57819867fd before 006e803af7408c3fc815b0654fc5ab43d34f0154, from 26634c4b1868323f49f8cd24c3493b57819867fd before 2fdac64c3c35858aa8ac5caa70b232e03456e120 and 1 more
Not affected: before 3.10, from 5.4.291 up to 5.4.*, from 5.10.235 up to 5.10.*, from 5.15.179 up to 5.15.*, from 6.1.129 up to 6.1.*, from 6.6.76 up to 6.6.*
CVE List
linux linux_kernelfrom 3.10 before 5.4.291, from 5.5 before 5.10.235, from 5.11 before 5.15.179, from 5.16 before 6.1.129, from 6.2 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2NVD

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: rtlwifi: eliminar check_buddy_priv no utilizado el commit 2461c7d60f9f ("rtlwifi: Actualizar archivo de encabezado") introdujo una lista global de estructuras de datos privados. Más tarde, el commit 26634c4b1868 ("rtlwifi Modificar bits existentes para que coincidan con la versión del proveedor 2013.02.07") comenzó a agregar los datos privados a esa lista en el momento del sondeo y agregó un gancho, check_buddy_priv para encontrar los datos privados de un dispositivo similar. Sin embargo, esa función nunca se usó. Además, aunque hay un bloqueo para esa lista, nunca se usa. Y cuando el sondeo falla, los datos privados nunca se eliminan de la lista. Esto haría que un segundo sondeo acceda a la memoria liberada. Elimine el gancho, las estructuras y los miembros no utilizados, lo que evitará la posible condición de ejecución en la lista y su corrupción durante un segundo sondeo cuando el sondeo falla.

References

https://git.kernel.org/stable/c/f801e754efa21bd61b3cc15ec7565696165b272fpatch
https://git.kernel.org/stable/c/1b9cbd8a9ae68b32099fbb03b2d5ffa0c5e0dcc9patch
https://git.kernel.org/stable/c/8e2fcc68fbaab3ad9f5671fee2be0956134b740apatch
https://git.kernel.org/stable/c/1e39b0486cdb496cdfba3bc89886150e46acf6f4patch
https://git.kernel.org/stable/c/465d01ef6962b82b1f0ad1f3e58b398dbd35c1c1patch
https://git.kernel.org/stable/c/543e3e9f2e9e47ded774c74e680f28a0ca362aeepatch
https://git.kernel.org/stable/c/006e803af7408c3fc815b0654fc5ab43d34f0154patch
https://git.kernel.org/stable/c/2fdac64c3c35858aa8ac5caa70b232e03456e120patch
https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
https://cert-portal.siemens.com/productcert/html/ssa-784472.html

Sources

SourceRecordLicence
CVE ListCVE-2024-58072 changed 2026-11-05CVE Terms of Use
NVDCVE-2024-58072 changed 2026-11-05Public domain