CVE-2024-38629: dmaengine: idxd: Avoid unnecessary destruction of file_ida
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Avoid unnecessary destruction of fileida
fileida is allocated during cdev open and is freed accordingly during cdev release. This sequence is guaranteed by driver file operations. Therefore, there is no need to destroy an already empty fileida when the WQ cdev is removed.
Worse, idafree() in cdev release may happen after destruction of fileida per WQ cdev. This can lead to accessing an id in fileida after it has been destroyed, resulting in a kernel panic.
Remove idadestroy(&fileida) to address these issues.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Avoid unnecessary destruction of fileida
The Linux kernel CVE team has assigned CVE-2024-38629 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024062141-CVE-2024-38629-47c6@gregkh/T
— Red Hat
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-38629?
CVE-2024-38629 has not been assigned a specific CVSS score but addresses a low-risk issue in the Linux kernel's dmaengine.
How do I fix CVE-2024-38629?
To fix CVE-2024-38629, update the kernel to version 6.6.33 or later for Red Hat and specific versions for Debian as outlined in the patch.
Which versions of the Linux kernel are affected by CVE-2024-38629?
CVE-2024-38629 affects kernel versions prior to 6.6.33 for Red Hat and several versions including 5.10.223-1 and 6.12.13-1 for Debian.
Is there any workaround available for CVE-2024-38629?
No official workaround is mentioned for CVE-2024-38629; the recommended action is to apply the appropriate kernel updates.
Where can I find more information about CVE-2024-38629?
More detailed information regarding CVE-2024-38629 can typically be found in Linux kernel patch notes and security advisories.