CVE-2026-64034: net: mana: Fix TOCTOU double-fetch of hwc_msg_id from DMA buffer
In the Linux kernel, the following vulnerability has been resolved:
net: mana: Fix TOCTOU double-fetch of hwcmsgid from DMA buffer
In manahwcrxeventhandler(), resp->response.hwcmsgid is read from DMA-coherent memory and bounds-checked, then manahwchandleresp() re-reads the same field from the same DMA buffer for testbit() 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 hwcmsgid exactly once using READONCE() into a stack-local variable in manahwcrxeventhandler(), and passing the validated value as a parameter to manahwchandleresp().
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64034?
CVE-2026-64034 is rated with a risk level of 34.
How do I fix CVE-2026-64034?
To address CVE-2026-64034, upgrade to the latest version of the Linux kernel that includes the fix.
What does CVE-2026-64034 affect?
CVE-2026-64034 affects the Linux kernel, specifically the mana network driver.
What type of vulnerability is CVE-2026-64034?
CVE-2026-64034 is a Time-of-Check to Time-of-Use (TOCTOU) vulnerability.
How was CVE-2026-64034 resolved?
CVE-2026-64034 was resolved by fixing the double-fetch issue of hwc_msg_id from the DMA buffer in the kernel.