CVE-2025-38685CWE-787

CVE-2025-38685

High · published September 4, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
6.9
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

fbdev: Fix vmalloc out-of-bounds write in fast_imageblit

This issue triggers when a userspace program does an ioctl

FBIOPUT_CON2FBMAP by passing console number and frame buffer number.

Ideally this maps console to frame buffer and updates the screen if

console is visible.

As part of mapping it has to do resize of console according to frame

buffer info. if this resize fails and returns from vc_do_resize() and

continues further. At this point console and new frame buffer are mapped

and sets display vars. Despite failure still it continue to proceed

updating the screen at later stages where vc_data is related to previous

frame buffer and frame buffer info and display vars are mapped to new

frame buffer and eventully leading to out-of-bounds write in

fast_imageblit(). This bheviour is excepted only when fg_console is

equal to requested console which is a visible console and updates screen

with invalid struct references in fbcon_putcs().

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00177 · 6.9th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2025-09-04T20:15Z
Affected products (12)
ProductVersionsFixed in
linux/linux_kernel≥ 5.16, < 6.1.1496.1.149
linux/linux_kernel≥ 6.2, < 6.6.1036.6.103
linux/linux_kernel≥ 6.7, < 6.12.436.12.43
linux/linux_kernel≥ 6.13, < 6.15.116.15.11
linux/linux_kernel≥ 6.16, < 6.16.26.16.2
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernel≥ 2.6.13, < 5.15.1905.15.190
debian/debian_linuxall versions—
References (10)
EPSS history
Timeline
  • 04 SEP 15:32Z
    fbdev: Fix vmalloc out-of-bounds write in fast_imageblit
    cvelistv5