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

CVE record · `CVE-2025-38215`

- **Identifiers:** `CVE-2025-38215`
- **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 908c5bb64f9c4319902b8ca1aa3fef8f83302520` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 0909b2b49c4546a7a08c80f53d93736b63270827` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 3f2098f4fba7718eb2501207ca6e99d22427f25a` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before d803c4c2a4ac8ce2be6d899d5c7ab0bf7ec355e9` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 17186f1f90d34fa701e4f14e6818305151637b9e` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.12`
  - unaffected: `before 2.6.12` (semver)
  - unaffected: `6.1.143 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's fbdev framebuffer registration code (do_register_framebuffer) has a null pointer dereference in fb_videomode_to_var. If memory allocation fails when adding the framebuffer's video mode, the framebuffer is still registered without that mode, and later use can crash the kernel. The source does not state what an attacker must do to trigger it or what fixed versions are listed beyond the affected ranges. Upgrade to a kernel release that includes the fix for this CVE, such as a stable 6.1.143, 6.6.95, 6.12.35, or 6.15.4 or later release in the matching series.

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.0017, the 6th 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-38215)
- 4 Jul 2025, 14:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38215)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/908c5bb64f9c4319902b8ca1aa3fef8f83302520>
- <https://git.kernel.org/stable/c/0909b2b49c4546a7a08c80f53d93736b63270827>
- <https://git.kernel.org/stable/c/3f2098f4fba7718eb2501207ca6e99d22427f25a>
- <https://git.kernel.org/stable/c/d803c4c2a4ac8ce2be6d899d5c7ab0bf7ec355e9>
- <https://git.kernel.org/stable/c/17186f1f90d34fa701e4f14e6818305151637b9e>

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

---

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