CVE & CISA-KEV Catalog

CVE-2021-47280

HIGH
7.0
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: drm: Fix use-after-free read in drm_getunique() There is a time-of-check-to-time-of-use error in drm_getunique() due to retrieving file_priv->master prior to locking the device's master mutex. An example can be seen in the crash report of the use-after-free error found by Syzbot: https://syzkaller.appspot.com/bug?id=148d2f1dfac64af52ffd27b661981a540724f803 In the report, the master pointer was used after being freed. This is because another process had acquired the device's master mutex in drm_setmaster_ioctl(), then overwrote fpriv->master in drm_new_set_master(). The old value of fpriv->master was subsequently freed before the mutex was unlocked. To fix this, we lock the device's master mutex before retrieving the pointer from from fpriv->master. This patch passes the Syzbot reproducer test.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.46-1CVE-2021-47280
Fixed in:5.10.46-1CVE-2021-47280
Fixed in:5.10.46-1CVE-2021-47280
Fixed in:5.10.46-1CVE-2021-47280

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.18%probability of exploitation in 30 days
8thpercentile

Low risk: more likely to be exploited than 8% of all known CVEs.

References

Related Vulnerabilities

Other CWE-367 (TOCTOU Race Condition) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-36980High8.183%-Fix
CVE-2024-30088High7.068%KEV + RansomFix
CVE-2004-0594Medium5.155%-Fix
CVE-2024-50379Critical9.844%-Fix
CVE-2023-38146High8.839%-Fix
CVE-2024-0132Critical9.037%-Fix
Embed a live status badge for CVE-2021-47280
CVE-2021-47280 severity badge

Markdown

[![CVE-2021-47280](https://tridentstack.com/cve/badge/CVE-2021-47280.svg)](https://tridentstack.com/cve/CVE-2021-47280)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-47280"><img src="https://tridentstack.com/cve/badge/CVE-2021-47280.svg" alt="CVE-2021-47280"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-12-24.