High severity · published Sep 4, 2025
CVE-2025-38685
fbdev: Fix vmalloc out-of-bounds write in fast_imageblit
7.8
CVSS
0.2%
EPSS
No
On KEV
Description
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().
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 7% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
2.6.13 before 5.15.190; 5.16 before 6.1.149; 6.2 before 6.6.103; 6.7 before 6.12.43; 6.13 before 6.15.11; 6.16 before 6.16.2; +5 more · source: NVD
LI
Linux · Linux
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 078e62bffca4b7e72e8f3550eb063ab981c36c7a; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 4c4d7ddaf1d43780b106bedc692679f965dc5a3a; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 27b118aebdd84161c8ff5ce49d9d536f2af10754; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ed9b8e5016230868c8d813d9179523f729fec8c6; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 56701bf9eeb63219e378cb7fcbd066ea4eaeeb50; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cfec17721265e72e50cc69c6004fe3475cd38df2; +2 more · source: vendor
DL
Debian Linux · Debian
11.0 · source: NVD
SC
SIMATIC CN 4100 · Siemens
before V5.0 · source: CISA
SS
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.5; V3.1.5 · source: CISA
SS
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP · Siemens
V3.1.5; V3.1.5 · source: CISA
SS
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP · Siemens
V3.1.5 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-38685
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-38685
Patch
https://git.kernel.org/stable/c/078e62bffca4b7e72e8f3550eb063ab981c36c7a
Patch
https://git.kernel.org/stable/c/27b118aebdd84161c8ff5ce49d9d536f2af10754
Patch
https://git.kernel.org/stable/c/4c4d7ddaf1d43780b106bedc692679f965dc5a3a
Patch
https://git.kernel.org/stable/c/56701bf9eeb63219e378cb7fcbd066ea4eaeeb50
Patch
https://git.kernel.org/stable/c/af0db3c1f898144846d4c172531a199bb3ca375d
Patch
https://git.kernel.org/stable/c/cfec17721265e72e50cc69c6004fe3475cd38df2
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
