CVE-2025-38702 fbdev: fix potential buffer overflow in do_register_framebuffer()
A buffer overflow in the Linux kernel framebuffer registration allows attackers to execute arbitrary code or escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38702?
CVE-2025-38702 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 4 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2025-38702?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-38702?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-38702 being exploited?
There is no known exploitation of CVE-2025-38702 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-66857, AZL-75158, BELL-CVE-2025-38702, DEBIAN-CVE-2025-38702, GHSA-wrfw-2xr6-c3p7, ROOT-OS-DEBIAN-11-CVE-2025-38702 and 4 more.