# CVE-2024-49892: drm/amd/display: Initialize get_bytes_per_element's default to 1

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-10-21T18:01:27.004Z
- Modified: 2026-10-15T01:19:00.113Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Initialize get_bytes_per_element's default to 1

Variables, used as denominators and maybe not assigned to other values,
should not be 0. bytes_per_element_y & bytes_per_element_c are
initialized by get_bytes_per_element() which should never return 0.

This fixes 10 DIVIDE_BY_ZERO issues reported by Coverity.

(As written by CVE List.)

## Affected

- Linux Linux: from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 8f0abb39c16e719129de10596b3ae3363fa178b4; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before f921335123f6620c3dce5c96fbb95f18524a021c; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 1f9f8186e239222f1c8d3dd73bf3bc6ae86c5e76; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before a23d6029e730f8a151b1a34afb169baac1274583; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before c7630935d9a4986e8c0ed91658a781b7a77d73f7; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before bc00d211da4ffad5314a2043b50bdc8ff8a33724; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 3334ab72cbba55a632f24579cd47c4a4e5e69cda; from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 4067f4fa0423a89fb19a30b57231b384d77d2610; 4.15 (not affected: before 4.15; from 5.4.285 up to 5.4.*; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.55; from 6.7 before 6.10.14; from 6.11 before 6.11.3

## References

- <https://git.kernel.org/stable/c/8f0abb39c16e719129de10596b3ae3363fa178b4>
- <https://git.kernel.org/stable/c/f921335123f6620c3dce5c96fbb95f18524a021c> (patch)
- <https://git.kernel.org/stable/c/1f9f8186e239222f1c8d3dd73bf3bc6ae86c5e76> (patch)
- <https://git.kernel.org/stable/c/a23d6029e730f8a151b1a34afb169baac1274583> (patch)
- <https://git.kernel.org/stable/c/c7630935d9a4986e8c0ed91658a781b7a77d73f7> (patch)
- <https://git.kernel.org/stable/c/bc00d211da4ffad5314a2043b50bdc8ff8a33724> (patch)
- <https://git.kernel.org/stable/c/3334ab72cbba55a632f24579cd47c4a4e5e69cda> (patch)
- <https://git.kernel.org/stable/c/4067f4fa0423a89fb19a30b57231b384d77d2610> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Sources

- CVE List: [CVE-2024-49892](https://www.cve.org/CVERecord?id=CVE-2024-49892), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-49892](https://nvd.nist.gov/vuln/detail/CVE-2024-49892), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-49892 · Whole record: https://cve.day/CVE-2024-49892.json · Rebuilt by cve.day 2026-11-25T22:58:47.032Z
