{"id":"CVE-2024-50061","state":"PUBLISHED","title":"i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition","description":"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->hj_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->base 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->base) |\ndevice_unregister(&master->dev)      |\ndevice_release                       |\n//free master->base                  |\n                                     | i3c_master_do_daa(&master->base)\n                                     | //use master->base\n\nFix it by ensuring that the work is canceled before proceeding with\nthe cleanup in cdns_i3c_master_remove.","publishedAt":"2024-10-21T19:39:50.415Z","updatedAt":"2026-05-11T20:44:39.713Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"2a21bad9964c91b34d65ba269914233720c0b1ce","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"ea0256e393e0072e8c80fd941547807f0c28108b","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"687016d6a1efbfacdd2af913e2108de6b75a28d5","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"609366e7a06d035990df78f1562291c3bf0d4a12","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/i3c-master-cdns.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"6.1.129","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.57","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.4","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/i3c-master-cdns.c"]}],"references":["https://git.kernel.org/stable/c/2a21bad9964c91b34d65ba269914233720c0b1ce","https://git.kernel.org/stable/c/ea0256e393e0072e8c80fd941547807f0c28108b","https://git.kernel.org/stable/c/687016d6a1efbfacdd2af913e2108de6b75a28d5","https://git.kernel.org/stable/c/609366e7a06d035990df78f1562291c3bf0d4a12","https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50061.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50061","state":"PUBLISHED","datePublished":"2024-10-21T19:39:50.415Z","dateUpdated":"2026-05-11T20:44:39.713Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T19:36:19.939Z"},"containers":{"cna":{"title":"i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition","descriptions":[{"lang":"en","value":"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->hj_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->base 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->base) |\ndevice_unregister(&master->dev)      |\ndevice_release                       |\n//free master->base                  |\n                                     | i3c_master_do_daa(&master->base)\n                                     | //use master->base\n\nFix it by ensuring that the work is canceled before proceeding with\nthe cleanup in cdns_i3c_master_remove."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"2a21bad9964c91b34d65ba269914233720c0b1ce","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"ea0256e393e0072e8c80fd941547807f0c28108b","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"687016d6a1efbfacdd2af913e2108de6b75a28d5","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"609366e7a06d035990df78f1562291c3bf0d4a12","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/i3c-master-cdns.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"6.1.129","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.57","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.4","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/i3c-master-cdns.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2a21bad9964c91b34d65ba269914233720c0b1ce"},{"url":"https://git.kernel.org/stable/c/ea0256e393e0072e8c80fd941547807f0c28108b"},{"url":"https://git.kernel.org/stable/c/687016d6a1efbfacdd2af913e2108de6b75a28d5"},{"url":"https://git.kernel.org/stable/c/609366e7a06d035990df78f1562291c3bf0d4a12"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:44:39.713Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1.129"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.6.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.11.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-50061","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-22T13:22:52.478098Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-22T13:28:42.185Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:31:38.673Z"}}]}}}