CVE-2026-139598

RDMA/hns: Pin CQ buffer writable to match device DMA write access

Published Nov 30, 2026 CVSS 3.1 · 7.8 High EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/hns: Pin CQ buffer writable to match device DMA write access

alloc_cq_buf() leaves user_access zero-initialized, but the device
writes CQEs into the CQ buffer. Set IB_ACCESS_LOCAL_WRITE so the buffer
is pinned writable, matching the device's write access.

Analysis

AI-generated

Technical impact

The vulnerability occurs in the RDMA/hns driver of the Linux kernel, where the function alloc_cq_buf() fails to set user_access appropriately. The device expects the completion queue (CQ) buffer to be writable, but it is left uninitialized and marked non-writable. Consequently, the RDMA device writes completion queue entries (CQEs) into memory that may not have the correct write permissions. This mismatch can lead to memory corruption or unintended data modification and, if exploited by a local attacker, could provide a path to elevate privileges within the system.

Affected Systems

All Linux kernel releases that include the RDMA/hns driver are affected, including any distribution kernels that ship with this driver. The vulnerability is identified by the kernel's common platform enumeration string cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*, indicating that any kernel build containing the affected component is at risk.

Risk and Exploitability

EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. The attack likely requires local access to the RDMA device and interaction with the kernel driver, implying that the vulnerability is exploitable by a user with local privileges or by processes able to control the RDMA hardware. The absence of publicly known exploitation reduces the urgency but does not negate the potential for significant impact, as the flaw could allow an attacker to corrupt kernel memory and potentially achieve full system compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Patch the kernel source with commit 149ed0680f70ca2fcddb1917de1c3781c4f8860a (or upgrade to a kernel version that contains this commit).
  • After applying the patch, reboot the system to load the updated kernel.
  • If immediate kernel upgrade or patching is not possible, unload or disable the RDMA/hns driver and disable RDMA capabilities on affected hosts until the patch is applied.
  • Limit user access to RDMA device nodes by adjusting file permissions or enforcing SELinux policies to restrict interaction to privileged users.

Generated by OpenCVE AI on December 1, 2026 at 04:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-284
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/hns: Pin CQ buffer writable to match device DMA write access alloc_cq_buf() leaves user_access zero-initialized, but the device writes CQEs into the CQ buffer. Set IB_ACCESS_LOCAL_WRITE so the buffer is pinned writable, matching the device's write access.
Title RDMA/hns: Pin CQ buffer writable to match device DMA write access
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-279

    Incorrect Execution-Assigned Permissions

  • CWE-284

    Improper Access Control

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:42 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM