drm/amd/display: avoid divide-by-zero in __is_lut_linear()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in 2320626425f3af3a25b8afb6876f205b1c6d4e64; From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in d1e06d5dc8f12451ce71dc068342660a34476084; From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in c127ace7af2b40107947a6504391f94d6fd21734; From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in 4d5ee095a58461b2446d7a6eb0c14c2fe3eaab44; From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in 5f18cd1ba873e751bf5547407ad44ea34adfbe2f; From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in ee28fafb50f58b847509b5240b431ddec673bdfe; From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in 15ee43aad0df43dfd1dbb32e7d5b951745c4b87f; From 086247a4b2fba49800b27807f22bb894cd8363fb · fixed in 4f40873f8a4107df2b9c8e68c947c4fd0cd519d2
- Linux Linux
4.17
- KernelLinux
From 4.17.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5
References 8
git.kernel.org
- stable/c/2320626425f3af3a25b8afb6876f205b1c6d4e64
- stable/c/d1e06d5dc8f12451ce71dc068342660a34476084
- stable/c/c127ace7af2b40107947a6504391f94d6fd21734
- stable/c/4d5ee095a58461b2446d7a6eb0c14c2fe3eaab44
- stable/c/5f18cd1ba873e751bf5547407ad44ea34adfbe2f
- stable/c/ee28fafb50f58b847509b5240b431ddec673bdfe
- stable/c/15ee43aad0df43dfd1dbb32e7d5b951745c4b87f
- stable/c/4f40873f8a4107df2b9c8e68c947c4fd0cd519d2