CVE-2025-40304 Affecting kernel-debug-core package, versions <0:4.18.0-553.105.1.el8_10


Severity

Recommended
medium

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ROCKY8-KERNELDEBUGCORE-15360926
  • published27 Feb 2026
  • disclosed8 Dec 2025

Introduced: 8 Dec 2025

CVE-2025-40304  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:8 kernel-debug-core to version 0:4.18.0-553.105.1.el8_10 or higher.
This issue was patched in RLSA-2026:2720.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-debug-core package and not the kernel-debug-core package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:8 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1