{"id":"CVE-2024-50061","published":"2024-10-21T19:39:50Z","modified":"2026-05-11T20:44:39Z","title":"i3c: master: cdns: Fix use after free vulnerability in cdns_i3c_master Driver Due to Race Condition","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00284,"percentile":0.1347,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2a21bad9964c91b34d65ba269914233720c0b1ce","tags":[]},{"url":"https://git.kernel.org/stable/c/ea0256e393e0072e8c80fd941547807f0c28108b","tags":[]},{"url":"https://git.kernel.org/stable/c/687016d6a1efbfacdd2af913e2108de6b75a28d5","tags":[]},{"url":"https://git.kernel.org/stable/c/609366e7a06d035990df78f1562291c3bf0d4a12","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[]}],"priority":{"score":2.7,"factors":[{"name":"EPSS percentile","points":2.69}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, < 2a21bad9964c91b34d65ba269914233720c0b1ce",">= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, < ea0256e393e0072e8c80fd941547807f0c28108b",">= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, < 687016d6a1efbfacdd2af913e2108de6b75a28d5",">= 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0, < 609366e7a06d035990df78f1562291c3bf0d4a12"]},{"vendor":"Linux","product":"Linux","versions":["5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:22:52.478098Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-44777","exploited":false,"provenance":"source"}}