# drm/plane: Move range check for format_count earlier

CVE record · `CVE-2021-47659`

- **Identifiers:** `CVE-2021-47659`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 26 Feb 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 26 Feb 2025, 02:05 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `e6fc3b68558e4c6d8d160b5daf2511b99afa8814 to before 4ab7e453a3ee88c274cf97bee9487ab92a66d313` (git)
  - affected: `e6fc3b68558e4c6d8d160b5daf2511b99afa8814 to before 1e29d829ad51d1472dd035487953a6724b56fc33` (git)
  - affected: `e6fc3b68558e4c6d8d160b5daf2511b99afa8814 to before b5cd108143513e4498027b96ec4710702d186f11` (git)
  - affected: `e6fc3b68558e4c6d8d160b5daf2511b99afa8814 to before 978e3d023256bfaf34a0033d40c94e8a8e70cf3c` (git)
  - affected: `e6fc3b68558e4c6d8d160b5daf2511b99afa8814 to before 787163d19bc3cdc6ca4b96223f62208534d1cf6b` (git)
  - affected: `e6fc3b68558e4c6d8d160b5daf2511b99afa8814 to before ad6dd7a2bac86118985c7b3426e175b9d3c1ec4f` (git)
  - affected: `e6fc3b68558e4c6d8d160b5daf2511b99afa8814 to before 4b674dd69701c2e22e8e7770c1706a69f3b17269` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.14`
  - unaffected: `before 4.14` (semver)
  - unaffected: `4.19.247 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.198 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.121 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.46 to 5.15.*, inclusive` (semver)
  - unaffected: `5.17.14 to 5.17.*, inclusive` (semver)
  - unaffected: `5.18.3 to 5.18.*, inclusive` (semver)
  - unaffected: `5.19 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel DRM plane setup code leaks memory and a modeset identifier when its format_count > 64 range check fails. The source gives few details on whether an attacker could reach this path or what impact beyond the resource leak is possible. Upgrade to Linux 4.19.247, 5.4.198, 5.10.121, 5.15.46, or a later release in those stable series. No fix is listed for version 4.14.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0027, the 19th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 26 Feb 2025, 02:05 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2021-47659)
- 26 Feb 2025, 06:37 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-47659)

## Sources

- [CVE List: CVE-2021-47659](https://www.cve.org/CVERecord?id=CVE-2021-47659)
- [NVD: CVE-2021-47659](https://nvd.nist.gov/vuln/detail/CVE-2021-47659)

### References from the CNA

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

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2021-47659>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2021-47659/>. Everything for agents: <https://agentprime.io/llms.txt>.
