{"id":"CVE-2024-49874","state":"PUBLISHED","title":"i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition","description":"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.","publishedAt":"2024-10-21T18:01:14.762Z","updatedAt":"2026-08-05T11:40:17.116Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"87e0f28eda36c7843523aa8dd0c5dab3331e9718","status":"affected","lessThan":"56bddf543d4d7ddeff3f87b554ddacfdf086bffe","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"4ac637122930cc4ab7e2c22e364cf3aaf96b05b1","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"4318998892bf8fe99f97bea18c37ae7b685af75a","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"27b55724d3f781dd6e635e89dc6e2fd78fa81a00","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"61850725779709369c7e907ae8c7c75dc7cec4f3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/svc-i3c-master.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.14","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11.3","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/svc-i3c-master.c"]}],"references":["https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe","https://git.kernel.org/stable/c/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1","https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a","https://git.kernel.org/stable/c/27b55724d3f781dd6e635e89dc6e2fd78fa81a00","https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/49xxx/CVE-2024-49874.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-49874","state":"PUBLISHED","datePublished":"2024-10-21T18:01:14.762Z","dateUpdated":"2026-08-05T11:40:17.116Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T12:17:06.020Z"},"containers":{"cna":{"title":"i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"87e0f28eda36c7843523aa8dd0c5dab3331e9718","status":"affected","lessThan":"56bddf543d4d7ddeff3f87b554ddacfdf086bffe","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"4ac637122930cc4ab7e2c22e364cf3aaf96b05b1","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"4318998892bf8fe99f97bea18c37ae7b685af75a","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"27b55724d3f781dd6e635e89dc6e2fd78fa81a00","versionType":"git"},{"version":"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7","status":"affected","lessThan":"61850725779709369c7e907ae8c7c75dc7cec4f3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/svc-i3c-master.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.14","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11.3","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/svc-i3c-master.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe"},{"url":"https://git.kernel.org/stable/c/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1"},{"url":"https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a"},{"url":"https://git.kernel.org/stable/c/27b55724d3f781dd6e635e89dc6e2fd78fa81a00"},{"url":"https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The UAF is triggered through local operations on the device — driver unbind/module removal via sysfs or rmmod on the platform device — combined with in-kernel workqueue activity on the local I3C controller. No network or remote protocol data reaches this path.\nAC:L - The attacker drives one side of the race directly (repeatable bind/unbind cycles) while the hot-join work is generated by ordinary I3C bus activity, and the window can be widened and retried indefinitely until it is won; per kernel scoring practice a UAF race whose triggering side is attacker-initiated is Low.\nPR:L - The teardown path is reached from local userspace device-management interfaces on the I3C master device, and no authentication beyond ordinary local access to the device/driver interfaces is required to keep re-triggering the removal path; scored at the lower privilege tier consistent with comparable driver-removal UAFs.\nUI:N - No victim action is needed — the removal path and the hot-join work both proceed automatically once the unbind is issued and a hot-join IBI arrives.\nS:U - The corruption and its consequences are confined to the kernel's own memory and security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The use-after-free lets `i3c_master_do_daa()` read `master->base`, `master->bus`, and `master->ops` out of a freed and potentially re-allocated slab object, so an attacker who grooms the heap can read back kernel memory contents through the stale object.\nI:H - The freed object is dereferenced for an indirect call (`master->ops->do_daa(master)`) and for lock manipulation, so heap spraying over the freed allocation gives a control-flow hijack and arbitrary-write primitive rather than a mere stale read.\nA:H - Even unexploited, the use-after-free corrupts kernel state and dereferences freed pointers, reliably producing an oops or panic and taking down the system."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:40:17.116Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.10.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.11.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-49874","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-22T13:46:33.404172Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-22T13:48:51.538Z"}}]}}}