CVE-2026-64034 Details
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().
A time-of-check to time-of-use (TOCTOU) vulnerability has been identified in the Linux kernel's Microsoft Azure Network Adapter (MANA) driver. This issue arises in the 'mana_hwc_rx_event_handler()' function, where the 'hwc_msg_id' is read from a Direct Memory Access (DMA)-coherent buffer. Although the value is initially bounds-checked, it is subsequently re-read from the same buffer in the 'mana_hwc_handle_resp()' function for bit testing and pointer arithmetic. This double-fetch creates a window of opportunity for hardware to alter the 'hwc_msg_id' between the validation check and its actual use, potentially leading to improper bounds validation. The vulnerability is particularly concerning in Confidential Virtual Machines (CVMs) using SEV-SNP or TDX, where DMA memory is shared, unencrypted, and directly visible to the host, allowing for such modifications.
The vulnerability has been addressed by modifying the driver to read the 'hwc_msg_id' only once, using the 'READ_ONCE()' function to ensure a consistent and validated value is passed to the response handling function. Users should update to the latest version of the Linux kernel where this fix has been applied.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | kernel.org |
| Jul 19, 2026 | New CVE Received | kernel.org |