In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix TOCTOU double-fetch of hwc_msg_id from DMA buffer In… (CVE-2026-64034)
In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix TOCTOU double-fetch of hwc_msg_id from DMA buffer In mana_hwc_rx_event_handler(), resp->response.hwc_msg_id is read from DMA-coherent memory and bounds-checked, then mana_hwc_handle_resp() re-reads the same field from the same DMA buffer for test_bit() and pointer arithmetic. DMA-coherent memory is mapped uncacheable on x86 and is shared, unencrypted, in Confidential VMs (SEV-SNP/TDX), so each load goes directly to host-visible memory. A H/W can modify the value between the check and the use, bypassing the bounds validation. Fix this by reading hwc_msg_id exactly once using READ_ONCE() into a stack-local variable in mana_hwc_rx_event_handler(), and passing the validated value as a parameter to mana_hwc_handle_resp().
AI Analysis
Technical Summary
The Linux kernel's mana network driver contained a TOCTOU vulnerability (CVE-2026-64034) where the hwc_msg_id field was read twice from DMA-coherent memory in mana_hwc_rx_event_handler() and mana_hwc_handle_resp(). Because DMA-coherent memory is uncacheable and shared, hardware could modify hwc_msg_id between the initial bounds check and later use, bypassing validation. The vulnerability was resolved by reading hwc_msg_id exactly once using READ_ONCE() into a stack-local variable and passing the validated value to subsequent handlers, preventing the double-fetch race condition.
Potential Impact
This vulnerability could allow an attacker with hardware-level access to modify the hwc_msg_id value between validation and use, potentially bypassing bounds checks. This could lead to undefined behavior or security issues in the mana network driver. However, exploitation requires hardware capability to modify DMA memory during execution, limiting practical impact. No known exploits are reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by changing the code to read hwc_msg_id once atomically. Users should update to a Linux kernel version that includes this fix. Since no patch links or specific versions are provided, check the official Linux kernel advisories or repositories for the fixed version. No additional mitigations are indicated.
In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix TOCTOU double-fetch of hwc_msg_id from DMA buffer In… (CVE-2026-64034)
Description
In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix TOCTOU double-fetch of hwc_msg_id from DMA buffer In mana_hwc_rx_event_handler(), resp->response.hwc_msg_id is read from DMA-coherent memory and bounds-checked, then mana_hwc_handle_resp() re-reads the same field from the same DMA buffer for test_bit() and pointer arithmetic. DMA-coherent memory is mapped uncacheable on x86 and is shared, unencrypted, in Confidential VMs (SEV-SNP/TDX), so each load goes directly to host-visible memory. A H/W can modify the value between the check and the use, bypassing the bounds validation. Fix this by reading hwc_msg_id exactly once using READ_ONCE() into a stack-local variable in mana_hwc_rx_event_handler(), and passing the validated value as a parameter to mana_hwc_handle_resp().
CVSS v3.1
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's mana network driver contained a TOCTOU vulnerability (CVE-2026-64034) where the hwc_msg_id field was read twice from DMA-coherent memory in mana_hwc_rx_event_handler() and mana_hwc_handle_resp(). Because DMA-coherent memory is uncacheable and shared, hardware could modify hwc_msg_id between the initial bounds check and later use, bypassing validation. The vulnerability was resolved by reading hwc_msg_id exactly once using READ_ONCE() into a stack-local variable and passing the validated value to subsequent handlers, preventing the double-fetch race condition.
Potential Impact
This vulnerability could allow an attacker with hardware-level access to modify the hwc_msg_id value between validation and use, potentially bypassing bounds checks. This could lead to undefined behavior or security issues in the mana network driver. However, exploitation requires hardware capability to modify DMA memory during execution, limiting practical impact. No known exploits are reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by changing the code to read hwc_msg_id once atomically. Users should update to a Linux kernel version that includes this fix. Since no patch links or specific versions are provided, check the official Linux kernel advisories or repositories for the fixed version. No additional mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-r5hj-4chx-57cx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64034"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27a92a4a8d598912c888
Added to database: 07/19/2026, 19:38:17 UTC
Last enriched: 07/19/2026, 19:54:19 UTC
Last updated: 07/20/2026, 19:41:22 UTC
Views: 12
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.