Linux
drm/i915/gem: Fix phys BO pread/pwrite with offset
In the Linux kernel, the following vulnerability has been resolved: drm/i915/gem: Fix phys BO pread/pwrite with offset sg_page() returns struct page pointer not (void *) so the scaling of pread/pwrite is wrong for phys BO and wrong parts of BO would be accessed if non-zero offset is used. Last impacted platform with overlay or cursor planes using phys mapping was Gen3/945G/Lakeport. (cherry picked from commit 3e49a2f85070b2fb672c1e0fdba281a4ea3aebe6)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= c6790dc22312f592c1434577258b31c48c72d52a, < 40f738991058eb3e3530c3006a5bd6fd5e29f035
- >= c6790dc22312f592c1434577258b31c48c72d52a, < 1ec8fc63e9cdb22da54e48e536c9204020416fc6
- >= c6790dc22312f592c1434577258b31c48c72d52a, < 14469860e2e39b7095dcd658d2bad38a11110a68
- >= c6790dc22312f592c1434577258b31c48c72d52a, < 07c33be968d9e0cab6cba38c81850a09942fcb2e
- >= c6790dc22312f592c1434577258b31c48c72d52a, < 3bd168dd835b93a3862cd05b0d13c432b115f9d6
- >= c6790dc22312f592c1434577258b31c48c72d52a, < 32d4c5d328a3ff995420f4f85163e1e403f43628
- >= c6790dc22312f592c1434577258b31c48c72d52a, < dd51a2eeb93bc6faa892ff9083911dd23f82c187
- >= c6790dc22312f592c1434577258b31c48c72d52a, < d21ad938398bca695a511307de38a65889e3b354
Fixed in 40f738991058eb3e3530c3006a5bd6fd5e29f035, 1ec8fc63e9cdb22da54e48e536c9204020416fc6, 14469860e2e39b7095dcd658d2bad38a11110a68, 07c33be968d9e0cab6cba38c81850a09942fcb2e, 3bd168dd835b93a3862cd05b0d13c432b115f9d6, 32d4c5d328a3ff995420f4f85163e1e403f43628, dd51a2eeb93bc6faa892ff9083911dd23f82c187, d21ad938398bca695a511307de38a65889e3b354
- 5.7
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.94, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 40f738991058eb3e3530c3006a5bd6fd5e29f035 or 1ec8fc63e9cdb22da54e48e536c9204020416fc6 or 14469860e2e39b7095dcd658d2bad38a11110a68 or 07c33be968d9e0cab6cba38c81850a09942fcb2e or 3bd168dd835b93a3862cd05b0d13c432b115f9d6 or 32d4c5d328a3ff995420f4f85163e1e403f43628 or dd51a2eeb93bc6faa892ff9083911dd23f82c187 or d21ad938398bca695a511307de38a65889e3b354 or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.