Skip to main content

Linux Kernel EUVDEUVD-2025-201641

| CVE-2025-40304 HIGH
2025-12-08 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local authenticated shell access
  2. Delivery
    Render text at framebuffer screen edge
  3. Exploit
    Trigger clipping/cnt mismatch in bit_putcs
  4. Execution
    Out-of-bounds write into kernel vmalloc memory
  5. Persist
    Corrupt adjacent kernel structures
  6. Impact
    Escalate to root or crash kernel

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access with low privileges (CVSS PR:L) and an active framebuffer console/fbdev text-rendering path - the bug is only reachable through bit_putcs when characters are rendered near the screen edge, so the attacker must be able to influence text output at boundary X/Y positions where width clipping occurs. Limiting factors: it is not remotely exploitable (AV:L), requires an authenticated local account, depends on the framebuffer console being in use (systems using purely serial or certain GPU/DRM console paths that don't exercise this code may not be affected), and reliable privilege escalation depends on kernel heap layout and hardware/driver-specific framebuffer geometry. No user interaction is needed (UI:N) once the attacker has local access.

Impact

Signals are internally consistent and point to a genuine but locally-scoped kernel memory-corruption issue rather than an internet-facing emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) indicates a local attacker with low privileges and no user interaction can achieve high confidentiality, integrity, and availability impact - typical of a kernel heap-overflow that can be escalated to root or crash the system. EPSS is only 0.05% (16th percentile) and there is no CISA KEV listing and no public exploit identified, so real-world mass exploitation is unlikely; any abuse would be targeted, local, and likely chained with other access. The main uncertainty is exploitability of the specific write primitive: reaching bit_putcs with attacker-controlled boundary conditions requires an active framebuffer console and the ability to influence text rendering near the screen edge, which limits practicality and may depend on hardware/driver configuration. Net: a legitimate patch-worthy local-privilege/DoS risk, but not a drop-everything remote threat - prioritize on multi-user or untrusted-local systems using fbcon.

Exploit ScenarioDerived

A logged-in local user on a multi-user Linux system with an active framebuffer console manipulates text output to force rendering at the far right screen edge, triggering the clipping mismatch in bit_putcs and causing an out-of-bounds write into kernel memory beyond the framebuffer. By grooming adjacent kernel allocations the attacker corrupts kernel structures to escalate privileges to root or, more simply, crash the kernel for denial of service. No public exploit is identified at time of analysis, and the low attack complexity is offset by the need for local access and an active fbcon path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 30, 2026

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.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:54

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.

Affected VersionsENISA

Linux patch: 5.4.302
Linux 2.6.12
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ebc0730b490c7f27340b1222e01dd106e820320d
Linux patch: 0
Linux patch: 6.17.8
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <996bfaa7372d6718b6d860bdf78f6618e850c702
Linux patch: 6.12.58
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1943b69e87b0ab35032d47de0a7fca9a3d1d6fc1
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2d1359e11674ed4274934eac8a71877ae5ae7bbb
Linux patch: 5.10.247
Linux patch: 5.15.197
Linux patch: 6.18
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3637d34b35b287ab830e66048841ace404382b67
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <86df8ade88d290725554cefd03101ecd0fbd3752
Linux patch: 6.1.159
Linux patch: 6.6.117
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f0982400648a3e00580253e0c48e991f34d2684c
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <15ba9acafb0517f8359ca30002c189a68ddbb939

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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

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

4
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
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.

Executive ViewAI

Why It Matters

CVE-2025-40304 is a memory corruption vulnerability in the Linux kernel's fbdev console text-rendering subsystem that allows low-privileged local users to corrupt kernel heap memory, potentially enabling privilege escalation or system denial of service. This affects any Linux systems with fbdev console support and local multi-user access, including workstations, servers, and shared computing environments. Leadership should prioritize patching to mitigate privilege escalation risk, though real-world exploitation remains unlikely given the vulnerability's hardware and configuration dependencies.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Ubiquitous
Linux kernel; fbdev console present across huge fraction of deployments
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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

References

Advisories & patches
ADVISORY https://access.redhat.com/errata/RHSA-2026:1727 ADVISORY https://access.redhat.com/errata/RHSA-2026:2282 ADVISORY https://access.redhat.com/errata/RHSA-2026:2490 ADVISORY https://access.redhat.com/errata/RHSA-2026:2535 ADVISORY https://access.redhat.com/errata/RHSA-2026:2560 ADVISORY https://access.redhat.com/errata/RHSA-2026:2573 ADVISORY https://access.redhat.com/errata/RHSA-2026:2577 ADVISORY https://access.redhat.com/errata/RHSA-2026:2583 ADVISORY https://access.redhat.com/errata/RHSA-2026:2664 ADVISORY https://access.redhat.com/errata/RHSA-2026:2720 ADVISORY https://access.redhat.com/errata/RHSA-2026:2722 ADVISORY https://access.redhat.com/errata/RHSA-2026:2759 ADVISORY https://access.redhat.com/errata/RHSA-2026:2766 ADVISORY https://access.redhat.com/errata/RHSA-2026:2821 ADVISORY https://access.redhat.com/errata/RHSA-2026:3360 ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2025-40304 ADVISORY https://ubuntu.com/security/notices/USN-8095-1 ADVISORY https://ubuntu.com/security/notices/USN-8096-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0281/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0293/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0315/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0316/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20207/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20220/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20228/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20477/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20479/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20498/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20520/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20564/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20794/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20819/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20845/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20872/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20876/ REF https://git.kernel.org/stable/c/15ba9acafb0517f8359ca30002c189a68ddbb939 REF https://git.kernel.org/stable/c/1943b69e87b0ab35032d47de0a7fca9a3d1d6fc1 REF https://git.kernel.org/stable/c/2d1359e11674ed4274934eac8a71877ae5ae7bbb REF https://git.kernel.org/stable/c/3637d34b35b287ab830e66048841ace404382b67 REF https://git.kernel.org/stable/c/86df8ade88d290725554cefd03101ecd0fbd3752 REF https://git.kernel.org/stable/c/996bfaa7372d6718b6d860bdf78f6618e850c702 REF https://git.kernel.org/stable/c/ebc0730b490c7f27340b1222e01dd106e820320d REF https://git.kernel.org/stable/c/f0982400648a3e00580253e0c48e991f34d2684c

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