fbdev: kyro: Validate overlay viewport coordinates
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 33e54e3e0b2ca959304e62c3d84f0ad49bbe1afe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fbdev: kyro: Validate overlay viewport coordinates
The overlay viewport end coordinates are computed from the viewport origin and dimensions using 32-bit unsigned arithmetic. Large input values can cause these calculations to wrap around before the resulting coordinates are passed to SetOverlayViewPort().
SetOverlayViewPort() packs the viewport coordinates into 16-bit register fields. The X coordinates are additionally adjusted by +2 and +1 before being written. Validate the coordinate calculations for 32-bit wraparound and ensure that the adjusted coordinates fit within their 16-bit register fields before calling SetOverlayViewPort().
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
The Linux kernel's kyro fbdev overlay viewport calculations can wrap around when given large coordinate values. The resulting coordinates may then be passed to SetOverlayViewPort(), where they are packed into 16-bit register fields. The input does not specify an attack path, authentication requirements, or whether user interaction is needed.
Engineers running Linux kernels with the kyro fbdev driver should check their kernel versions; affected versions are not specified.