CVE-2024-57984·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: i3c: dw: Fix use-after-free in dw_i3c_master driver due to race condition In dw_i3c_common_probe, &master->hj_work is bound with dw_i3c_hj_work. And dw_i3c_master_irq_handler can call dw_i3c_master_irq_handle_ibis function to start the work. If we remove the module which will call dw_i3c_common_remove to make cleanup, it will free master->base through i3c_master_unregister while the work mentioned above will be used. The sequence of operations that may lead to a UAF bug is as follows: CPU0 CPU1 | dw_i3c_hj_work dw_i3c_common_remove | i3c_master_unregister(&master->base) | device_unregister(&master->dev) | device_release | //free master->base | | i3c_master_do_daa(&master->base) | //use master->base Fix it by ensuring that the work is canceled before proceeding with the cleanup in dw_i3c_common_remove.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.2
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.2
Fixed in: 6.13.2
How to fix this CVE
Update your Linux kernel to version 6.13.2 or later to resolve a use-after-free vulnerability in the Designware I3C master driver. This vulnerability occurs when the kernel module is unloaded while asynchronous work is still in progress, potentially causing a crash or memory corruption. Apply the patch immediately if you are running kernel versions 6.13.0 through 6.13.1.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r
- Step 2: Verify if the Designware I3C driver is loaded by running: lsmod | grep i3c
- Step 3: Search system logs for kernel panics or UAF errors with: sudo dmesg | grep -i 'use-after-free\|i3c\|dw_i3c'
- Step 4: After updating, verify the new kernel version with: uname -r and confirm it is 6.13.2 or later
FAQ
What is CVE-2024-57984?
CVE-2024-57984 is a use-after-free vulnerability in the Designware I3C master driver that occurs due to improper cleanup during module removal. When the kernel module is unloaded, asynchronous work operations may still attempt to access freed memory structures, leading to system instability or kernel panic.
Is CVE-2024-57984 being actively exploited?
No, CVE-2024-57984 is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, exploitation is technically possible through crafted workloads that trigger the race condition.
What versions of Kernel are affected by CVE-2024-57984?
Linux kernel versions 6.13.0, 6.13.1, and 6.13.2 (up to the point before the patch was applied) are affected. The vulnerability was resolved in kernel 6.13.2 with the merged fix.
How do I check if my server is vulnerable to CVE-2024-57984?
Run uname -r to check your kernel version. If it shows 6.13.0 or 6.13.1, you are vulnerable. Additionally, verify if the I3C driver is active with: lsmod | grep i3c. Affected systems require immediate kernel update.
Does Defensia detect CVE-2024-57984?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-57984 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57984. Free for 1 server.
Get started free