CVE-2025-40304

CVE-2025-40304

High · published December 8, 2025

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

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

fbdev: Add bounds checking in bit_putcs to fix vmalloc-out-of-bounds

Add bounds checking to prevent writes past framebuffer boundaries when

rendering text near screen edges. Return early if the Y position is off-screen

and clip image height to screen boundary. Break from the rendering loop if the

X position is off-screen. When clipping image width to fit the screen, update

the character count to match the clipped width to prevent buffer size

mismatches.

Without the character count update, bit_putcs_aligned and bit_putcs_unaligned

receive mismatched parameters where the buffer is allocated for the clipped

width but cnt reflects the original larger count, causing out-of-bounds writes.

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.00144 · 3.4th percentile
Published
2025-12-08T06:16Z
References (8)
EPSS history
Timeline
  • 08 DEC 00:46Z
    fbdev: Add bounds checking in bit_putcs to fix vmalloc-out-of-bounds
    cvelistv5