In the Linux kernel, the following vulnerability has been resolved: mptcp: fix race condition in mptcp_schedule_work() syzbot reported… (CVE-2025-40258)
A critical use-after-free vulnerability in the Linux kernel's mptcp_schedule_work() function has been resolved. The issue arises from a race condition where a reference count on a socket can be released prematurely, leading to potential memory corruption. This flaw was reported by syzbot and involves improper ordering of reference count increment and work scheduling. The vulnerability allows for potential complete compromise of confidentiality, integrity, and availability of the affected system.
AI Analysis
Technical Summary
CVE-2025-40258 addresses a race condition in the Linux kernel's multipath TCP (mptcp) implementation, specifically in the mptcp_schedule_work() function. The vulnerability occurs because the function schedules work and then increments the socket's reference count, but the scheduled work can complete and release the reference count before it is incremented, causing a use-after-free condition. The fix involves incrementing the socket reference count before scheduling the work and decrementing it if scheduling fails. This prevents the premature release of the socket reference and eliminates the use-after-free scenario.
Potential Impact
Successful exploitation of this vulnerability can lead to use-after-free conditions in the kernel, potentially resulting in system crashes, memory corruption, or arbitrary code execution with kernel privileges. The CVSS vector indicates network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability, marking it as a critical threat to affected systems.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel source code by correcting the order of reference count increment and work scheduling in mptcp_schedule_work(). Users and administrators should apply the official Linux kernel updates that include this fix. Since this is not a cloud service, remediation depends on deploying patched kernel versions. Patch status is not explicitly confirmed in the provided data; therefore, check the Linux kernel vendor advisory for the latest remediation guidance and apply updates accordingly.
In the Linux kernel, the following vulnerability has been resolved: mptcp: fix race condition in mptcp_schedule_work() syzbot reported… (CVE-2025-40258)
Description
A critical use-after-free vulnerability in the Linux kernel's mptcp_schedule_work() function has been resolved. The issue arises from a race condition where a reference count on a socket can be released prematurely, leading to potential memory corruption. This flaw was reported by syzbot and involves improper ordering of reference count increment and work scheduling. The vulnerability allows for potential complete compromise of confidentiality, integrity, and availability of the affected system.
CVSS v3.1
Score 9.8critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-40258 addresses a race condition in the Linux kernel's multipath TCP (mptcp) implementation, specifically in the mptcp_schedule_work() function. The vulnerability occurs because the function schedules work and then increments the socket's reference count, but the scheduled work can complete and release the reference count before it is incremented, causing a use-after-free condition. The fix involves incrementing the socket reference count before scheduling the work and decrementing it if scheduling fails. This prevents the premature release of the socket reference and eliminates the use-after-free scenario.
Potential Impact
Successful exploitation of this vulnerability can lead to use-after-free conditions in the kernel, potentially resulting in system crashes, memory corruption, or arbitrary code execution with kernel privileges. The CVSS vector indicates network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability, marking it as a critical threat to affected systems.
Mitigation Recommendations
A fix for this vulnerability has been implemented in the Linux kernel source code by correcting the order of reference count increment and work scheduling in mptcp_schedule_work(). Users and administrators should apply the official Linux kernel updates that include this fix. Since this is not a cloud service, remediation depends on deploying patched kernel versions. Patch status is not explicitly confirmed in the provided data; therefore, check the Linux kernel vendor advisory for the latest remediation guidance and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-86fp-6jqc-qg25
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40258"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 3.1
Threat ID: 6a6b72d59c2644c7f8479c4d
Added to database: 07/30/2026, 15:50:45 UTC
Last enriched: 07/30/2026, 17:23:30 UTC
Last updated: 09/10/2026, 19:38:44 UTC
Views: 19
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.