drm/amd/display: Initialize get_bytes_per_element's default to 1
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1f9f8186e239222f1c8d3dd73bf3bc6ae86c5e76, Kernel 3334ab72cbba55a632f24579cd47c4a4e5e69cda, Kernel 4067f4fa0423a89fb19a30b57231b384d77d2610 and 5 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.15, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <1f9f8186e239222f1c8d3dd73bf3bc6ae86c5e76, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <3334ab72cbba55a632f24579cd47c4a4e5e69cda, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <4067f4fa0423a89fb19a30b57231b384d77d2610, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <8f0abb39c16e719129de10596b3ae3363fa178b4, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <a23d6029e730f8a151b1a34afb169baac1274583, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <bc00d211da4ffad5314a2043b50bdc8ff8a33724, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <c7630935d9a4986e8c0ed91658a781b7a77d73f7, >=4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c <f921335123f6620c3dce5c96fbb95f18524a021c | 1f9f8186e239222f1c8d3dd73bf3bc6ae86c5e76, 3334ab72cbba55a632f24579cd47c4a4e5e69cda, 4067f4fa0423a89fb19a30b57231b384d77d2610, 8f0abb39c16e719129de10596b3ae3363fa178b4, a23d6029e730f8a151b1a34afb169baac1274583, bc00d211da4ffad5314a2043b50bdc8ff8a33724, c7630935d9a4986e8c0ed91658a781b7a77d73f7, f921335123f6620c3dce5c96fbb95f18524a021c |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket