Menu

Star on GitHub · 3.2k

CVE-2021-47280

7.0 · HIGH

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 retriev…

Published May 21, 2024CWE-367EPSS 0.18%

Overview

CVE-2021-47280 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47280?

CVE-2021-47280 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

How severe is CVE-2021-47280?

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47280?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47280?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47280 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2021

View all