# CVE-2026-74277: iommu/dma-iommu: Fix wrong scatterlist length assignment in P2PDMA path

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-08-15T05:57:48.814Z
- Modified: 2026-10-16T19:17:35.740Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iommu/dma-iommu: Fix wrong scatterlist length assignment in P2PDMA path

In iommu_dma_map_sg(), when handling PCI P2PDMA cases, the DMA length
of the current scatterlist segment `s` is incorrectly assigned from the
head entry `sg->length` instead of the current entry `s->length`.

This typo causes all P2PDMA segments in the scatterlist to inherit the
length of the first segment, leading to corrupted DMA lengths for multi-
segment scatterlists.

Fix this by using `s->length` instead of `sg->length`.

(As written by CVE List.)

## Affected

- Linux Linux: from a25e7962db0d79882c9d32fd2a67a02e79129c0e before 6166cb1344f16dd403f2192f4bea6f6654f1ae1e; from a25e7962db0d79882c9d32fd2a67a02e79129c0e before 8646f00ce021e49f4f05bc1d4060a0c27b25d0e1; from a25e7962db0d79882c9d32fd2a67a02e79129c0e before db50fb87015b955a5a0c155293b2dd40d63a3b9e; 6.16 (not affected: before 6.16; from 6.18.57 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/6166cb1344f16dd403f2192f4bea6f6654f1ae1e>
- <https://git.kernel.org/stable/c/8646f00ce021e49f4f05bc1d4060a0c27b25d0e1>
- <https://git.kernel.org/stable/c/db50fb87015b955a5a0c155293b2dd40d63a3b9e>

## Sources

- CVE List: [CVE-2026-74277](https://www.cve.org/CVERecord?id=CVE-2026-74277), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-74277](https://nvd.nist.gov/vuln/detail/CVE-2026-74277), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-74277 · Whole record: https://cve.day/CVE-2026-74277.json · Rebuilt by cve.day 2026-11-25T22:59:33.154Z
