CVE-2025-38702

fbdev: fix potential buffer overflow in do_register_framebuffer()

State
Published
Severity
Not scored
Published
Sep 4, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5c3f5a25c62230b7965804ce7a2e9305c3ca3961Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before cbe740de32bb0fb7a5213731ff5f26ea6718fca3Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 806f85bdd3a60187c21437fc51baace11f659f35Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2828a433c7d7a05b6f27c8148502095101dd0b09Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 523b84dc7ccea9c4d79126d6ed1cf9033cf83b05Affected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 6.1.149 through 6.1.*Not affected
  • 6.6.103 through 6.6.*Not affected
  • 6.12.43 through 6.12.*Not affected
  • 6.15.11 through 6.15.*Not affected
  • 6.16.2 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.