CVE-2026-139054
published high CVSS 3.1 · 7.1PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0d0c551011df4519c232f7114cdace9000e86c51 to < e280a383490e7ef1539c32760bd3fcb507d1f540 · 0d0c551011df4519c232f7114cdace9000e86c51 to < 48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc · 0d0c551011df4519c232f7114cdace9000e86c51 to < f44903fd54634e5b81bda4b90b6b583cd75d7157 · 0d0c551011df4519c232f7114cdace9000e86c51 to < f0a5c6bd797c2b9900034983a1118d27eb2f2f16 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes R-Car Gen4 PCIe controller has a hardware limitation of 256 Bytes Max_Payload_Size (MPS). PCIe specification indicates that the MPS must not exceed minimum MPS of any element along the packet path. The PCI core already enforces this, but add a check to warn if MPS is ever set larger than 256. R-Car Gen4 Reference Manual, chapter 104.4.8 Usage notes for MRRS (Max Read Request Size) states: Please set "Max Read Request Size" to 128 bytes or 256 bytes. If "Max Read Request Size" is set to anything other than the above, the transferred data will not match the expected value. This limitation also seems to apply to devices doing DMA reads, i.e., issuing MRd TLPs. This limitation can be triggered by using non-HMB NVMe SSD with Max_Read_Request_Size 512 Bytes, for example Crucial P5 Plus. Any write to the SSD (MRd TLP issued by the SSD controller) longer than 256 Bytes wraps around at the 256 Byte boundary, and the same data are written to the SSD starting at offset 0 and at 256 Bytes. Limit Max_Read_Request_Size to at most 256 Bytes for each device connected to this PCIe controller to avoid this behavior. A non-HMB (Host Memory Buffer) NVMe SSD can be identified using the following command. Affected SSD reports 'hmpre' field as 0: $ nvme id-ctrl /dev/nvme0 | grep hmpre hmpre : 0 The symptom is a read from the SSD which wraps around at 256 Byte boundary. The test for this symptom can be implemented by writing 512 Byte of random data into the SSD and reading the data back. If the read back data repeat after 256 Bytes, the device is affected. $ dd if=/dev/urandom of=/tmp/data.bin bs=256 count=2 ; \ dd if=/tmp/data.bin of=/dev/nvme0n1 bs=256 count=2 ; \ dd if=/dev/nvme0n1 bs=256 count=2 of=/tmp/readback.bin Expected data: $ hexdump -vC /tmp/data.bin 00000000 97 81 b7 3b 0e 38 2b 4d a7 d3 e0 47 ff c2 4b ca 00000010 c1 85 98 f0 4a ac 03 a0 3b ab f3 19 44 dd 06 8b ... 00000100 7a ce 3c b2 e1 d5 d9 11 88 63 10 59 76 3c dc 32 <-- random 00000110 72 32 2a 7d a3 e1 aa 13 7c da 58 a1 7b 21 11 50 <-- data Faulty readback, collected without this change in place: $ hexdump -vC /tmp/readback.bin 00000000 97 81 b7 3b 0e 38 2b 4d a7 d3 e0 47 ff c2 4b ca <---. 00000010 c1 85 98 f0 4a ac 03 a0 3b ab f3 19 44 dd 06 8b <-. | ... | | 00000100 97 81 b7 3b 0e 38 2b 4d a7 d3 e0 47 ff c2 4b ca <-:-+- repeated 00000110 c1 85 98 f0 4a ac 03 a0 3b ab f3 19 44 dd 06 8b <-+--- data ^^^ | '--- Repeat starts at offset 0x100 = 256 Bytes
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Scenarios
- en: AV:L - Pre-fix rcar_gen4_pcie_host_init() installs no bridge->enable_device, so nvme_pci_enable()->pci_enable_device_mem()->pci_host_bridge_enable_device() leaves MRRS at 512 and each endpoint MRd >256 B gets its first 256 B twice. The damaged data is NVMe write DMA fed by local block I/O (write(2)/writeback->nvme_queue_rq); no remote protocol supplies or reads back the damaged bytes. AC:L - The attacker sets up nothing: rcar_gen4_pcie_host_init() toggles pe_rst so endpoints leave PERST# with the spec-default 512 B MRRS, pcie_write_mrrs() returns early unless pci=pcie_bus_perf, and nvme never lowers it. On an R-Car Gen4 board with an SSD that issues full-MRRS reads (e.g. Crucial P5 Plus), every write of 512 B or more corrupts, with no race. PR:L - Any unprivileged local user who can write a file on the NVMe-backed filesystem generates the corrupting MRd TLPs through ordinary buffered or O_DIRECT writes, and touching their own inode or dirent dirties shared inode-table/directory blocks that are written back the same way; no capability check is on this path. UI:N - The attacker's own write(2)/fsync drives the SSD's DMA reads and the kernel's writeback of the shared metadata blocks follows automatically; no victim, mount or admin action is needed. S:U - The wrap returns bytes from the same request's own buffer, so nothing outside the transfer is read; a VFIO user raising MRRS via vfio_pci_config.c's pcie_set_readrq() only corrupts its own assigned device's reads. Impact stays within the host's storage authority. C:N - Bytes 256-511 of each 512 B read request are a copy of bytes 0-255 of the same request; no foreign kernel or user memory reaches the device or a later reader, so nothing is disclosed. I:H - Every 4 KiB block written to the SSD is fetched as 512 B MRds that each store their first 256 B twice, so half of all file data, superblock, inode-table, bitmap and jbd2 content lands on disk wrong, including other users' inodes in shared blocks: a total loss of integrity of the stored data, not a bounded modification. A:H - The damage is persistent: ext4 rewrites its superblock on rw mount and s_checksum (offset 0x3FC) falls in an overwritten half, so superblock, group-descriptor and journal checksums fail on the next mount or cache refill and the NVMe-backed filesystem is refused or forced read-only.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0d0c551011df4519c232f7114cdace9000e86c51 to < e280a383490e7ef1539c32760bd3fcb507d1f540 (affected · git)0d0c551011df4519c232f7114cdace9000e86c51 to < 48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc (affected · git)0d0c551011df4519c232f7114cdace9000e86c51 to < f44903fd54634e5b81bda4b90b6b583cd75d7157 (affected · git)0d0c551011df4519c232f7114cdace9000e86c51 to < f0a5c6bd797c2b9900034983a1118d27eb2f2f16 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.7 (affected)0 to < 6.7 (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ea242c14257566e8faf22c67643b72413c868a322d748579288a83334af040ee
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record