CVE-2025-38685
📋 TL;DR
This vulnerability in the Linux kernel's fbdev subsystem allows a local user to trigger an out-of-bounds write in the fast_imageblit function when performing console-to-framebuffer mapping operations. The flaw occurs when console resize fails but the system continues with inconsistent data structures, leading to memory corruption. This affects Linux systems with framebuffer console support enabled.
💻 Affected Systems
- Linux kernel
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Local privilege escalation to kernel-level code execution, potentially leading to full system compromise, data theft, or persistent backdoor installation.
Likely Case
Kernel panic or system crash causing denial of service, with potential for limited privilege escalation in carefully crafted attacks.
If Mitigated
System remains stable with no impact if the vulnerable code path isn't triggered or if proper access controls prevent unauthorized users from performing FBIOPUT_CON2FBMAP operations.
🎯 Exploit Status
Requires local access and ability to perform specific framebuffer console operations. Exploit would need to trigger the resize failure path and subsequent inconsistent state.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Patched in stable kernel versions via commits referenced in CVE
Vendor Advisory: https://git.kernel.org/stable/c/078e62bffca4b7e72e8f3550eb063ab981c36c7a
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version from your distribution's repositories. 2. For custom kernels, apply patches from stable kernel git tree. 3. Reboot system to load new kernel.
🔧 Temporary Workarounds
Disable framebuffer console
linuxRemove framebuffer console support to eliminate vulnerable code path
Remove CONFIG_FRAMEBUFFER_CONSOLE from kernel configuration and rebuild kernel
Restrict console device access
linuxLimit access to console devices to prevent unauthorized FBIOPUT_CON2FBMAP operations
chmod 600 /dev/tty*
setfacl -m u:root:rw /dev/tty*
🧯 If You Can't Patch
- Restrict local user access to systems with vulnerable kernels
- Implement strict access controls on console and framebuffer devices
🔍 How to Verify
Check if Vulnerable:
Check kernel version and if framebuffer console is enabled: cat /proc/config.gz | gunzip | grep CONFIG_FRAMEBUFFER_CONSOLE
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is updated to include the fix commits: uname -r and check with distribution vendor
📡 Detection & Monitoring
Log Indicators:
- Kernel oops messages
- System crashes related to fbcon_putcs or fast_imageblit
- Unexpected console/framebuffer mapping operations
Network Indicators:
- None - local exploit only
SIEM Query:
source="kernel" AND ("fbcon_putcs" OR "fast_imageblit" OR "FBIOPUT_CON2FBMAP")
🔗 References
- https://git.kernel.org/stable/c/078e62bffca4b7e72e8f3550eb063ab981c36c7a
- https://git.kernel.org/stable/c/27b118aebdd84161c8ff5ce49d9d536f2af10754
- https://git.kernel.org/stable/c/4c4d7ddaf1d43780b106bedc692679f965dc5a3a
- https://git.kernel.org/stable/c/56701bf9eeb63219e378cb7fcbd066ea4eaeeb50
- https://git.kernel.org/stable/c/af0db3c1f898144846d4c172531a199bb3ca375d
- https://git.kernel.org/stable/c/cfec17721265e72e50cc69c6004fe3475cd38df2
- https://git.kernel.org/stable/c/ed9b8e5016230868c8d813d9179523f729fec8c6
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html