# CVE-2021-47659: drm/plane: Move range check for format\_count earlier

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-02-26T02:05:56.954Z
- **Modified:** 2026-11-05T20:16:56.093Z

## Who should check

- Anyone running Linux \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 4ab7e453a3ee88c274cf97bee9487ab92a66d313; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 1e29d829ad51d1472dd035487953a6724b56fc33; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< b5cd108143513e4498027b96ec4710702d186f11; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 978e3d023256bfaf34a0033d40c94e8a8e70cf3c; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 787163d19bc3cdc6ca4b96223f62208534d1cf6b; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< ad6dd7a2bac86118985c7b3426e175b9d3c1ec4f; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 4b674dd69701c2e22e8e7770c1706a69f3b17269
- Anyone running Linux 4.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/plane: Move range check for format\_count earlier

While the check for format\_count \> 64 in \_\_drm\_universal\_plane\_init()
shouldn't be hit (it's a WARN\_ON), in its current position it will then
leak the plane-\>format\_types array and fail to call
drm\_mode\_object\_unregister() leaking the modeset identifier. Move it to
the start of the function to avoid allocating those resources in the
first place.

## Affected and fixed versions

- Linux: \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 4ab7e453a3ee88c274cf97bee9487ab92a66d313; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 1e29d829ad51d1472dd035487953a6724b56fc33; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< b5cd108143513e4498027b96ec4710702d186f11; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 978e3d023256bfaf34a0033d40c94e8a8e70cf3c; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 787163d19bc3cdc6ca4b96223f62208534d1cf6b; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< ad6dd7a2bac86118985c7b3426e175b9d3c1ec4f; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 4b674dd69701c2e22e8e7770c1706a69f3b17269 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 4b674dd69701c2e22e8e7770c1706a69f3b17269 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47659. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47659.md
Affected: Linux >= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, < 4ab7e453a3ee88c274cf97bee9487ab92a66d313; >= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, < 1e29d829ad51d1472dd035487953a6724b56fc33; >= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, < b5cd108143513e4498027b96ec4710702d186f11; >= e6fc3b68558e4c6d8d160b5…
Fixed in: Linux 4ab7e453a3ee88c274cf97bee9487ab92a66d313, Linux 1e29d829ad51d1472dd035487953a6724b56fc33, Linux 978e3d023256bfaf34a0033d40c94e8a8e70cf3c, Linux 787163d19bc3cdc6ca4b96223f62208534d1cf6b, Linux 4b674dd69701c2e22e8e7770c1706a69f3b17269

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47659 being exploited?

There is no confirmed exploitation: CVE-2021-47659 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47659?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47659?

Linux \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 4ab7e453a3ee88c274cf97bee9487ab92a66d313; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 1e29d829ad51d1472dd035487953a6724b56fc33; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< b5cd108143513e4498027b96ec4710702d186f11; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 978e3d023256bfaf34a0033d40c94e8a8e70cf3c; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 787163d19bc3cdc6ca4b96223f62208534d1cf6b; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< ad6dd7a2bac86118985c7b3426e175b9d3c1ec4f; \>= e6fc3b68558e4c6d8d160b5daf2511b99afa8814, \< 4b674dd69701c2e22e8e7770c1706a69f3b17269; Linux 4.14.

### Is there a fix for CVE-2021-47659?

Yes. Fixed in Linux 4ab7e453a3ee88c274cf97bee9487ab92a66d313, Linux 1e29d829ad51d1472dd035487953a6724b56fc33, Linux 978e3d023256bfaf34a0033d40c94e8a8e70cf3c, Linux 787163d19bc3cdc6ca4b96223f62208534d1cf6b, Linux 4b674dd69701c2e22e8e7770c1706a69f3b17269. Upgrade Linux to 4b674dd69701c2e22e8e7770c1706a69f3b17269 or later.

### How do I check if I'm affected by CVE-2021-47659?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4ab7e453a3ee88c274cf97bee9487ab92a66d313>
- patch: <https://git.kernel.org/stable/c/1e29d829ad51d1472dd035487953a6724b56fc33>
- patch: <https://git.kernel.org/stable/c/b5cd108143513e4498027b96ec4710702d186f11>
- patch: <https://git.kernel.org/stable/c/978e3d023256bfaf34a0033d40c94e8a8e70cf3c>
- patch: <https://git.kernel.org/stable/c/787163d19bc3cdc6ca4b96223f62208534d1cf6b>
- patch: <https://git.kernel.org/stable/c/ad6dd7a2bac86118985c7b3426e175b9d3c1ec4f>
- patch: <https://git.kernel.org/stable/c/4b674dd69701c2e22e8e7770c1706a69f3b17269>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47659>

HTML: <https://flawdb.com/CVE-2021-47659> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47659>
