Skip to main content
EPSS 0.1%top 96%

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… (CVE-2025-40323)

0
High
Published: 12/08/2025 (12/08/2025, 03:31:01 UTC)
Source: GCVE Database

Description

A use-after-free vulnerability in the Linux kernel framebuffer console (fbcon) subsystem was identified and resolved. The issue occurs because fb_display[i]->mode pointers are not set to NULL when their associated mode memory is freed during framebuffer unregistration. This leads to dangling pointers and potential use-after-free errors when the system later accesses these stale pointers. The vulnerability was discovered through kernel fuzzing (syzkaller) and involves kernel memory corruption triggered by specific framebuffer device registration and unregistration sequences.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 18:08:13 UTC

Technical Analysis

CVE-2025-40323 describes a use-after-free vulnerability in the Linux kernel's framebuffer console (fbcon) code. When framebuffer devices are unregistered, the memory for fb_info->modelist is freed, but the corresponding fb_display[i]->mode pointers are not cleared, leaving dangling pointers. Subsequent operations that access these stale pointers can cause use-after-free errors, leading to potential kernel crashes or arbitrary code execution. The issue was discovered via syzkaller fuzzing and involves manipulating framebuffer devices (/dev/fb0, /dev/fb1) and console switching. The fix involves adding a check in do_unregister_framebuffer() to set fb_display[i]->mode to NULL when the mode is freed.

Potential Impact

This vulnerability allows local attackers with limited privileges to trigger use-after-free conditions in kernel memory, potentially leading to kernel crashes (denial of service) or escalation of privileges due to memory corruption. The CVSS vector indicates high impact on confidentiality, integrity, and availability. However, exploitation requires local access and specific framebuffer device manipulation.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates a code fix was made to set fb_display[i]->mode to NULL during framebuffer unregistration. Users should monitor official Linux kernel advisories and update to a kernel version that includes this fix once available. Until then, avoid loading/unloading framebuffer kernel modules unnecessarily and restrict local access to framebuffer devices to trusted users.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-vv6w-x7vv-rv35
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40323"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a6b72d49c2644c7f8478c06

Added to database: 07/30/2026, 15:50:44 UTC

Last enriched: 07/30/2026, 18:08:13 UTC

Last updated: 09/10/2026, 19:38:49 UTC

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses