Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d8c1a9579cbd8f4ac5cbd5a10f1afb5ee64adf30; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2ac6e30a552e6f9932c21c865a5c69f40c8aef64; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 413d763439ba68e5d547538e6b6c7de97d5818a5; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e8d4e4cf388daeb49704f3de10b203034f28eb90; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a6decd4e72fc5846d3b268bd085a2089213fd5ee; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 33e54e3e0b2ca959304e62c3d84f0ad49bbe1afe; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7bf36dc23bcf3496dec274a46ae0aaff4961ea03; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7b5c7bc55e13e7f5ac7b1eaf5c6d690389ea5ee3 |
| Linux / Linux | affected 2.6.12; unaffected 0 before 2.6.12; unaffected 5.10.270 through 5.10.*; unaffected 5.15.221 through 5.15.*; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/d8c1a9579cbd8f4ac5cbd5a10f1afb5ee64adf30
- https://git.kernel.org/stable/c/2ac6e30a552e6f9932c21c865a5c69f40c8aef64
- https://git.kernel.org/stable/c/413d763439ba68e5d547538e6b6c7de97d5818a5
- https://git.kernel.org/stable/c/e8d4e4cf388daeb49704f3de10b203034f28eb90
- https://git.kernel.org/stable/c/a6decd4e72fc5846d3b268bd085a2089213fd5ee
- https://git.kernel.org/stable/c/33e54e3e0b2ca959304e62c3d84f0ad49bbe1afe
- https://git.kernel.org/stable/c/7bf36dc23bcf3496dec274a46ae0aaff4961ea03
- https://git.kernel.org/stable/c/7b5c7bc55e13e7f5ac7b1eaf5c6d690389ea5ee3