CVE-2026-53186
Received Received - Intake
RDMA/srp Sense Data Copy Vulnerability in Linux Kernel

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/srp: bound SRP_RSP sense copy by the received length srp_process_rsp() copies sense data from rsp->data + resp_data_len, where resp_data_len is the full 32-bit value supplied by the SRP target and is never checked against the number of bytes actually received (wc->byte_len). The copy length is bounded to SCSI_SENSE_BUFFERSIZE, so at most 96 bytes are copied, but the source offset is not bounded. A malicious or compromised SRP target on the InfiniBand/RoCE fabric that the initiator has logged into can return an SRP_RSP with SRP_RSP_FLAG_SNSVALID set and a large resp_data_len. The receive buffer is allocated at the target-chosen max_ti_iu_len, so the source of the sense copy lands past the bytes actually received; with resp_data_len near 0xFFFFFFFF it is gigabytes past the buffer and the read faults. Copy the sense data only if it has not been truncated, that is, only if the response header, the response data, and the sense region fit within the bytes actually received; otherwise drop the sense and log. The in-tree iSER and NVMe-RDMA receive paths already bound their parse by wc->byte_len; this brings ib_srp into line with them.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in the Linux kernel's RDMA SRP (SCSI RDMA Protocol) implementation. Specifically, the function srp_process_rsp() copies sense data based on a length value (resp_data_len) provided by the SRP target without verifying that this length matches the actual number of bytes received. Although the copy length is limited to 96 bytes, the source offset for the copy is not properly bounded.

A malicious or compromised SRP target on the InfiniBand or RoCE network fabric can exploit this by sending a response with a very large resp_data_len value, causing the kernel to read memory far beyond the actual received data buffer. This can lead to a read fault or potentially expose sensitive memory.

The fix involves only copying the sense data if it fits entirely within the bytes actually received; otherwise, the sense data is dropped and logged. This change aligns the SRP code with other similar RDMA receive paths that already perform such bounds checking.

Impact Analysis

This vulnerability can impact you by allowing a malicious or compromised SRP target on your InfiniBand or RoCE network to cause the Linux kernel to read memory beyond the intended buffer. This can lead to a kernel read fault, potentially causing system instability or crashes.

Additionally, because the kernel reads memory outside the expected buffer, there is a risk of information disclosure if sensitive data is inadvertently accessed.

Mitigation Strategies

The vulnerability is resolved by bounding the copy of sense data to the actual number of bytes received, dropping and logging the sense data if it is truncated.

Immediate mitigation steps include ensuring your Linux kernel is updated to a version that includes this fix, which properly checks the response length before copying sense data in the ib_srp driver.

Additionally, avoid using or connecting to potentially malicious or compromised SRP targets on the InfiniBand/RoCE fabric until the fix is applied.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-53186. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart