CVE-2026-139054: Linux kernel R-Car Gen4 PCIe driver lets devices issue 512-byte read requests the controller cannot honour, silently corrupting NVMe writes

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

Renesas R-Car Gen4 SoCs (R8A779F0 S4, R8A779G0 V4H, R8A779H0 V4M and relatives) carry a DesignWare-based PCIe controller with a hardware limit the kernel CNA record quotes from the reference manual: “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.” The record says the limitation “also seems to apply to devices doing DMA reads”, so a non-HMB NVMe SSD left at the usual 512-byte MRRS has “any write to the SSD (MRd TLP issued by the SSD controller) longer than 256 Bytes” wrap “around at the 256 Byte boundary, and the same data are written to the SSD starting at offset 0 and at 256 Bytes”. The fix limits MRRS to 256 bytes for each device on the controller. The CNA and Red Hat score it 7.1, integrity and availability, local. On R-Car Gen4 boards with PCIe storage or any DMA-capable endpoint, upgrade to 6.12.118, 6.18.64, 7.3.4 or later; until then, pin the endpoint’s MRRS to 256 bytes with setpci at boot.

CVE-2026-139054 at a glance.

ComponentLinux kernel, Renesas R-Car Gen4 PCIe host driver (drivers/pci/controller/dwc/pcie-rcar-gen4.c): the new rcar_gen4_pcie_enable_device() bridge callback
Affected versionsfrom the driver’s host-mode support in 0d0c551011df: 6.7 up to 6.12 before 6.12.118, 6.18 before 6.18.64, 7.3 before 7.3.4 and 7.4 before 7.4-rc1
Fixed inmainline 7.4-rc1 (commit f0a5c6bd, Marek Vasut, authored 21 August 2026, taken by Bjorn Helgaas via Manivannan Sadhasivam; pcie-rcar-gen4.c +54/−0) and stable 6.12.118, 6.18.64, 7.3.4. The change installs an enable_device callback on the host bridge that runs for every enumerated device: it warns once if the device’s Max_Payload_Size exceeds 256 (the PCI core should already prevent that), sets no_inc_mrrs on the bridge, and if pcie_get_readrq() is above 256 logs “Limiting MRRS to 256 bytes” and calls pcie_set_readrq(dev, 256). Fixes 0d0c551011df; Cc stable
SeverityKernel CNA CVSS 3.1 7.1 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H); NVD shows the CNA metric only; Red Hat Important, 7.1 on the same vector (draft, CWE-1284 improper validation of specified quantity), bug 2586669; Ubuntu not consulted (its page refused the automated reader)
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.0032 (27th percentile) on 1 December 2026
Who is exposedA Linux system on an R-Car Gen4 SoC with a PCIe endpoint that issues DMA reads larger than 256 bytes, the record’s case being an NVMe SSD without a Host Memory Buffer (hmpre of 0). Any local user who can write to that device, which is any user with a home directory on it, corrupts data without an error; the kernel never sees a fault. Red Hat: impact “limited to specialised Renesas R-Car Gen4 systems with affected PCIe devices”
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

Max_Read_Request_Size is the largest read a PCIe device may ask the host for in a single request. The PCI core negotiates Max_Payload_Size along a path, since every element must agree on it, but it leaves MRRS at a device default (commonly 512 bytes) unless a platform says otherwise, because on compliant hardware a large read request is just split into payload-sized completions. On R-Car Gen4 the controller does not split correctly: the manual limits MRRS to 128 or 256 bytes, and the record says the limit applies to inbound DMA reads as well as to the CPU’s own reads.

An NVMe controller writing to its media reads the data from host memory with memory-read TLPs sized up to its MRRS. On this platform a 512-byte read request yields 256 bytes of the right data followed by the first 256 bytes again, so the SSD stores a repeated block. The record demonstrates it with 512 bytes of random data written and read back: the second 256 bytes of the readback are a copy of the first. The failure is silent, which is why the CNA rates integrity High: filesystems, databases and firmware images on that SSD are quietly wrong, and availability follows when a corrupted filesystem refuses to mount. SSDs with a Host Memory Buffer were not seen to trigger it; the record’s discriminator is the hmpre field in nvme id-ctrl.

Marek Vasut’s fix, authored on 21 August 2026 and merged through the PCI tree for 7.4-rc1 with a stable tag, adds 54 lines: a bridge enable_device callback that the core invokes for each device behind this root port, which caps the device’s MRRS at 256 bytes (and sets no_inc_mrrs so later tuning cannot raise it again) and warns if the payload size ever exceeds the hardware limit. It is a host-side fix for a hardware limitation, which is why it sits in the controller driver and not in the NVMe driver.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The driver is compiled only for the Renesas R-Car Gen4 platforms, so the general-purpose rows describe source packages; the exposed kernels are the arm64 builds and BSPs that run on those boards.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.x) not affected (“vulnerable code not present”); trixie 6.12.117-1 vulnerable, trixie security 6.12.118-1 fixed; fixed in forky and sid (fix recorded at 7.3.4-1, current 7.3.6-1); no DSAtrixie 6.12.118-1; unstable 7.3.4-1
UbuntuNot consulted for this page: ubuntu.com refused the automated reader on 2 December 2026 (the bulk list on run 18 onward and this page twice); the Ubuntu priority is not stated here—
RHEL, Rocky, Alma, CentOS StreamImportant, 7.1 (bug 2586669, CWE-1284); kernel affected in RHEL 10 and the OpenShift 5 RHCOS 10 image; RHEL 6, 7, 8 and 9 not affected (the driver arrived in 6.7); no errata on 2 December 2026—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions applyRenesas BSPs, Yocto and Buildroot images for R-Car Gen4: 6.12.118 / 6.18.64 / 7.3.4 or later

