CVE-2023-52857: drm/mediatek: Fix coverity issue with unintentional integer overflow
In the Linux kernel, the following vulnerability has been resolved:
drm/mediatek: Fix coverity issue with unintentional integer overflow
1. Instead of multiplying 2 variable of different types. Change to assign a value of one variable and then multiply the other variable.
2. Add a int variable for multiplier calculation instead of calculating different types multiplier with dmaaddrt variable directly.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.14 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.132 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.5.12 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.2 - Upgrade
Upgrade
ubuntu/linux-nvidia-6.5to a version that resolves this vulnerability.Fixed in 6.5.0-1014.14 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.133-1Fixed in 6.6.8-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.137-1~deb11u1 - Compensating control
In drm/mediatek, use an int variable to hold the multiplier: assign one value to the variable, then multiply by the other variable instead of directly multiplying values of different types with a dma_addr_t variable.
Event History
Frequently Asked Questions
What is the severity of CVE-2023-52857?
CVE-2023-52857 has been rated as a medium severity vulnerability.
How do I fix CVE-2023-52857?
To fix CVE-2023-52857, update your Linux kernel to versions 6.5.12 or later and ensure you are on 6.6.2 or earlier.
Which Linux kernel versions are affected by CVE-2023-52857?
CVE-2023-52857 affects Linux kernel versions between 5.13.12 and 6.6.2.
What type of vulnerability is CVE-2023-52857?
CVE-2023-52857 is an integer overflow vulnerability in the Linux kernel's DRM Mediatek subsystem.
Is CVE-2023-52857 a local or remote vulnerability?
CVE-2023-52857 is primarily a local vulnerability that requires local access to exploit.