CVE-2025-38685
Description
A flaw was found in the Linux kernel's framebuffer console subsystem. A local attacker with access to a framebuffer device can cause a system crash and Denial of Service (DoS), or potentially achieve local privilege escalation, by triggering a failed console resize operation during display remapping. Because the kernel fails to handle the resize failure properly, subsequent screen updates write data outside allocated memory buffers, leading to kernel memory corruption.
Statement
A flaw was found in the Linux fbdev console path where FBIOPUT_CON2FBMAP could leave the console in an inconsistent state: after a failed vc_resize(), the code still proceeded to update the screen, leading to a vmalloc out-of-bounds write in fast_imageblit(). This is a local issue reachable by users with access to /dev/fb* (e.g., via the video group) and can result in kernel memory corruption and a system crash. This flaw is only exploitable on systems where the legacy fbdev console (/dev/fb*) is still in use. On modern Linux systems the /dev/fb* is typically absent or unused, and therefore the vulnerability cannot be triggered. The flaw leads to a kernel out-of-bounds write, which at minimum allows local denial of service (crash). Depending on system configuration and memory layout, there is a theoretical possibility of local privilege escalation, but practical exploitability is low.
Mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 6.1 | 7.8 | 7.8 |
| Attack Vector | Local | Local | Local |
| Attack Complexity | Low | Low | Low |
| Privileges Required | Low | Low | Low |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Unchanged |
| Confidentiality | None | High | High |
| Integrity Impact | Low | High | High |
| Availability Impact | High | High | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Integrity
Technical Impact: Modify Memory; Execute Unauthorized Code or Commands
Write operations could cause memory corruption. In some cases, an adversary can modify control data such as return addresses in order to execute unexpected code.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
Attempting to access out-of-range, invalid, or unauthorized memory could cause the product to crash.
Other
Technical Impact: Unexpected State
Subsequent write operations can produce undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.