How to check

One question settles almost every host: is this an R-Car Gen4 board. If it is, the next are whether a DMA-capable endpoint sits behind the controller, what its MRRS currently is, and, for NVMe, whether it lacks a Host Memory Buffer.

# 1. the platform: only Renesas R-Car Gen4 SoCs carry the pcie-rcar-gen4 driver
cat /proc/device-tree/compatible 2>/dev/null | tr '\0' '\n' | grep -E 'renesas,r8a779[fgh]'
ls /sys/bus/platform/drivers/pcie-rcar-gen4* 2>/dev/null

# 2. the running kernel: affected from 6.7; fixed in 6.12.118, 6.18.64, 7.3.4 or later
uname -r

# 3. endpoints and their current read request size (MaxReadReq 512 or more on this board is the problem)
lspci -vv 2>/dev/null | grep -E '^[0-9a-f]{2}:|MaxReadReq'

# 4. NVMe without a Host Memory Buffer (hmpre 0) is the case the record reproduced
for d in /dev/nvme[0-9]; do echo "$d"; nvme id-ctrl "$d" 2>/dev/null | grep hmpre; done

No Renesas R-Car Gen4 compatible string means the controller does not exist on this host and the page does not apply, which is every server and almost every Arm board. On an R-Car Gen4 board with an affected kernel, an endpoint reporting MaxReadReq 512 bytes or more is operating outside what the controller supports; an NVMe drive there with hmpre : 0 is the configuration the record showed corrupting writes. The record’s own test, writing 512 random bytes and reading them back to look for a repeat at offset 256, is definitive but destructive, so run it only against a scratch device.

How to fix it

Update the board’s kernel to a fixed release and reboot; on these SoCs the kernel comes from a BSP, Yocto layer or Debian arm64 image rather than a desktop distribution. Until then the hardware limit can be enforced by hand: set each endpoint’s MRRS to 256 bytes with setpci at every boot, before the device is used.

# Yocto / Buildroot / Renesas BSP: move the kernel recipe to a fixed stable (6.12.118+, 6.18.64+ or 7.3.4+),
# or add the upstream patch to the kernel's patch set:
#   https://git.kernel.org/stable/c/f0a5c6bd797c2b9900034983a1118d27eb2f2f16
# then rebuild the image and reflash the board
# Debian trixie (security 6.12.118-1 carries the fix) or forky / sid on a supported board
apt update && apt install linux-image-arm64 && systemctl reboot
# Interim: force MRRS to 256 bytes on the endpoint (Device Control register, bits 14:12 = 001b)
# replace 01:00.0 with the endpoint's address from lspci; run from a systemd unit before the device is mounted
setpci -s 01:00.0 CAP_EXP+8.w=0x1000:0x7000
lspci -vv -s 01:00.0 | grep MaxReadReq

The setpci step does exactly what the kernel fix does, once, at the moment it runs; a driver reload, a hot-plug or a reset returns the device to its default, which is why the fix belongs in the controller driver and the manual step is a bridge. What not to do: do not pass pci=pcie_bus_perf to “tune” the bus here; that option sets MRRS to match the payload size, which on this controller happens to be 256 and so may appear to work, but it also changes payload negotiation for every device and is not what the record or the fix do.

Sources

  • CVE-2026-139054 at CVE.org — the kernel CNA record: the reference-manual quotation, the “also seems to apply to devices doing DMA reads” sentence, the Crucial P5 Plus example, the hmpre test, the dd/hexdump reproducer, the 6.7 lower bound and the git ranges (30 November 2026)
  • Fix commit f0a5c6bd (mainline, 7.4-rc1; Marek Vasut, 21 August 2026; drivers/pci/controller/dwc/pcie-rcar-gen4.c +54/−0; Fixes 0d0c551011df, Cc stable, Signed-off-by Manivannan Sadhasivam and Bjorn Helgaas) and the three stable backports in the record (read as the GitHub patch view on 2 December 2026; git.kernel.org refuses automated readers)
  • NVD entry — Received on 30 November 2026; shows the CNA’s metric as its only score, no NVD score or CWE on 2 December 2026
  • Distribution trackers: Debian (bookworm not affected, trixie fixed in 6.12.118-1, unstable fixed in 7.3.4-1) · Ubuntu (refused the automated reader on 2 December 2026) · Red Hat (Important 7.1, bug 2586669, CWE-1284, RHEL 10 affected) · SUSE and Alpine (both refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.0032 (percentile 0.269) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.