CVE-2026-139598: RDMA/hns: Pin CQ buffer writable to match device DMA write access
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hns: Pin CQ buffer writable to match device DMA write access
alloccqbuf() leaves useraccess zero-initialized, but the device writes CQEs into the CQ buffer. Set IBACCESSLOCALWRITE so the buffer is pinned writable, matching the device's write access.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Configuration
Set IB_ACCESS_LOCAL_WRITE for the CQ buffer so it is pinned writable, matching the device's DMA write access.
Linux kernel RDMA/hns IB_ACCESS_LOCAL_WRITE = set
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel RDMA hns driver and creating completion queues that use the affected CQ buffer allocation path are exposed. The issue is specific to CQ buffers used for device-written completion queue entries.
What condition triggers the problem?
The problem occurs when a CQ buffer is pinned without writable access even though the RDMA device writes CQEs into that buffer. The mismatch is caused by alloc_cq_buf() leaving user_access zero-initialized.
What does the fix change?
The fix sets IB_ACCESS_LOCAL_WRITE when pinning the CQ buffer. This makes the pinning permissions match the device's required DMA write access.