Skip to main content

Linux Kernel CVE-2025-39967

HIGH
Integer Overflow or Wraparound (CWE-190)
2025-10-15 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain local low-privileged shell
  2. Delivery
    Open console/framebuffer device
  3. Exploit
    Issue crafted KDFONTOP font ioctl
  4. Execution
    Overflow font size calculation
  5. Persist
    Undersized kernel allocation overflowed
  6. Impact
    Corrupt kernel heap for code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local access to the target system and the ability to invoke the framebuffer console font-setting ioctl (KDFONTOP/PIO_FONT against a console or /dev/fb* device), which the CVSS PR:L reflects - this is not remotely reachable. The kernel must be built with the framebuffer console (CONFIG_FRAMEBUFFER_CONSOLE / fbcon) active, and the attacker must supply crafted font parameters (height, pitch, character count) large enough to overflow the size arithmetic. Limiting factors: no network vector, no remote reachability, and dependence on the attacker already holding sufficient privilege to open and issue font ioctls to the console device; systems without fbcon enabled or with tightly restricted console/framebuffer device permissions are not exploitable.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (7.8 High) is internally consistent with the description: exploitation is local (AV:L) because it requires invoking a console font ioctl on the target machine, requires some privilege (PR:L) since access to the framebuffer/console device is needed, and carries full CIA impact typical of kernel heap corruption. Countervailing signals lower the practical urgency: EPSS is only 0.16% (6th percentile), the vulnerability is not on CISA KEV, and no public exploit has been identified - consistent with a locally-scoped, not remotely automatable, memory-safety bug. This is a legitimately serious kernel flaw where it applies, but it is a patch-in-normal-cycle item rather than an emergency: an attacker must already have local access and rights to the console device, which limits mass exploitation. No conflicting data was observed; the primary uncertainty is the exact privilege/device-access threshold, which PR:L captures but the description does not spell out.

Exploit ScenarioDerived

A local user with access to the console/framebuffer device on a shared Linux host crafts a KD_FONT_OP_SET ioctl carrying font dimensions and a glyph count chosen so that the height × pitch × charcount calculation overflows, causing the kernel to allocate an undersized buffer. The subsequent glyph copy overflows the kernel heap, which a skilled attacker grooms to corrupt adjacent structures and escalate to kernel-level code execution. No public proof-of-concept has been identified at time of analysis, and the local, low-privilege attack vector (AV:L/AC:L/PR:L) means the attacker must already have a foothold on the machine.

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

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

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege escalation and memory corruption in the Linux kernel's fbcon (framebuffer console) subsystem stems from integer overflows in fbcon_do_set_font() when computing font buffer sizes from user-controlled parameters. A local, low-privileged attacker who can invoke the font-setting ioctl can trigger undersized allocations followed by heap buffer overflows during font data copying, potentially achieving code execution in kernel context. EPSS is low (0.16%, 6th percentile) and there is no public exploit identified at time of analysis; the fix has been merged and backported across stable kernel trees.

RemediationAI

Update to a Linux kernel build that includes the fbcon overflow fix: apply your distribution's kernel security update, or rebuild from a stable tree containing the merged commits (Upstream fix available; the patch adds check_mul_overflow()/check_add_overflow() guards in fbcon_do_set_font). The canonical patches are the kernel.org stable commits (https://git.kernel.org/stable/c/1a194e6c8e1ee745e914b0b7f50fa86c89ed13fe through https://git.kernel.org/stable/c/c0c01f9aa08c8e10e10e8c9ebb5be01a4eff6eb7); match the commit to your kernel branch. If immediate patching is not possible, reduce exposure by restricting access to console/framebuffer devices (e.g. tighten permissions on /dev/fb* and virtual console access so only trusted users can load fonts), and where fbcon is unnecessary consider disabling the framebuffer console or using a different console driver - with the trade-off that this changes console rendering and may not be viable on systems that depend on fbcon for their display. Prioritize patching on multi-user and shared hosts where untrusted local users exist.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The affected code is the framebuffer console (fbcon) driver, which renders text-mode consoles on top of the kernel framebuffer layer and lets userspace load custom console fonts via ioctls such as PIO_FONT/KDFONTOP. The root cause is CWE-190 (Integer Overflow or Wraparound): the CALC_FONTSZ(h, pitch, charcount) macro multiplies font height, pitch, and glyph count, and the subsequent FONT_EXTRA_WORDS * sizeof(int) + size addition is performed on user-influenced values. When these arithmetic operations wrap around a machine-word boundary, the resulting size is smaller than the true data footprint, so the kmalloc-backed allocation is too small and the follow-on copy of glyph data writes past the buffer, corrupting adjacent kernel heap memory. The fix replaces the raw arithmetic with the kernel's check_mul_overflow() and check_add_overflow() helpers to validate every size computation before allocation.

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

NVD 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 console/framebuffer ioctl access required (AV:L, PR:L), no user interaction, and kernel heap corruption yields full confidentiality, integrity, and availability impact.

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 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
Red Hat 6.0 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

fbcon: fix integer overflow in fbcon_do_set_font

Fix integer overflow vulnerabilities in fbcon_do_set_font() where font size calculations could overflow when handling user-controlled font parameters.

The vulnerabilities occur when:

  1. CALC_FONTSZ(h, pitch, charcount) performs h * pith * charcount

multiplication with user-controlled values that can overflow.

  1. FONT_EXTRA_WORDS * sizeof(int) + size addition can also overflow
  2. This results in smaller allocations than expected, leading to buffer

overflows during font data copying.

Add explicit overflow checking using check_mul_overflow() and check_add_overflow() kernel helpers to safety validate all size calculations before allocation.

Executive ViewAI

Why It Matters

Linux kernel fbcon (framebuffer console) subsystem contains a local privilege escalation vulnerability (CVE-2025-39967, CVSS 7.8) from integer overflow bugs in font buffer handling. Attackers with local system access can trigger kernel memory corruption to execute code with kernel privileges. Organizations should prioritize patching fbcon-enabled Linux systems to prevent local privilege escalation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
Linux kernel; fbcon enabled in most desktop and many server builds
Data Quality
4 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.2%
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.9:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.9:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.9:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.9:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.9:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*
+ 6 more

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:15.6.17.8.134 Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.65 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.88 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.105 Affected

References

Advisories & patches
PATCH https://git.kernel.org/stable/c/1a194e6c8e1ee745e914b0b7f50fa86c89ed13fe PATCH https://git.kernel.org/stable/c/4a4bac869560f943edbe3c2b032062f6673b13d3 PATCH https://git.kernel.org/stable/c/994bdc2d23c79087fbf7dcd9544454e8ebcef877 PATCH https://git.kernel.org/stable/c/9c8ec14075c5317edd6b242f1be8167aa1e4e333 PATCH https://git.kernel.org/stable/c/a6eb9f423b3db000aaedf83367b8539f6b72dcfc PATCH https://git.kernel.org/stable/c/adac90bb1aaf45ca66f9db8ac100be16750ace78 PATCH https://git.kernel.org/stable/c/b8a6e85328aeb9881531dbe89bcd2637a06c3c95 PATCH https://git.kernel.org/stable/c/c0c01f9aa08c8e10e10e8c9ebb5be01a4eff6eb7 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21040/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21052/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21056/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21064/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21080/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21147/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21180/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4057/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4111/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4128/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4132/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4139/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4140/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4141/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4149/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4301/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4320/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4515/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0029/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0033/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20317/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20333/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20561/

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