{"api_version":"1","generated_at":"2026-12-02T21:23:09+00:00","cve":"CVE-2026-139054","urls":{"html":"https://cve.report/CVE-2026-139054","api":"https://cve.report/api/cve/CVE-2026-139054.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139054","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139054"},"summary":{"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","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:11","updated_at":"2026-12-01 06:17:32"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","data":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/f44903fd54634e5b81bda4b90b6b583cd75d7157","name":"https://git.kernel.org/stable/c/f44903fd54634e5b81bda4b90b6b583cd75d7157","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e280a383490e7ef1539c32760bd3fcb507d1f540","name":"https://git.kernel.org/stable/c/e280a383490e7ef1539c32760bd3fcb507d1f540","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f0a5c6bd797c2b9900034983a1118d27eb2f2f16","name":"https://git.kernel.org/stable/c/f0a5c6bd797c2b9900034983a1118d27eb2f2f16","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc","name":"https://git.kernel.org/stable/c/48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139054","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139054","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d0c551011df4519c232f7114cdace9000e86c51 e280a383490e7ef1539c32760bd3fcb507d1f540 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d0c551011df4519c232f7114cdace9000e86c51 48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d0c551011df4519c232f7114cdace9000e86c51 f44903fd54634e5b81bda4b90b6b583cd75d7157 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0d0c551011df4519c232f7114cdace9000e86c51 f0a5c6bd797c2b9900034983a1118d27eb2f2f16 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"139054","cve":"CVE-2026-139054","epss":"0.003200000","percentile":"0.269240000","score_date":"2026-12-01","updated_at":"2026-12-02 00:13:40"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/pci/controller/dwc/pcie-rcar-gen4.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e280a383490e7ef1539c32760bd3fcb507d1f540","status":"affected","version":"0d0c551011df4519c232f7114cdace9000e86c51","versionType":"git"},{"lessThan":"48ab9100bc0a29d367c2e2bd7c64dc2cf16c9ebc","status":"affected","version":"0d0c551011df4519c232f7114cdace9000e86c51","versionType":"git"},{"lessThan":"f44903fd54634e5b81bda4b90b6b583cd75d7157","status":"affected","version":"0d0c551011df4519c232f7114cdace9000e86c51","versionType":"git"},{"lessThan":"f0a5c6bd797c2b9900034983a1118d27eb2f2f16","status":"affected","version":"0d0c551011df4519c232f7114cdace9000e86c51","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/pci/controller/dwc/pcie-rcar-gen4.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.7"},{"lessThan":"6.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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"}],"metrics":[{"cvssV3_1":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:40:55.877Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139054","datePublished":"2026-11-30T13:27:26.359Z","dateReserved":"2026-11-30T13:22:15.911Z","dateUpdated":"2026-12-01T05:40:55.877Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:11","lastModifiedDate":"2026-12-01 06:17:32","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139054","Ordinal":"1","Title":"PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes","CVE":"CVE-2026-139054","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139054","Ordinal":"1","NoteData":"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","Type":"Description","Title":"PCI: rcar-gen4: Limit Max_Read_Request_Size to 256 Bytes"}]}}}