# CVE-2024-50051: spi: mpc52xx: Add cancel_work_sync before module remove

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-01-11T12:25:20.277Z
- Modified: 2026-06-17T08:03:27.993Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from ca632f556697d45d67ed5cada7cedf3ddfe0db4b before d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1; from ca632f556697d45d67ed5cada7cedf3ddfe0db4b before e0c6ce8424095c2da32a063d3fc027494c689817; from ca632f556697d45d67ed5cada7cedf3ddfe0db4b before cd5106c77d6d6828aa82449f01f4eb436d602a21; from ca632f556697d45d67ed5cada7cedf3ddfe0db4b before 373d55a47dc662e5e30d12ad5d334312f757c1f1; from ca632f556697d45d67ed5cada7cedf3ddfe0db4b before f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59; from ca632f556697d45d67ed5cada7cedf3ddfe0db4b before 90b72189de2cddacb26250579da0510b29a8b82b; from ca632f556697d45d67ed5cada7cedf3ddfe0db4b before 984836621aad98802d92c4a3047114cf518074c8; 3.1 (not affected: before 3.1; from 5.4.287 up to 5.4.*; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.66 up to 6.6.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 3.1 before 5.4.287; from 5.5 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.66; from 6.7 before 6.12.5; 6.13

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1> (patch)
- <https://git.kernel.org/stable/c/e0c6ce8424095c2da32a063d3fc027494c689817> (patch)
- <https://git.kernel.org/stable/c/cd5106c77d6d6828aa82449f01f4eb436d602a21> (patch)
- <https://git.kernel.org/stable/c/373d55a47dc662e5e30d12ad5d334312f757c1f1> (patch)
- <https://git.kernel.org/stable/c/f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59> (patch)
- <https://git.kernel.org/stable/c/90b72189de2cddacb26250579da0510b29a8b82b> (patch)
- <https://git.kernel.org/stable/c/984836621aad98802d92c4a3047114cf518074c8> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

- CVE List: [CVE-2024-50051](https://www.cve.org/CVERecord?id=CVE-2024-50051), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50051](https://nvd.nist.gov/vuln/detail/CVE-2024-50051), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50051 · Whole record: https://cve.day/CVE-2024-50051.json · Rebuilt by cve.day 2026-11-25T22:58:50.921Z
