{"id":"CVE-2024-49874","summary":"i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition\n\nIn the svc_i3c_master_probe function, &master-\u003ehj_work is bound with\nsvc_i3c_master_hj_work, &master-\u003eibi_work is bound with\nsvc_i3c_master_ibi_work. And svc_i3c_master_ibi_work  can start the\nhj_work, svc_i3c_master_irq_handler can start the ibi_work.\n\nIf we remove the module which will call svc_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                                    | svc_i3c_master_hj_work\nsvc_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 the\ncleanup in svc_i3c_master_remove.","modified":"2026-04-02T12:21:04.144959Z","published":"2024-10-21T18:01:14.762Z","related":["MGASA-2024-0344","MGASA-2024-0345","SUSE-SU-2024:3984-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-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":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49874.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/27b55724d3f781dd6e635e89dc6e2fd78fa81a00"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49874.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49874"},{"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":"87e0f28eda36c7843523aa8dd0c5dab3331e9718"},{"fixed":"56bddf543d4d7ddeff3f87b554ddacfdf086bffe"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7"},{"fixed":"4ac637122930cc4ab7e2c22e364cf3aaf96b05b1"},{"fixed":"4318998892bf8fe99f97bea18c37ae7b685af75a"},{"fixed":"27b55724d3f781dd6e635e89dc6e2fd78fa81a00"},{"fixed":"61850725779709369c7e907ae8c7c75dc7cec4f3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49874.json"}}],"schema_version":"1.7.5"}