wifi: rtlwifi: remove unused check_buddy_priv (Linux Linux)

CVE-2024-58072
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 12 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 26634c4b1868323f49f8cd24c3493b57819867fd < f801e754efa21bd61b3cc15ec7565696165b272f ; affected 26634c4b1868323f49f8cd24c3493b57819867fd < 1b9cbd8a9ae68b32099fbb03b2d5ffa0c5e0dcc9 ; affected 26634c4b1868323f49f8cd24c3493b57819867fd < 8e2fcc68fbaab3ad9f5671fee2be0956134b740a ; affected 26634c4b1868323f49f8cd24c3493b57819867fd < 1e39b0486cdb496cdfba3bc89886150e46acf6f4 ; affected 26634c4b1868323f49f8cd24c3493b57819867fd < 465d01ef6962b82b1f0ad1f3e58b398dbd35c1c1 ; affected 26634c4b1868323f49f8cd24c3493b57819867fd < 543e3e9f2e9e47ded774c74e680f28a0ca362aee
Linux · Linuxaffected 3.10 ; unaffected 0 < 3.10 ; unaffected 5.4.291 ≤ 5.4.* ; unaffected 5.10.235 ≤ 5.10.* ; unaffected 5.15.179 ≤ 5.15.* ; unaffected 6.1.129 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD