A use-after-free vulnerability exists in the Linux kernel's caif_serial driver due to a race condition between the ldisc_close() function and packet… (CVE-2026-45866)
A use-after-free vulnerability exists in the Linux kernel's caif_serial driver due to a race condition between the ldisc_close() function and packet transmission. The bug occurs because the tty reference is released prematurely in ldisc_close() while the network device is still active, allowing handle_tx() to access a freed tty pointer. The issue is fixed by deferring the tty reference release to ser_release() after the network device is unregistered, preventing the use-after-free condition.
AI Analysis
Technical Summary
The Linux kernel's caif_serial driver contained a use-after-free vulnerability (CVE-2026-45866) caused by a race condition between ldisc_close() and packet transmission. Specifically, tty_kref_put() was called in ldisc_close() while the network device was still active, potentially freeing the tty structure prematurely. Concurrently, handle_tx() could access the freed tty pointer, leading to a use-after-free bug. The fix involves moving the tty reference release from ldisc_close() to ser_release(), which occurs after unregister_netdevice(), ensuring the tty reference remains valid while the network device exists. This resolves the race condition and prevents the use-after-free. The vulnerability was identified and confirmed by KASAN reports and detailed kernel debugging.
Potential Impact
This vulnerability allows a use-after-free condition in the Linux kernel's caif_serial driver, which can lead to kernel memory corruption. The CVSS vector indicates high impact on confidentiality, integrity, and availability (C:H/I:H/A:H), meaning exploitation could result in full system compromise or denial of service. However, no known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves deferring the tty reference release to ser_release() after unregister_netdevice(). Until an official patch is applied, avoid using the affected caif_serial driver or apply any vendor-provided updates that address this issue. Monitor vendor advisories for the release of an official fix.
A use-after-free vulnerability exists in the Linux kernel's caif_serial driver due to a race condition between the ldisc_close() function and packet… (CVE-2026-45866)
Description
A use-after-free vulnerability exists in the Linux kernel's caif_serial driver due to a race condition between the ldisc_close() function and packet transmission. The bug occurs because the tty reference is released prematurely in ldisc_close() while the network device is still active, allowing handle_tx() to access a freed tty pointer. The issue is fixed by deferring the tty reference release to ser_release() after the network device is unregistered, preventing the use-after-free condition.
CVSS v3.1
Score 7.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's caif_serial driver contained a use-after-free vulnerability (CVE-2026-45866) caused by a race condition between ldisc_close() and packet transmission. Specifically, tty_kref_put() was called in ldisc_close() while the network device was still active, potentially freeing the tty structure prematurely. Concurrently, handle_tx() could access the freed tty pointer, leading to a use-after-free bug. The fix involves moving the tty reference release from ldisc_close() to ser_release(), which occurs after unregister_netdevice(), ensuring the tty reference remains valid while the network device exists. This resolves the race condition and prevents the use-after-free. The vulnerability was identified and confirmed by KASAN reports and detailed kernel debugging.
Potential Impact
This vulnerability allows a use-after-free condition in the Linux kernel's caif_serial driver, which can lead to kernel memory corruption. The CVSS vector indicates high impact on confidentiality, integrity, and availability (C:H/I:H/A:H), meaning exploitation could result in full system compromise or denial of service. However, no known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves deferring the tty reference release to ser_release() after unregister_netdevice(). Until an official patch is applied, avoid using the affected caif_serial driver or apply any vendor-provided updates that address this issue. Monitor vendor advisories for the release of an official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9834-966g-q77h
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-45866"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a3ef7f227e9c79719036e47
Added to database: 06/26/2026, 22:06:42 UTC
Last enriched: 06/26/2026, 22:52:06 UTC
Last updated: 07/31/2026, 19:24:47 UTC
Views: 38
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.