CVE-2026-139287

RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()

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

RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()

In flowinfo_read(), 'left' tracks the remaining space in the 512-byte
stack buffer 'buf', but it is initialized to 'count'.

Initialize 'left' to sizeof(buf) instead of 'count'.

Analysis

AI-generated

Technical impact

The root cause is that in the RDMA/usnic driver, the variable managing the remaining space in a 512‑byte stack buffer was initialized to the requested count instead of the buffer’s true size. This oversight can cause the driver to write past the end of the stack buffer, corrupting kernel memory. If an attacker triggers this code path with a malicious request, they could overwrite critical kernel data structures, leading to privilege escalation or denial‑of‑service. The flaw is a classic buffer overflow in kernel space and is categorized under improper handling of buffer limits.

Affected Systems

The vulnerability affects the Linux kernel wherever the RDMA/usnic driver is compiled in. Any kernel release that has not been updated to include the patch that initializes the buffer counter correctly (as identified by the commit references in the advisory) is potentially vulnerable. The specific kernel version numbers are not provided, so all current kernels should be reviewed for the presence of this fix once available.

Risk and Exploitability

The CVSS score is not supplied, and the EPSS score is unavailable. The vulnerability is a local kernel buffer overflow, so an attacker would need local privileges to exploit it. There is no indication of a remote or unprivileged exploit. The flaw is not listed in CISA’s KEV catalog, implying no confirmed or widely known exploitation. However, the nature of the bug suggests a high potential impact if exploited, and organizations should treat it as a serious local weakness until a patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the usnic driver fix (the provided commits introduce the correct buffer size initialization).
  • If an immediate kernel upgrade is not possible, disable the RDMA/usnic driver by blacklisting the module or setting the appropriate sysfs disable override to prevent the vulnerable code from executing.
  • After mitigation, monitor kernel logs (e.g., dmesg) for signs of memory corruption or repeated RDMA-related failures and ensure the system remains stable.

Generated by OpenCVE AI on November 30, 2026 at 21:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-120
CWE-20
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read() In flowinfo_read(), 'left' tracks the remaining space in the 512-byte stack buffer 'buf', but it is initialized to 'count'. Initialize 'left' to sizeof(buf) instead of 'count'.
Title RDMA/usnic: Bound buffer size to sizeof(buf) in flowinfo_read()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM