Description
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: avoid divide-by-zero in __is_lut_linear() __is_lut_linear() computes the expected value of each entry with expected = i * MAX_DRM_LUT_VALUE / (size - 1); If it is ever called with a single-entry LUT, size - 1 is zero and the kernel takes a divide error (#DE). A LUT with fewer than two entries cannot describe a linear mapping anyway, so return false early instead of dividing by zero.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
086247a4b2fba49800b27807f22bb894cd8363fb to < 2320626425f3af3a25b8afb6876f205b1c6d4e64affected086247a4b2fba49800b27807f22bb894cd8363fb to < d1e06d5dc8f12451ce71dc068342660a34476084affected086247a4b2fba49800b27807f22bb894cd8363fb to < c127ace7af2b40107947a6504391f94d6fd21734affected086247a4b2fba49800b27807f22bb894cd8363fb to < 4d5ee095a58461b2446d7a6eb0c14c2fe3eaab44affected086247a4b2fba49800b27807f22bb894cd8363fb to < 5f18cd1ba873e751bf5547407ad44ea34adfbe2faffected086247a4b2fba49800b27807f22bb894cd8363fb to < ee28fafb50f58b847509b5240b431ddec673bdfeaffected086247a4b2fba49800b27807f22bb894cd8363fb to < 15ee43aad0df43dfd1dbb32e7d5b951745c4b87faffected086247a4b2fba49800b27807f22bb894cd8363fb to < 4f40873f8a4107df2b9c8e68c947c4fd0cd519d2affected
Linux Linux
Default version status: affected
4.17affected0 to < 4.17unaffected5.10.270 to ≤ 5.10.*unaffected5.15.221 to ≤ 5.15.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.51 to ≤ 6.18.*unaffected7.2.5 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/2320626425f3af3a25b8afb6876f205b1c6d4e64 ↗
- https://git.kernel.org/stable/c/d1e06d5dc8f12451ce71dc068342660a34476084 ↗
- https://git.kernel.org/stable/c/c127ace7af2b40107947a6504391f94d6fd21734 ↗
- https://git.kernel.org/stable/c/4d5ee095a58461b2446d7a6eb0c14c2fe3eaab44 ↗
- https://git.kernel.org/stable/c/5f18cd1ba873e751bf5547407ad44ea34adfbe2f ↗
- https://git.kernel.org/stable/c/ee28fafb50f58b847509b5240b431ddec673bdfe ↗
- https://git.kernel.org/stable/c/15ee43aad0df43dfd1dbb32e7d5b951745c4b87f ↗
- https://git.kernel.org/stable/c/4f40873f8a4107df2b9c8e68c947c4fd0cd519d2 ↗