{"id":"CVE-2026-139054","state":"PUBLISHED","title":"PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes\n\nR-Car Gen4 PCIe controller has a hardware limitation of 256 Bytes\nMax_Payload_Size (MPS). PCIe specification indicates that the MPS must not\nexceed minimum MPS of any element along the packet path.  The PCI core\nalready enforces this, but add a check to warn if MPS is ever set larger\nthan 256.\n\nR-Car Gen4 Reference Manual, chapter 104.4.8 Usage notes for MRRS (Max Read\nRequest Size) states:\n\n  Please set \"Max Read Request Size\" to 128 bytes or 256 bytes.\n  If \"Max Read Request Size\" is set to anything other than the\n  above, the transferred data will not match the expected value.\n\nThis limitation also seems to apply to devices doing DMA reads, i.e.,\nissuing MRd TLPs.  This limitation can be triggered by using non-HMB NVMe\nSSD with Max_Read_Request_Size 512 Bytes, for example Crucial P5 Plus.  Any\nwrite to the SSD (MRd TLP issued by the SSD controller) longer than 256\nBytes wraps around at the 256 Byte boundary, and the same data are written\nto the SSD starting at offset 0 and at 256 Bytes.\n\nLimit Max_Read_Request_Size to at most 256 Bytes for each device connected\nto this PCIe controller to avoid this behavior.\n\nA non-HMB (Host Memory Buffer) NVMe SSD can be identified using the\nfollowing command. Affected SSD reports 'hmpre' field as 0:\n\n  $ nvme id-ctrl /dev/nvme0 | grep hmpre\n  hmpre     : 0\n\nThe symptom is a read from the SSD which wraps around at 256 Byte boundary.\nThe test for this symptom can be implemented by writing 512 Byte of random\ndata into the SSD and reading the data back. If the read back data repeat\nafter 256 Bytes, the device is affected.\n\n  $ dd if=/dev/urandom of=/tmp/data.bin bs=256 count=2 ; \\\n    dd if=/tmp/data.bin of=/dev/nvme0n1 bs=256 count=2 ; \\\n    dd if=/dev/nvme0n1 bs=256 count=2 of=/tmp/readback.bin\n\nExpected data:\n  $ hexdump -vC /tmp/data.bin\n  00000000  97 81 b7 3b 0e 38 2b 4d  a7 d3 e0 47 ff c2 4b ca\n  00000010  c1 85 98 f0 4a ac 03 a0  3b ab f3 19 44 dd 06 8b\n  ...\n  00000100  7a ce 3c b2 e1 d5 d9 11  88 63 10 59 76 3c dc 32 <-- random\n  00000110  72 32 2a 7d a3 e1 aa 13  7c da 58 a1 7b 21 11 50 <-- data\n\nFaulty readback, collected without this change in place:\n  $ hexdump -vC /tmp/readback.bin\n  00000000  97 81 b7 3b 0e 38 2b 4d  a7 d3 e0 47 ff c2 4b ca <---.\n  00000010  c1 85 98 f0 4a ac 03 a0  3b ab f3 19 44 dd 06 8b <-. |\n  ...                                                          | |\n  00000100  97 81 b7 3b 0e 38 2b 4d  a7 d3 e0 47 ff c2 4b ca <-:-+- repeated\n  00000110  c1 85 98 f0 4a ac 03 a0  3b ab f3 19 44 dd 06 8b <-+--- data\n       ^^^\n        |\n        '--- Repeat starts at offset 0x100 = 256 Bytes","publishedAt":"2026-11-30T13:27:26.359Z","updatedAt":"2026-11-30T13:27:26.359Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"e280a383490e7ef1539c32760bd3fcb507d1f540","versionType":"git"},{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc","versionType":"git"},{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"f44903fd54634e5b81bda4b90b6b583cd75d7157","versionType":"git"},{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"f0a5c6bd797c2b9900034983a1118d27eb2f2f16","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/controller/dwc/pcie-rcar-gen4.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/controller/dwc/pcie-rcar-gen4.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139054.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139054","state":"PUBLISHED","datePublished":"2026-11-30T13:27:26.359Z","dateUpdated":"2026-11-30T13:27:26.359Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.911Z"},"containers":{"cna":{"title":"PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes\n\nR-Car Gen4 PCIe controller has a hardware limitation of 256 Bytes\nMax_Payload_Size (MPS). PCIe specification indicates that the MPS must not\nexceed minimum MPS of any element along the packet path.  The PCI core\nalready enforces this, but add a check to warn if MPS is ever set larger\nthan 256.\n\nR-Car Gen4 Reference Manual, chapter 104.4.8 Usage notes for MRRS (Max Read\nRequest Size) states:\n\n  Please set \"Max Read Request Size\" to 128 bytes or 256 bytes.\n  If \"Max Read Request Size\" is set to anything other than the\n  above, the transferred data will not match the expected value.\n\nThis limitation also seems to apply to devices doing DMA reads, i.e.,\nissuing MRd TLPs.  This limitation can be triggered by using non-HMB NVMe\nSSD with Max_Read_Request_Size 512 Bytes, for example Crucial P5 Plus.  Any\nwrite to the SSD (MRd TLP issued by the SSD controller) longer than 256\nBytes wraps around at the 256 Byte boundary, and the same data are written\nto the SSD starting at offset 0 and at 256 Bytes.\n\nLimit Max_Read_Request_Size to at most 256 Bytes for each device connected\nto this PCIe controller to avoid this behavior.\n\nA non-HMB (Host Memory Buffer) NVMe SSD can be identified using the\nfollowing command. Affected SSD reports 'hmpre' field as 0:\n\n  $ nvme id-ctrl /dev/nvme0 | grep hmpre\n  hmpre     : 0\n\nThe symptom is a read from the SSD which wraps around at 256 Byte boundary.\nThe test for this symptom can be implemented by writing 512 Byte of random\ndata into the SSD and reading the data back. If the read back data repeat\nafter 256 Bytes, the device is affected.\n\n  $ dd if=/dev/urandom of=/tmp/data.bin bs=256 count=2 ; \\\n    dd if=/tmp/data.bin of=/dev/nvme0n1 bs=256 count=2 ; \\\n    dd if=/dev/nvme0n1 bs=256 count=2 of=/tmp/readback.bin\n\nExpected data:\n  $ hexdump -vC /tmp/data.bin\n  00000000  97 81 b7 3b 0e 38 2b 4d  a7 d3 e0 47 ff c2 4b ca\n  00000010  c1 85 98 f0 4a ac 03 a0  3b ab f3 19 44 dd 06 8b\n  ...\n  00000100  7a ce 3c b2 e1 d5 d9 11  88 63 10 59 76 3c dc 32 <-- random\n  00000110  72 32 2a 7d a3 e1 aa 13  7c da 58 a1 7b 21 11 50 <-- data\n\nFaulty readback, collected without this change in place:\n  $ hexdump -vC /tmp/readback.bin\n  00000000  97 81 b7 3b 0e 38 2b 4d  a7 d3 e0 47 ff c2 4b ca <---.\n  00000010  c1 85 98 f0 4a ac 03 a0  3b ab f3 19 44 dd 06 8b <-. |\n  ...                                                          | |\n  00000100  97 81 b7 3b 0e 38 2b 4d  a7 d3 e0 47 ff c2 4b ca <-:-+- repeated\n  00000110  c1 85 98 f0 4a ac 03 a0  3b ab f3 19 44 dd 06 8b <-+--- data\n       ^^^\n        |\n        '--- Repeat starts at offset 0x100 = 256 Bytes"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"e280a383490e7ef1539c32760bd3fcb507d1f540","versionType":"git"},{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc","versionType":"git"},{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"f44903fd54634e5b81bda4b90b6b583cd75d7157","versionType":"git"},{"version":"0d0c551011df4519c232f7114cdace9000e86c51","status":"affected","lessThan":"f0a5c6bd797c2b9900034983a1118d27eb2f2f16","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/controller/dwc/pcie-rcar-gen4.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/controller/dwc/pcie-rcar-gen4.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e280a383490e7ef1539c32760bd3fcb507d1f540"},{"url":"https://git.kernel.org/stable/c/48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc"},{"url":"https://git.kernel.org/stable/c/f44903fd54634e5b81bda4b90b6b583cd75d7157"},{"url":"https://git.kernel.org/stable/c/f0a5c6bd797c2b9900034983a1118d27eb2f2f16"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:26.359Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}