scsi: mpt3sas: Limit NVMe request size to 2 MiB
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.307.0.77.1In the Linux kernel, the following vulnerability has been resolved:
scsi: mpt3sas: Limit NVMe request size to 2 MiB
The HBA firmware reports NVMe MDTS values based on the underlying drive capability. However, because the driver allocates a fixed 4K buffer for the PRP list, accommodating at most 512 entries, the driver supports a maximum I/O transfer size of 2 MiB.
Limit max_hw_sectors to the smaller of the reported MDTS and the 2 MiB driver limit to prevent issuing oversized I/O that may lead to a kernel oops.
From the CVE record · Linux
The Linux kernel’s mpt3sas driver can issue NVMe I/O larger than its 2 MiB limit when a drive reports a higher maximum transfer size. Oversized I/O may cause a kernel oops. The input does not specify an attacker path, authentication requirement, or user interaction.
Operators running Linux kernels with the mpt3sas driver should check their kernel version; affected versions are not specified.