CVE-2024-46896
drm/amdgpu: don't access invalid sched
Check your servers for CVE-2024-46896
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-46896 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: don't access invalid sched
Since 2320c9e6a768 ("drm/sched: memset() 'job' in drm_sched_job_init()") accessing job->base.sched can produce unexpected results as the initialisation of (*job)->base.sched done in amdgpu_job_alloc is overwritten by the memset.
This commit fixes an issue when a CS would fail validation and would be rejected after job->num_ibs is incremented. In this case, amdgpu_ib_free(ring->adev, ...) will be called, which would crash the machine because the ring value is bogus.
To fix this, pass a NULL pointer to amdgpu_ib_free(): 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)
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 166df51487f46b6e997dfeea7ca0c2a970853f07, before 65501a4fd84ecdc0af863dbb37759242aab9f2dd affected from 87210234e5a273ebf9c4110a6aa82b8221478daa, before da6b2c626ae73c303378ce9eaf6e3eaf16c9925a affected from 2da108b4b5fb7ec04d7e951418ed80e97f7c35ad, before 67291d601f2b032062b1b2f60ffef1b63e10094c affected from 2320c9e6a768d135c7b0039995182bb1a4e4fd22, before a93b1020eb9386d7da11608477121b10079c076a
Other versions: unaffected
|
| Linux |
affected from 6.1.120, before 6.1.122 affected from 6.6.66, before 6.6.68 affected from 6.12.5, before 6.12.7
Other versions: unaffected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-46896 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-46896
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-46896
trivy image --scanners vuln IMAGE | grep CVE-2024-46896
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/65501a4fd84ecdc0af863dbb37759242aab9f2dd git.kernel.org
- https://git.kernel.org/stable/c/da6b2c626ae73c303378ce9eaf6e3eaf16c9925a git.kernel.org
- https://git.kernel.org/stable/c/67291d601f2b032062b1b2f60ffef1b63e10094c git.kernel.org
- https://git.kernel.org/stable/c/a93b1020eb9386d7da11608477121b10079c076a git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
Source: the record CVE-2024-46896 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse