Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2021-47494
HistoryMay 22, 2024 - 9:15 a.m.

CVE-2021-47494

2024-05-2209:15:11
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
31
linux kernel
vulnerability
cfg80211
management registrations locking.

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

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 configurations

Vulners
Node
linuxlinux_kernelRange5.85.10.77
OR
linuxlinux_kernelRange5.11.05.14.16
OR
linuxlinux_kernelRange5.15.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/net/cfg80211.h",
      "net/wireless/core.c",
      "net/wireless/core.h",
      "net/wireless/mlme.c"
    ],
    "versions": [
      {
        "version": "6cd536fe62ef",
        "lessThan": "4c22227e39c7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6cd536fe62ef",
        "lessThan": "3c897f39b71f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6cd536fe62ef",
        "lessThan": "09b1d5dc6ce1",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/net/cfg80211.h",
      "net/wireless/core.c",
      "net/wireless/core.h",
      "net/wireless/mlme.c"
    ],
    "versions": [
      {
        "version": "5.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.77",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.14.16",
        "lessThanOrEqual": "5.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%