{"id":"CVE-2024-50051","summary":"spi: mpc52xx: Add cancel_work_sync before module remove","details":"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-\u003ework 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.","modified":"2026-04-16T04:36:11.668239732Z","published":"2025-01-11T12:25:20.277Z","related":["SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0556-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:0577-1","SUSE-SU-2025:0577-2","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7379-2","USN-7380-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50051.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/373d55a47dc662e5e30d12ad5d334312f757c1f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/90b72189de2cddacb26250579da0510b29a8b82b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/984836621aad98802d92c4a3047114cf518074c8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cd5106c77d6d6828aa82449f01f4eb436d602a21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0c6ce8424095c2da32a063d3fc027494c689817"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50051.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50051"},{"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":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b"},{"fixed":"d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1"},{"fixed":"e0c6ce8424095c2da32a063d3fc027494c689817"},{"fixed":"cd5106c77d6d6828aa82449f01f4eb436d602a21"},{"fixed":"373d55a47dc662e5e30d12ad5d334312f757c1f1"},{"fixed":"f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59"},{"fixed":"90b72189de2cddacb26250579da0510b29a8b82b"},{"fixed":"984836621aad98802d92c4a3047114cf518074c8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50051.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}