In the Linux kernel, the following vulnerability has been resolved: smb: client: fix query directory replay double-free A response-bearing attempt… (CVE-2026-64387)
A double-free vulnerability in the Linux kernel SMB client was resolved. The issue occurs when a response-bearing attempt returns a replayable error and frees its response buffer. If SMB2_query_directory_init() fails before the next send, cleanup incorrectly frees the previous response buffer again due to stale bookkeeping. The fix resets response bookkeeping before each attempt to prevent this double-free condition.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel SMB client involves improper handling of response buffers during query directory operations. Specifically, a replayable error response can cause the response buffer to be freed twice if SMB2_query_directory_init() fails before sending the next request. This double-free occurs because the cleanup process retains the previous buffer type and frees it again. The patch addresses this by resetting the response bookkeeping before each attempt, preventing stale frees.
Potential Impact
Double-free vulnerabilities can lead to memory corruption, which may result in system instability or potential escalation of privileges. However, no known exploits are reported in the wild for this vulnerability, and the exact impact depends on exploitation conditions within the Linux kernel SMB client context.
Mitigation Recommendations
A fix has been applied to the Linux kernel to reset response bookkeeping before each attempt, preventing the double-free. Users should update their Linux kernel to a version that includes this fix once available. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory for current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix query directory replay double-free A response-bearing attempt… (CVE-2026-64387)
Description
A double-free vulnerability in the Linux kernel SMB client was resolved. The issue occurs when a response-bearing attempt returns a replayable error and frees its response buffer. If SMB2_query_directory_init() fails before the next send, cleanup incorrectly frees the previous response buffer again due to stale bookkeeping. The fix resets response bookkeeping before each attempt to prevent this double-free condition.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel SMB client involves improper handling of response buffers during query directory operations. Specifically, a replayable error response can cause the response buffer to be freed twice if SMB2_query_directory_init() fails before sending the next request. This double-free occurs because the cleanup process retains the previous buffer type and frees it again. The patch addresses this by resetting the response bookkeeping before each attempt, preventing stale frees.
Potential Impact
Double-free vulnerabilities can lead to memory corruption, which may result in system instability or potential escalation of privileges. However, no known exploits are reported in the wild for this vulnerability, and the exact impact depends on exploitation conditions within the Linux kernel SMB client context.
Mitigation Recommendations
A fix has been applied to the Linux kernel to reset response bookkeeping before each attempt, preventing the double-free. Users should update their Linux kernel to a version that includes this fix once available. Patch status is not explicitly confirmed in the provided data; therefore, check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mg93-xg28-xr4m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64387"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a65420b9c2644c7f8084735
Added to database: 07/25/2026, 23:08:59 UTC
Last enriched: 07/25/2026, 23:28:20 UTC
Last updated: 07/26/2026, 03:43:02 UTC
Views: 4
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.