CVE-2024-50061·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition In the cdns_i3c_master_probe function, &master->hj_work is bound with cdns_i3c_master_hj. And cdns_i3c_master_interrupt can call cnds_i3c_master_demux_ibis function to start the work. If we remove the module which will call cdns_i3c_master_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 | cdns_i3c_master_hj cdns_i3c_master_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 cdns_i3c_master_remove.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.4
- Published
- 2024-10-21
Affected versions
From: 6.7
Until: 6.11.4
Fixed in: 6.11.4
How to fix this CVE
Update your Linux kernel to version 6.11.4 or later to patch a use-after-free vulnerability in the cdns_i3c_master driver that can be triggered during module removal. This race condition allows freed memory to be accessed by delayed work handlers, potentially leading to kernel crashes or code execution. Apply the update immediately if you are running kernel versions 6.7 through 6.11.3.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check current kernel version with: uname -r
- Step 2: Verify if cdns_i3c_master module is loaded: lsmod | grep cdns_i3c
- Step 3: Search kernel logs for UAF or i3c-related errors: sudo journalctl -u kernel | grep -i 'use.*after.*free\|cdns_i3c\|kasan' | tail -50
- Step 4: Confirm the patch is applied by checking kernel config: grep -i 'CONFIG_I3C' /boot/config-$(uname -r) and verify kernel version is 6.11.4 or later
FAQ
What is CVE-2024-50061?
CVE-2024-50061 is a use-after-free vulnerability in the Linux kernel's cdns_i3c_master driver that occurs when a delayed work handler attempts to access memory that has already been freed during module removal. This race condition between device cleanup and asynchronous work execution can lead to kernel crashes or privilege escalation.
Is CVE-2024-50061 being actively exploited?
No, there is no evidence that CVE-2024-50061 is being actively exploited in the wild, and no public exploits are available. However, the vulnerability is high-severity and should be patched promptly as part of regular maintenance.
What versions of Kernel are affected by CVE-2024-50061?
Kernel versions 6.7 through 6.11.3 are vulnerable. The fix was released in version 6.11.4 and backported to stable branches.
How do I check if my server is vulnerable to CVE-2024-50061?
Run 'uname -r' to check your kernel version. If it falls between 6.7 and 6.11.3, and 'lsmod | grep cdns_i3c' shows the module is loaded, your system is vulnerable.
Does Defensia detect CVE-2024-50061?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel package is installed on a monitored server, CVE-2024-50061 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2a21bad9964c91b34d65ba269914233720c0b1ce
- https://git.kernel.org/stable/c/609366e7a06d035990df78f1562291c3bf0d4a12
- https://git.kernel.org/stable/c/687016d6a1efbfacdd2af913e2108de6b75a28d5
- https://git.kernel.org/stable/c/ea0256e393e0072e8c80fd941547807f0c28108b
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-50061. Free for 1 server.
Get started free