# fbdev: Fix fb_set_var to prevent null-ptr-deref in fb_videomode_to_var

CVE record · `CVE-2025-38214`

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

Published by the CVE Program (CNA: Linux) at 4 Jul 2025, 13:37 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: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before ee20216f12d9482cd70e44dae5e7fabb38367c71` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before fab201d72fde38d081e2c5d4ad25595c535b7b22` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 1a10d91766eb6ddfd5414e4785611e33a4fe0f9b` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before ff0e037241173b574b385bff53d67567b9816db5` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 3ca78032a388a0795201792b36e6fc9b6e6e8eed` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before b3071bb463ea1e6c686d0dc9638fc940f2f5cf17` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 8a3a2887794b2c8e78b3e5d6e3de724527c9f41b` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 05f6e183879d9785a3cdf2f08a498bc31b7a20aa` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.12`
  - unaffected: `before 2.6.12` (semver)
  - unaffected: `5.4.295 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.239 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.186 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.142 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.95 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.35 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.4 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 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 framebuffer (fbdev) code is affected in versions from 2.6.12 up to several stable branches, as listed in the affected product entries. A local user who can issue framebuffer ioctls can trigger a null pointer dereference during a failed mode change, which causes a kernel crash. The source gives few details on whether anything beyond a crash is possible. Upgrade to a fixed Linux kernel version from the stable branch for your release; the fix restores the previous framebuffer variable settings when a mode addition fails.

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.0019, the 9th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 4 Jul 2025, 13:37 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38214)
- 4 Jul 2025, 14:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38214)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/ee20216f12d9482cd70e44dae5e7fabb38367c71>
- <https://git.kernel.org/stable/c/fab201d72fde38d081e2c5d4ad25595c535b7b22>
- <https://git.kernel.org/stable/c/1a10d91766eb6ddfd5414e4785611e33a4fe0f9b>
- <https://git.kernel.org/stable/c/ff0e037241173b574b385bff53d67567b9816db5>
- <https://git.kernel.org/stable/c/3ca78032a388a0795201792b36e6fc9b6e6e8eed>
- <https://git.kernel.org/stable/c/b3071bb463ea1e6c686d0dc9638fc940f2f5cf17>
- <https://git.kernel.org/stable/c/8a3a2887794b2c8e78b3e5d6e3de724527c9f41b>
- <https://git.kernel.org/stable/c/05f6e183879d9785a3cdf2f08a498bc31b7a20aa>

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-2025-38214>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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