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)
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.
AI Analysis
Technical Summary
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.
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)
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
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.