Skip to main content

Linux Kernel CVE-2025-40304

| EUVDEUVD-2025-201641 HIGH
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.8 HIGH

Local low-privileged user triggers a kernel heap out-of-bounds write via fbcon with no user interaction, yielding high C/I/A through potential privilege escalation or crash.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat
7.3 MEDIUM
qualitative

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

6
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
EUVD ID Assigned
Mar 15, 2026 - 17:54 euvd
EUVD-2025-201641
Analysis Generated
Mar 15, 2026 - 17:54 vuln.today
CVE Published
Dec 08, 2025 - 01:16 cve.org
HIGH 7.8
CVE Published
Dec 08, 2025 - 01:16 nvd
N/A

DescriptionCVE.org

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.

AnalysisAI

Out-of-bounds memory corruption in the Linux kernel's fbdev console text-rendering path (bit_putcs) allows a local, low-privileged user to trigger vmalloc-out-of-bounds writes when text is rendered near screen edges, corrupting kernel heap memory adjacent to the framebuffer. The flaw stems from a character-count/buffer-size mismatch after horizontal clipping, and with a CVSS of 7.8 (local, low complexity, C:H/I:H/A:H) it can lead to memory corruption and potential privilege escalation or denial of service. No public exploit identified at time of analysis, and EPSS is very low (0.05%, 16th percentile), consistent with a non-remote, config- and hardware-dependent kernel bug rather than a mass-exploitation target.

Technical ContextAI

The vulnerability lives in the kernel framebuffer console subsystem (fbdev/fbcon), specifically the software drawing helper bit_putcs, which renders character strings into a framebuffer via bit_putcs_aligned and bit_putcs_unaligned. When a string is drawn near the right screen edge, the image width is clipped to fit the visible framebuffer, but the character count (cnt) passed to the aligned/unaligned renderers was not updated to match the clipped width. The renderers therefore allocate a buffer sized for the clipped width while iterating over the original, larger count, writing past the end of a vmalloc'd framebuffer region - a classic buffer overflow (CWE-787-style out-of-bounds write; the CWE field was reported as N/A but the tags confirm 'Buffer Overflow'). Affected products per NVD/EUVD CPE data are the mainline Linux kernel from the initial fbcon lineage (commit 1da177e4, i.e. 2.6.12-era code) up to the fixed points. The bug is reachable through the framebuffer console text path, so it depends on fbcon/fbdev being active and text being drawn at boundary positions.

RemediationAI

Apply the vendor-released kernel patch by upgrading to a fixed stable release for your branch: 5.4.302, 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, or 6.18 (or later). Distribution users should install the corresponding updated kernel packages and reboot - Ubuntu users via USN-8096-1 (https://ubuntu.com/security/notices/USN-8096-1) and USN-8095-1 (https://ubuntu.com/security/notices/USN-8095-1); the upstream fix commits are available at git.kernel.org/stable (e.g. https://git.kernel.org/stable/c/ebc0730b490c7f27340b1222e01dd106e820320d). Where immediate patching is not possible, reduce exposure by limiting local/untrusted user access to the affected hosts and, if operationally acceptable, avoiding reliance on the framebuffer console (fbcon) - for example using a serial or graphical console path so the vulnerable bit_putcs text-rendering path is not exercised; note this changes console behavior and may not be feasible on headless or embedded systems that depend on fbdev, so treat it as a stopgap only until the kernel is updated.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.0/toolbox:latest Affected

Share

CVE-2025-40304 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy