Skip to main content

Linux Kernel CVE-2025-40323

| EUVDEUVD-2025-201622 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. Recon
    Gain local access to fb device
  2. Delivery
    Register/unregister second framebuffer
  3. Exploit
    Free modelist leaving dangling fb_display[] pointer
  4. Install
    Issue mode-deletion ioctl on fb0
  5. C2
    Trigger use-after-free in fb_mode_is_equal
  6. Execute
    Corrupt kernel slab memory
  7. Impact
    Escalate privileges or crash kernel

Vulnerability Assessment

Exploitation Conditions

Requires local access to the target and the ability to interact with framebuffer devices via ioctls (do_fb_ioctl → fb_set_var). The published trigger requires: (1) at least one existing framebuffer such as /dev/fb0; (2) registration of a second framebuffer /dev/fb1 - in the reported case by loading a kernel module, which itself needs root/CAP_SYS_MODULE; (3) mapping fb1's mode into the global fb_display[] via the FBIOPUT_CON2FBMAP ioctl; (4) switching the active console from framebuffer to VGA so the module can be unloaded; (5) unregistering that framebuffer to free its modelist, leaving the wild pointer; then (6) deleting a mode on fb0 to dereference freed memory. Limiting factors: exploitation is local only (AV:L), needs framebuffer/console access, needs a functioning framebuffer console (absent on many headless/KMS-only or console-blanked servers), and the demonstrated path depends on privileged module loading - significantly narrowing realistic exposure below what the 7.8 base score alone suggests.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) marks this as a local, low-complexity, low-privilege flaw with high confidentiality, integrity and availability impact - consistent with a kernel-memory use-after-free reachable through ioctls. However, EPSS is only 0.04% (11th percentile) and the CVE is NOT in CISA KEV, indicating no observed real-world exploitation and low predicted probability. These signals are consistent, not conflicting: high host-level impact but a narrow, local-only attack surface. Practical exploitation is further limited by the reproduction path, which requires loading a kernel module (a root-level action) to register a second framebuffer, plus console-switching to VGA - conditions unlikely on hardened or headless production servers that lack a usable framebuffer console. No SSVC decision data was provided in the input. Net assessment: a legitimate kernel memory-safety bug worth patching in the normal cycle, but not an emergency for most fleets; prioritize on multi-user hosts where untrusted users have framebuffer/console access.

Exploit ScenarioDerived

On a multi-user Linux host where a low-privileged user can access /dev/fb devices, an attacker (or a malicious/loadable driver that registers and then unregisters a framebuffer) leaves a dangling mode pointer in fb_display[], then issues framebuffer ioctls (FBIOPUT_CON2FBMAP followed by a mode-deletion via fb_set_var) to force fb_mode_is_equal() to read freed kernel slab memory. Careful heap grooming of the freed object could turn the use-after-free from a crash (DoS) into kernel memory corruption and privilege escalation. No public exploit is identified, but syzkaller reproduction steps are documented in the upstream commit.

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

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

Alert me

AnalysisAIv2 – Jul 30, 2026

Local privilege escalation and kernel memory corruption in the Linux kernel's framebuffer console (fbcon) subsystem arises from a use-after-free: when a framebuffer device is unregistered, the freed mode list leaves dangling pointers in the global fb_display[] array, which fb_mode_is_equal() later dereferences. A local low-privileged attacker with access to framebuffer devices (/dev/fbN) can trigger the freed-memory read/write via FBIOPUT_CON2FBMAP and mode-deletion ioctls, enabling denial of service or potential arbitrary kernel code execution. The flaw was found via syzkaller (KASAN slab-use-after-free), it carries EPSS 0.04% (11th percentile), it is not in CISA KEV, and no public exploit is identified - though detailed reproduction steps are published in the commit message.

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

RemediationAI

