{"id":"CVE-2024-49874","published":"2024-10-21T18:01:14Z","modified":"2026-08-05T11:40:17Z","title":"i3c: master: svc: Fix use after free vulnerability in svc_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: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition\n\nIn the svc_i3c_master_probe function, &master->hj_work is bound with\nsvc_i3c_master_hj_work, &master->ibi_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->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                                    | svc_i3c_master_hj_work\nsvc_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 the\ncleanup in svc_i3c_master_remove.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.14242,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe","tags":[]},{"url":"https://git.kernel.org/stable/c/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1","tags":[]},{"url":"https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a","tags":[]},{"url":"https://git.kernel.org/stable/c/27b55724d3f781dd6e635e89dc6e2fd78fa81a00","tags":[]},{"url":"https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3","tags":[]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":2.85},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 87e0f28eda36c7843523aa8dd0c5dab3331e9718, < 56bddf543d4d7ddeff3f87b554ddacfdf086bffe",">= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, < 4ac637122930cc4ab7e2c22e364cf3aaf96b05b1",">= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, < 4318998892bf8fe99f97bea18c37ae7b685af75a",">= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, < 27b55724d3f781dd6e635e89dc6e2fd78fa81a00",">= 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7, < 61850725779709369c7e907ae8c7c75dc7cec4f3"]},{"vendor":"Linux","product":"Linux","versions":["6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:46:33.404172Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-43836","exploited":false,"provenance":"source"}}