CVE-2025-38312

5.5 MEDIUM

📋 TL;DR

A division-by-zero vulnerability in the Linux kernel's framebuffer console virtual terminal (fbcvt) subsystem can cause kernel crashes when processing specially crafted display modes. This affects Linux systems with framebuffer console support enabled, potentially leading to denial of service. The vulnerability requires local access or ability to influence display mode parameters.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Kernel versions before the fix commits (specific versions vary by distribution)
Operating Systems: Linux distributions using vulnerable kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Requires framebuffer console support (CONFIG_FB=y and CONFIG_FB_CVT=y). Many distributions enable this by default.

📦 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 →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, requiring physical or remote console access to recover.

🟠

Likely Case

Local denial of service through kernel crash when malicious display mode parameters are processed.

🟢

If Mitigated

No impact if patched or if framebuffer console is disabled.

🌐 Internet-Facing: LOW - Requires local access or ability to influence display mode parameters.
🏢 Internal Only: MEDIUM - Local users or processes could trigger kernel crashes.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires local access to trigger the vulnerable code path. The specific conditions (mode->refresh = 0x80000000) are unusual but could be forced.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions containing the fix commits (2d63433e8eaa3c91b2948190e395bc67009db0d9 and related)

Vendor Advisory: https://git.kernel.org/stable/c/2d63433e8eaa3c91b2948190e395bc67009db0d9

Restart Required: Yes

Instructions:

1. Update kernel to patched version from your distribution vendor. 2. Reboot system to load new kernel.

🔧 Temporary Workarounds

Disable framebuffer console

linux

Remove framebuffer console support from kernel configuration

Remove CONFIG_FB_CVT=y from kernel config and rebuild
Or boot with 'nomodeset' kernel parameter

🧯 If You Can't Patch

  • Restrict local user access to systems with vulnerable kernels
  • Monitor for kernel panic events and investigate root causes

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if framebuffer console is enabled: 'uname -r' and check /boot/config-$(uname -r) for CONFIG_FB_CVT

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is updated and check that the fix commit is present in kernel source

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages in /var/log/kern.log or dmesg
  • Division by zero errors in kernel logs

Network Indicators:

  • None - local vulnerability

SIEM Query:

Search for 'kernel panic' or 'division by zero' in system logs

🔗 References

📤 Share & Export