CVE-2021-47494
JSON

7.8high

cfg80211: fix management registrations locking

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

Description

In the Linux kernel, the following vulnerability has been resolved: cfg80211: fix management registrations locking The management registrations locking was broken, the list was locked for each wdev, but cfg80211_mgmt_registrations_update() iterated it without holding all the correct spinlocks, causing list corruption. Rather than trying to fix it with fine-grained locking, just move the lock to the wiphy/rdev (still need the list on each wdev), we already need to hold the wdev lock to change it, so there's no contention on the lock in any case. This trivially fixes the bug since we hold one wdev's lock already, and now will hold the lock that protects all lists.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6cd536fe62ef58d7c4eac2da07ab0ed7fd19010d before 4c22227e39c7a0b4dab55617ee8d34d171fab8d4, from 6cd536fe62ef58d7c4eac2da07ab0ed7fd19010d before 3c897f39b71fe68f90599f6a45b5f7bf5618420e, from 6cd536fe62ef58d7c4eac2da07ab0ed7fd19010d before 09b1d5dc6ce1c9151777f6c4e128a59457704c97, 5.8
Not affected: before 5.8, from 5.10.77 up to 5.10.*, from 5.14.16 up to 5.14.*, from 5.15 up to *
CVE List
linux linux_kernelfrom 5.8 before 5.10.77, from 5.11 before 5.14.16, 5.15NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-667

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: cfg80211: fix management registrations locking The management registrations locking was broken, the list was locked for each wdev, but cfg80211_mgmt_registrations_update() iterated it without holding all the correct spinlocks, causing list corruption. Rather than trying to fix it with fine-grained locking, just move the lock to the wiphy/rdev (still need the list on each wdev), we already need to hold the wdev lock to change it, so there's no contention on the lock in any case. This trivially fixes the bug since we hold one wdev's lock already, and now will hold the lock that protects all lists.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: cfg80211: corrige el bloqueo de registros de administración. El bloqueo de registros de administración estaba roto, la lista estaba bloqueada para cada wdev, pero cfg80211_mgmt_registrations_update() la repitió sin mantener todos los spinlocks correctos, lo que provocó corrupción en la lista. En lugar de intentar solucionarlo con un bloqueo detallado, simplemente mueva el bloqueo a wiphy/rdev (aún necesitamos la lista en cada wdev), ya necesitamos mantener presionado el bloqueo wdev para cambiarlo, por lo que no hay contención en el bloqueo. En todo caso. Esto soluciona trivialmente el error ya que ya tenemos un bloqueo de wdev y ahora mantendremos el bloqueo que protege todas las listas.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47494 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47494 changed 2026-08-04Public domain