drm/amd/display: avoid divide-by-zero in __is_lut_linear()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ee28fafb50f58b847509b5240b431ddec673bdfe, Kernel 15ee43aad0df43dfd1dbb32e7d5b951745c4b87f, Kernel 2320626425f3af3a25b8afb6876f205b1c6d4e64 and 12 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=086247a4b2fba49800b27807f22bb894cd8363fb <ee28fafb50f58b847509b5240b431ddec673bdfe, >=086247a4b2fba49800b27807f22bb894cd8363fb <15ee43aad0df43dfd1dbb32e7d5b951745c4b87f, >=086247a4b2fba49800b27807f22bb894cd8363fb <2320626425f3af3a25b8afb6876f205b1c6d4e64, >=086247a4b2fba49800b27807f22bb894cd8363fb <4d5ee095a58461b2446d7a6eb0c14c2fe3eaab44, >=086247a4b2fba49800b27807f22bb894cd8363fb <4f40873f8a4107df2b9c8e68c947c4fd0cd519d2, >=086247a4b2fba49800b27807f22bb894cd8363fb <5f18cd1ba873e751bf5547407ad44ea34adfbe2f, >=086247a4b2fba49800b27807f22bb894cd8363fb <c127ace7af2b40107947a6504391f94d6fd21734, >=086247a4b2fba49800b27807f22bb894cd8363fb <d1e06d5dc8f12451ce71dc068342660a34476084, =4.17 | ee28fafb50f58b847509b5240b431ddec673bdfe, 15ee43aad0df43dfd1dbb32e7d5b951745c4b87f, 2320626425f3af3a25b8afb6876f205b1c6d4e64, 4d5ee095a58461b2446d7a6eb0c14c2fe3eaab44, 4f40873f8a4107df2b9c8e68c947c4fd0cd519d2, 5f18cd1ba873e751bf5547407ad44ea34adfbe2f, c127ace7af2b40107947a6504391f94d6fd21734, d1e06d5dc8f12451ce71dc068342660a34476084 |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=6.13.0 <6.18.51, >=6.19.0 <7.2.5, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=4.17.0 <5.10.270 | 5.15.221, 6.1.188, 6.18.51, 7.2.5, 6.6.157, 6.12.110, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket