CVE-2024-50061

i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition

No CVSS score yet EPSS 0.22%

Published 21 Oct 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-50061

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-50061 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.

Check my servers

Description

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.

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 12.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 22 Oct 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, before 2a21bad9964c91b34d65ba269914233720c0b1ce
affected from 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, before ea0256e393e0072e8c80fd941547807f0c28108b
affected from 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, before 687016d6a1efbfacdd2af913e2108de6b75a28d5
affected from 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, before 609366e7a06d035990df78f1562291c3bf0d4a12
Other versions: unaffected
Linux
affected 5.0
unaffected before 5.0
unaffected from 6.1.129 up to and including 6.1.*
unaffected from 6.6.57 up to and including 6.6.*
unaffected from 6.11.4 up to and including 6.11.*
unaffected 6.12 and later
Other versions: affected

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-50061 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-50061

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-50061
trivy image --scanners vuln IMAGE | grep CVE-2024-50061

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

Source: the record CVE-2024-50061 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.