CVE-2024-46896: drm/amdgpu: don't access invalid sched
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: don't access invalid sched
Since 2320c9e6a768 ("drm/sched: memset() 'job' in drmschedjobinit()") accessing job->base.sched can produce unexpected results as the initialisation of (job)->base.sched done in amdgpujoballoc is overwritten by the memset.
This commit fixes an issue when a CS would fail validation and would be rejected after job->numibs is incremented. In this case, amdgpuibfree(ring->adev, ...) will be called, which would crash the machine because the ring value is bogus.
To fix this, pass a NULL pointer to amdgpuibfree(): we can do this because the device is actually not used in this function.
The next commit will remove the ring argument completely.
(cherry picked from commit 2ae520cb12831d264ceb97c61f72c59d33c0dbd7)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.123-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.8-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 2ae520cb12831d264ceb97c61f72c59d33c0dbd7
Event History
Frequently Asked Questions
What is the severity of CVE-2024-46896?
CVE-2024-46896 is classified as a high-severity vulnerability due to its potential impact on the Linux kernel.
How do I fix CVE-2024-46896?
To remediate CVE-2024-46896, update your Linux kernel to the latest stable version where the vulnerability has been patched.
What systems are affected by CVE-2024-46896?
CVE-2024-46896 affects various versions of the Linux kernel that utilize the DRM and AMDGPU subsystems.
What are the potential consequences of CVE-2024-46896?
Exploiting CVE-2024-46896 could lead to unexpected behavior and system instability, compromising the integrity of the kernel.
When was CVE-2024-46896 published?
CVE-2024-46896 was published in 2024 following a resolution of the identified vulnerability in the Linux kernel.