CVE Catalog

CVE-2025-40304

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.13%

3th percentile - higher than 3% of all known CVEs

Summary

In the fbdev (bit_putcs) subsystem of the Linux kernel, missing bounds checking when rendering text near screen edges was found. This could lead to out-of-bounds writes to the framebuffer.

Risk Assessment

The vulnerability could allow an attacker to write data beyond the framebuffer, potentially causing a denial of service (DoS) or privilege escalation.

Recommendation

It is recommended to update the Linux kernel to a version containing the fix for CVE-2025-40304.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS