{"id":"CVE-2024-50061","summary":"i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition\n\nIn the cdns_i3c_master_probe function, &master-\u003ehj_work is bound with\ncdns_i3c_master_hj. And cdns_i3c_master_interrupt can call\ncnds_i3c_master_demux_ibis function to start the work.\n\nIf we remove the module which will call cdns_i3c_master_remove to\nmake cleanup, it will free master-\u003ebase through i3c_master_unregister\nwhile the work mentioned above will be used. The sequence of operations\nthat may lead to a UAF bug is as follows:\n\nCPU0                                      CPU1\n\n                                     | cdns_i3c_master_hj\ncdns_i3c_master_remove               |\ni3c_master_unregister(&master-\u003ebase) |\ndevice_unregister(&master-\u003edev)      |\ndevice_release                       |\n//free master-\u003ebase                  |\n                                     | i3c_master_do_daa(&master-\u003ebase)\n                                     | //use master-\u003ebase\n\nFix it by ensuring that the work is canceled before proceeding with\nthe cleanup in cdns_i3c_master_remove.","modified":"2026-04-16T04:39:27.622351962Z","published":"2024-10-21T19:39:50.415Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3984-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50061.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2a21bad9964c91b34d65ba269914233720c0b1ce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/609366e7a06d035990df78f1562291c3bf0d4a12"},{"type":"WEB","url":"https://git.kernel.org/stable/c/687016d6a1efbfacdd2af913e2108de6b75a28d5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea0256e393e0072e8c80fd941547807f0c28108b"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50061.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50061"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0"},{"fixed":"2a21bad9964c91b34d65ba269914233720c0b1ce"},{"fixed":"ea0256e393e0072e8c80fd941547807f0c28108b"},{"fixed":"687016d6a1efbfacdd2af913e2108de6b75a28d5"},{"fixed":"609366e7a06d035990df78f1562291c3bf0d4a12"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50061.json"}}],"schema_version":"1.7.5"}