{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-50051","id":"CVE-2024-50051","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\n","descriptionLong":"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.","published":"2025-01-11T12:25:20.277Z","updated":"2026-10-28T02:30:40.548466049Z","reserved":"2025-01-09T09:50:31.785Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","lessThan":"d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1","status":"affected","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","lessThan":"e0c6ce8424095c2da32a063d3fc027494c689817","status":"affected","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","lessThan":"cd5106c77d6d6828aa82449f01f4eb436d602a21","status":"affected","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","lessThan":"373d55a47dc662e5e30d12ad5d334312f757c1f1","status":"affected","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","lessThan":"f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59","status":"affected","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","lessThan":"90b72189de2cddacb26250579da0510b29a8b82b","status":"affected","versionType":"git"},{"version":"ca632f556697d45d67ed5cada7cedf3ddfe0db4b","lessThan":"984836621aad98802d92c4a3047114cf518074c8","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.1","status":"affected"},{"version":"0","lessThan":"3.1","status":"unaffected","versionType":"semver"},{"version":"5.4.287","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.231","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.174","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.120","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.66","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.5","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e0c6ce8424095c2da32a063d3fc027494c689817","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cd5106c77d6d6828aa82449f01f4eb436d602a21","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/373d55a47dc662e5e30d12ad5d334312f757c1f1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/90b72189de2cddacb26250579da0510b29a8b82b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/984836621aad98802d92c4a3047114cf518074c8","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50051.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50051","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00258,"epssPercentile":0.17807,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-50051","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50051","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-50051","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-50051","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}