CVE-2024-35950: drm/client: Fully protect modes[] with dev->mode_config.mutex
In the Linux kernel, the following vulnerability has been resolved:
drm/client: Fully protect modes[] with dev->modeconfig.mutex
The Linux kernel CVE team has assigned CVE-2024-35950 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052015-CVE-2024-35950-41bf@gregkh/T
Other sources
In the Linux kernel, the following vulnerability has been resolved:
drm/client: Fully protect modes[] with dev->modeconfig.mutex
The modes[] array contains pointers to modes on the connectors' mode lists, which are protected by dev->modeconfig.mutex. Thus we need to extend modes[] the same protection or by the time we use it the elements may already be pointing to freed/reused memory.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.4.275 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.10.216 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.15.156 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.87 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.28 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8.7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.9
Event History
Frequently Asked Questions
What is the severity of CVE-2024-35950?
CVE-2024-35950 has been assigned a medium severity rating.
How do I fix CVE-2024-35950?
To mitigate CVE-2024-35950, upgrade to the kernel versions 5.4.275, 5.10.216, 5.15.156, 6.1.87, 6.6.28, 6.8.7, or 6.9 as appropriate.
Which Linux kernel versions are affected by CVE-2024-35950?
CVE-2024-35950 affects Linux kernel versions prior to 5.4.275, 5.10.216, 5.15.156, 6.1.87, 6.6.28, and 6.9.
What is the impact of CVE-2024-35950?
CVE-2024-35950 could potentially allow attackers to exploit weaknesses related to the DRM client modes in the Linux kernel.
Is there a workaround for CVE-2024-35950?
There is no specific workaround for CVE-2024-35950; updating to a patched kernel is the recommended solution.