Vendor-released patch: upgrade to a fixed Linux kernel - 6.1.159, 6.6.117, 6.12.58, 6.17.8, or 6.18 or later, whichever matches your branch - which adds the NULL-out of fb_display[] mode pointers in do_unregister_framebuffer(). Distribution users should apply their vendor kernel update; Ubuntu users specifically should install the kernel from USN-8095-1 (https://ubuntu.com/security/notices/USN-8095-1) and reboot. Where immediate patching is not possible, reduce exposure by restricting access to framebuffer devices (tighten permissions/ownership on /dev/fb* so untrusted local users cannot issue framebuffer ioctls) and by preventing untrusted users from loading kernel modules (e.g. set modules_disabled or use module signing), since the published reproduction path depends on registering a second framebuffer via a loadable module; the trade-off is that locking down /dev/fb* or module loading can break legitimate console-graphics, KMS fallback, or driver-loading workflows. On headless servers, disabling the framebuffer console entirely removes the affected code path.

Affected VersionsENISA

Linux patch: 6.6.117
Linux patch: 0
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4ac18f0e6a6d599ca751c4cd98e522afc8e3d4eb
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c079d42f70109512eee49123a843be91d8fa133f
Linux patch: 6.1.159
Linux patch: 6.12.58
Linux patch: 6.17.8
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a1f3058930745d2b938b6b4f5bd9630dc74b26b7
Linux patch: 6.18
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <de89d19f4f30d9a8de87b9d08c1bd35cb70576d8
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <468f78276a37f4c6499385a4ce28f4f57be6655d
Linux 2.6.12

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 bug lives in the fbcon (framebuffer console) layer of the Linux kernel graphics stack, which maps registered framebuffer devices to virtual consoles. Each console's display state is held in the global fb_display[] array, whose ->mode field can point into a specific fb_info->modelist. During do_unregister_framebuffer(), the kernel freed fb_info->modelist without clearing any fb_display[i]->mode entries that still referenced those now-freed fb_videomode structures. A subsequent fbcon_mode_deleted() → fb_mode_is_equal() call then reads the freed structure. The root cause is a classic use-after-free (CWE-416) driven by a dangling pointer that outlives its object; CWE is reported as N/A in the feed but the KASAN trace ('slab-use-after-free in fb_mode_is_equal') confirms the class. The fix adds a check in do_unregister_framebuffer() to set the matching fb_display[] mode pointer to NULL when the mode is released.

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 ioctl-triggered kernel use-after-free by a low-privileged user with framebuffer access; kernel memory corruption yields high 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.4 MEDIUM
AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.8 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:

fbcon: Set fb_display[i]->mode to NULL when the mode is released

Recently, we discovered the following issue through syzkaller:

BUG: KASAN: slab-use-after-free in fb_mode_is_equal+0x285/0x2f0 Read of size 4 at addr ff11000001b3c69c by task syz.xxx ... Call Trace: <TASK> dump_stack_lvl+0xab/0xe0 print_address_description.constprop.0+0x2c/0x390 print_report+0xb9/0x280 kasan_report+0xb8/0xf0 fb_mode_is_equal+0x285/0x2f0 fbcon_mode_deleted+0x129/0x180 fb_set_var+0xe7f/0x11d0 do_fb_ioctl+0x6a0/0x750 fb_ioctl+0xe0/0x140 __x64_sys_ioctl+0x193/0x210 do_syscall_64+0x5f/0x9c0 entry_SYSCALL_64_after_hwframe+0x76/0x7e

Based on experimentation and analysis, during framebuffer unregistration, only the memory of fb_info->modelist is freed, without setting the corresponding fb_display[i]->mode to NULL for the freed modes. This leads to UAF issues during subsequent accesses. Here's an example of reproduction steps:

  1. With /dev/fb0 already registered in the system, load a kernel module

to register a new device /dev/fb1;

  1. Set fb1's mode to the global fb_display[] array (via FBIOPUT_CON2FBMAP);
  2. Switch console from fb to VGA (to allow normal rmmod of the ko);
  3. Unload the kernel module, at this point fb1's modelist is freed, leaving

a wild pointer in fb_display[];

  1. Trigger the bug via system calls through fb0 attempting to delete a mode

from fb0.

Add a check in do_unregister_framebuffer(): if the mode to be freed exists in fb_display[], set the corresponding mode pointer to NULL.

Executive ViewAI

Why It Matters

A privilege escalation vulnerability in the Linux kernel's framebuffer console (fbcon) subsystem enables local users to escalate to kernel-level code execution on affected systems. This affects Linux systems with framebuffer device support, particularly embedded and specialized systems with graphics dependencies. Vendors have released patches; organizations should prioritize assessment and patching of systems where non-administrative users access framebuffer devices.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
Ubiquitous
fbcon is a core Linux kernel subsystem shipped in virtually all kernels
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.0%
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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://nvd.nist.gov/vuln/detail/CVE-2025-40323 ADVISORY https://ubuntu.com/security/notices/USN-8095-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:0473/ 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/39c2c1a2773aaf73e56906e5ef670114eb2d354f REF https://git.kernel.org/stable/c/468f78276a37f4c6499385a4ce28f4f57be6655d REF https://git.kernel.org/stable/c/4ac18f0e6a6d599ca751c4cd98e522afc8e3d4eb REF https://git.kernel.org/stable/c/a1f3058930745d2b938b6b4f5bd9630dc74b26b7 REF https://git.kernel.org/stable/c/c079d42f70109512eee49123a843be91d8fa133f REF https://git.kernel.org/stable/c/de89d19f4f30d9a8de87b9d08c1bd35cb70576d8

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