Linux kernel data corruption in R-Car Gen4 PCIe controller driver
Affects Linux kernels on R-Car Gen4 PCIe host controllers with non-HMB NVMe SSDs that issue 512-byte read requests. No fixed version is named; the fix is kernel commits e280a383, 48ab9100 and f44903fd.
- Exploited
- No known exploitation
- Fix
- Vendor patch: e280a383490e7ef1539c32760bd3fcb507d1f540, 48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc, f44903fd54634e5b81bda4b90b6b583cd75d7157
- Who is exposed
- Specific setups only
Summary
Written by a model
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
Who should check
Teams running Linux kernels on R-Car Gen4 PCIe host mode systems with non-HMB NVMe SSDs, such as Crucial P5 Plus
“R-Car Gen4 PCIe controller has a hardware limitation of 256 Bytes”
What to do
Check whether your setup matches what the bug needs.
Linux kernel with an R-Car Gen4 PCIe controller in host mode A non-HMB NVMe SSD is attached to the controller The SSD issues reads with Max_Read_Request_Size of 512 bytesApply the vendor's patch: e280a383490e7ef1539c32760bd3fcb507d1f540, 48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc, f44903fd54634e5b81bda4b90b6b583cd75d7157.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-139054 (PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-139054 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 6.7
Vendor patches: e280a383490e7ef1539c32760bd3fcb507d1f540, 48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc, f44903fd54634e5b81bda4b90b6b583cd75d7157 (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e280a383490e7ef1539c32760bd3fcb507d1f540). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- Linux kernel with an R-Car Gen4 PCIe controller in host mode (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e280a383490e7ef1539c32760bd3fcb507d1f540)
- A non-HMB NVMe SSD is attached to the controller (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e280a383490e7ef1539c32760bd3fcb507d1f540)
- The SSD issues reads with Max_Read_Request_Size of 512 bytes (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e280a383490e7ef1539c32760bd3fcb507d1f540)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-139054 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139054 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/e280a383490e7ef1539c32760bd3fcb507d1f540
- https://git.kernel.org/stable/c/48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc
- https://git.kernel.org/stable/c/f44903fd54634e5b81bda4b90b6b583cd75d7157
- https://git.kernel.org/stable/c/f0a5c6bd797c2b9900034983a1118d27eb2f2f16
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e280a383490e7ef1539c32760bd3fcb507d1f540
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-139054
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-139054"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux6.7
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7.1/10CVSS 7.1
- No patch0/5No signal
What would change the score
- Would score about 82 if added to CISA KEV
- Would score about 77 if CISA's SSVC rates exploitation active
- Would score about 42 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-139054 |
| Record | NVD · CVE-2026-139054 |
| Other links 4 | |
| Link | git.kernel.org · stable/c/e280a383490e7ef1539c32760bd3fcb507d1f540 |
| Link | git.kernel.org · stable/c/48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc |
| Link | git.kernel.org · stable/c/f44903fd54634e5b81bda4b90b6b583cd75d7157 |
| Link | git.kernel.org · stable/c/f0a5c6bd797c2b9900034983a1118d27eb2f2f16 |
Questions about CVE-2026-139054
Is CVE-2026-139054 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
The R-Car Gen4 PCIe controller has a hardware limit of 256 bytes on read requests. When a non-HMB NVMe SSD issues reads of 512 bytes, half of the data written to the SSD is stored wrong, corrupting file data and filesystem metadata and causing checksum failures or a read-only filesystem.
Source: git.kernel.org, cve.org
Which versions are affected by CVE-2026-139054?
Linux: version 6.7.
Source: cve.now feed data
Am I affected, and how do I check?
The issue involves the Linux kernel running an R-Car Gen4 PCIe controller in host mode, with a non-HMB NVMe SSD attached whose reads use a Max_Read_Request_Size of 512 bytes, such as the Crucial P5 Plus. Check whether your system uses this controller and which SSD is attached, then check the SSD's read request size setting.
Source: git.kernel.org, cve.org
How do I fix CVE-2026-139054?
No fixed kernel version is listed in the facts. Apply the kernel patches from commits e280a383490e7ef1539c32760bd3fcb507d1f540, 48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc and f44903fd54634e5b81bda4b90b6b583cd75d7157.
Source: git.kernel.org, cve.org
Related
- CVE-2026-139801KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
- CVE-2026-139799mm/shmem: hold off eviction in shmem_writeout()
- CVE-2026-139792ALSA: pcm: Prevent O_APPEND open on OSS streams
- CVE-2026-139788cipso: stop modifying live ip_options_rcu
- CVE-2026-139786mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
- CVE-2026-1398009p/xen: drain response work after unbinding IRQ
No corrections so far. Something wrong on this page? Report an error.