drm/i915/gem: Fix phys BO pread/pwrite with offset
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c6790dc22312f592c1434577258b31c48c72d52a · < 32d4c5d328a3ff995420f4f85163e1e403f43628| No fix yet |
| Linux Linux |
|
|
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)
From the CVE record · Linux
The Linux kernel's drm/i915/gem code incorrectly scales pread/pwrite offsets for physically mapped buffer objects. A non-zero offset can cause access to the wrong part of a buffer object. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels on Gen3/945G/Lakeport platforms with overlay or cursor planes using physical mapping should check their installations; affected versions are not specified.