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
Share

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
qualitative

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

Lifecycle Timeline

2
Analysis Generated
Jul 30, 2026 - 08:12 vuln.today
CVE Published
Oct 15, 2025 - 08:15 nvd
HIGH 7.8

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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

Share

CVE-2025-39967 vulnerability details – vuln.today

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