# CVE-2024-50051: spi: mpc52xx: Add cancel\_work\_sync before module remove

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-01-11 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-50051, DEBIAN-CVE-2024-50051
- Record: https://cvemate.com/vulnerability/CVE-2024-50051 · JSON: https://cvemate.com/vulnerability/CVE-2024-50051/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

spi: mpc52xx: Add cancel_work_sync before module remove

If we remove the module which will call mpc52xx_spi_remove
it will free 'ms' through spi_unregister_controller.
while the work ms->work will be used. The sequence of operations
that may lead to a UAF bug.

Fix it by ensuring that the work is canceled before proceeding with
the cleanup in mpc52xx_spi_remove.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.258%, percentile 18.594%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 139)

- debian linux (Debian): \< 6.1.123-1 \| \< 6.12.5-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.4.0-272.306 \| \< 4.15.0-241.253 \| \< 5.4.0-211.231 \| \< 5.15.0-135.146 \| \< 6.8.0-58.60
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1147.153 \| \< 4.4.0-1185.200 \| \< 4.15.0-1184.197 \| \< 5.4.0-1142.152 \| \< 5.15.0-1080.87 \| \< 6.8.0-1027.29
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1080.87~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1142.152~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1027.29~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2122.128 \| All versions (No fix recorded) \| \< 5.4.0-1142.153+fips1 \| \< 5.15.0-1080.87+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1184.197~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1192.207~14.04.1 \| \< 4.15.0-1192.207~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1147.154 \| \< 5.15.0-1084.93 \| \< 6.8.0-1027.32
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1192.207
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 54)

- <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>
- <https://ubuntu.com/security/CVE-2024-50051>
- <https://www.cve.org/CVERecord?id=CVE-2024-50051>
- <https://git.kernel.org/linus/984836621aad98802d92c4a3047114cf518074c8>
- <https://ubuntu.com/security/notices/USN-7379-1>
- <https://ubuntu.com/security/notices/USN-7380-1>
- <https://ubuntu.com/security/notices/USN-7381-1>
- <https://ubuntu.com/security/notices/USN-7382-1>
- <https://ubuntu.com/security/notices/USN-7387-1>
- <https://ubuntu.com/security/notices/USN-7388-1>
- <https://ubuntu.com/security/notices/USN-7389-1>
- <https://ubuntu.com/security/notices/USN-7390-1>
- <https://ubuntu.com/security/notices/USN-7387-2>

---

Data as of 2026-12-05T06:42:58.064Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
