VDB

DEBIAN-CVE-2025-40304

DEBIAN-CVE-2025-40304 PUBLISHED CVSS 7.800000190734863 HIGH

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.

Risk Scores

CVSS 3.1
7.800000190734863
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected Products

VendorProductVersions
Debian:12linux0, 6.1.106-1, 6.1.106-2
Debian:13linux0, 6.12.38-1, 6.12.41-1
Debian:14linux6.15.3-1~exp1, 6.15.4-1~exp1, 6.15.5-1~exp1

Timeline

  • Dec 8, 2025 CVE Published
  • Oct 15, 2026 CVE Updated
Open in Interactive Console →
$ Console Community · 50/day Open console ›