cbcvebase.
CVE-2025-40304
published 2025-12-08

CVE-2025-40304: 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…

PriorityP338high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.13%
2.8th percentile
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.

Affected

32 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.159-1 (bookworm)linux 6.1.159-1 (bookworm)
debianlinux-6.1< linux 6.1.159-1 (bookworm)linux 6.1.159-1 (bookworm)
linuxlinux
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 996bfaa7372d6718b6d860bdf78f6618e850c702996bfaa7372d6718b6d860bdf78f6618e850c702
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < f0982400648a3e00580253e0c48e991f34d2684cf0982400648a3e00580253e0c48e991f34d2684c
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 1943b69e87b0ab35032d47de0a7fca9a3d1d6fc11943b69e87b0ab35032d47de0a7fca9a3d1d6fc1
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < ebc0730b490c7f27340b1222e01dd106e820320debc0730b490c7f27340b1222e01dd106e820320d
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 86df8ade88d290725554cefd03101ecd0fbd375286df8ade88d290725554cefd03101ecd0fbd3752
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 15ba9acafb0517f8359ca30002c189a68ddbb93915ba9acafb0517f8359ca30002c189a68ddbb939
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2d1359e11674ed4274934eac8a71877ae5ae7bbb2d1359e11674ed4274934eac8a71877ae5ae7bbb
linuxlinux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 3637d34b35b287ab830e66048841ace404382b673637d34b35b287ab830e66048841ace404382b67
linuxlinux_kernel>= 0 < 5.10.247-15.10.247-1
linuxlinux_kernel>= 0 < 6.1.159-16.1.159-1
linuxlinux_kernel>= 0 < 6.12.63-16.12.63-1
linuxlinux_kernel>= 0 < 6.17.8-16.17.8-1
linuxlinux_kernel>= 0 < 5.15.0-173.1835.15.0-173.183
linuxlinux_kernel>= 0 < 6.8.0-106.1066.8.0-106.106
linuxlinux_kernel>= 0 < 6.17.0-14.146.17.0-14.14
linuxlinux_kernel>= 2.6.12 < 5.4.3025.4.302
linuxlinux_kernel>= 5.11.0 < 5.15.1975.15.197
linuxlinux_kernel>= 5.16.0 < 6.1.1596.1.159
linuxlinux_kernel>= 5.5.0 < 5.10.2475.10.247
linuxlinux_kernel>= 6.13.0 < 6.17.86.17.8
linuxlinux_kernel>= 6.2.0 < 6.6.1176.6.117
linuxlinux_kernel>= 6.7.0 < 6.12.586.12.58

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_msrc7.8HIGH
vendor_ubuntu7.8HIGH
vendor_redhat7.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.