{"id":"CVE-2024-50051","state":"PUBLISHED","title":"spi: mpc52xx: Add cancel_work_sync before module remove","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: mpc52xx: Add cancel_work_sync before module remove\n\nIf we remove the module which will call mpc52xx_spi_remove\nit will free 'ms' through spi_unregister_controller.\nwhile the work ms->work will be used. The sequence of operations\nthat may lead to a UAF bug.\n\nFix it by ensuring that the work is canceled before proceeding with\nthe cleanup in mpc52xx_spi_remove.","publishedAt":"2025-01-11T12:25:20.277Z","updatedAt":"2026-05-11T20:44:31.692Z","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":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"e0c6ce8424095c2da32a063d3fc027494c689817","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"cd5106c77d6d6828aa82449f01f4eb436d602a21","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"373d55a47dc662e5e30d12ad5d334312f757c1f1","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"90b72189de2cddacb26250579da0510b29a8b82b","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"984836621aad98802d92c4a3047114cf518074c8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-mpc52xx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.1","versionType":"semver"},{"version":"5.4.287","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.231","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.174","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.66","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.5","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-mpc52xx.c"]}],"references":["https://git.kernel.org/stable/c/d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1","https://git.kernel.org/stable/c/e0c6ce8424095c2da32a063d3fc027494c689817","https://git.kernel.org/stable/c/cd5106c77d6d6828aa82449f01f4eb436d602a21","https://git.kernel.org/stable/c/373d55a47dc662e5e30d12ad5d334312f757c1f1","https://git.kernel.org/stable/c/f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59","https://git.kernel.org/stable/c/90b72189de2cddacb26250579da0510b29a8b82b","https://git.kernel.org/stable/c/984836621aad98802d92c4a3047114cf518074c8","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50051.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50051","state":"PUBLISHED","datePublished":"2025-01-11T12:25:20.277Z","dateUpdated":"2026-05-11T20:44:31.692Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-09T09:50:31.785Z"},"containers":{"cna":{"title":"spi: mpc52xx: Add cancel_work_sync before module remove","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: mpc52xx: Add cancel_work_sync before module remove\n\nIf we remove the module which will call mpc52xx_spi_remove\nit will free 'ms' through spi_unregister_controller.\nwhile the work ms->work will be used. The sequence of operations\nthat may lead to a UAF bug.\n\nFix it by ensuring that the work is canceled before proceeding with\nthe cleanup in mpc52xx_spi_remove."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"e0c6ce8424095c2da32a063d3fc027494c689817","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"cd5106c77d6d6828aa82449f01f4eb436d602a21","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"373d55a47dc662e5e30d12ad5d334312f757c1f1","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"90b72189de2cddacb26250579da0510b29a8b82b","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","status":"affected","lessThan":"984836621aad98802d92c4a3047114cf518074c8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-mpc52xx.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.1","versionType":"semver"},{"version":"5.4.287","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.231","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.174","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.120","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.66","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.5","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-mpc52xx.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1"},{"url":"https://git.kernel.org/stable/c/e0c6ce8424095c2da32a063d3fc027494c689817"},{"url":"https://git.kernel.org/stable/c/cd5106c77d6d6828aa82449f01f4eb436d602a21"},{"url":"https://git.kernel.org/stable/c/373d55a47dc662e5e30d12ad5d334312f757c1f1"},{"url":"https://git.kernel.org/stable/c/f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59"},{"url":"https://git.kernel.org/stable/c/90b72189de2cddacb26250579da0510b29a8b82b"},{"url":"https://git.kernel.org/stable/c/984836621aad98802d92c4a3047114cf518074c8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:44:31.692Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"5.4.287"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"5.10.231"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"5.15.174"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.1.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.6.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.12.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-50051","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-02-10T17:12:07.926078Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-10T17:21:06.363Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:43:19.203Z"}}]}}}