drm/amd/display: avoid divide-by-zero in __is_lut_linear() (Linux Linux)

CVE-2026-89821
Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 086247a4b2fba49800b27807f22bb894cd8363fb < 2320626425f3af3a25b8afb6876f205b1c6d4e64 ; affected 086247a4b2fba49800b27807f22bb894cd8363fb < d1e06d5dc8f12451ce71dc068342660a34476084 ; affected 086247a4b2fba49800b27807f22bb894cd8363fb < c127ace7af2b40107947a6504391f94d6fd21734 ; affected 086247a4b2fba49800b27807f22bb894cd8363fb < 4d5ee095a58461b2446d7a6eb0c14c2fe3eaab44 ; affected 086247a4b2fba49800b27807f22bb894cd8363fb < 5f18cd1ba873e751bf5547407ad44ea34adfbe2f ; affected 086247a4b2fba49800b27807f22bb894cd8363fb < ee28fafb50f58b847509b5240b431ddec673bdfe
Linux · Linuxaffected 4.17 ; unaffected 0 < 4.17 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD