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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2025-01-11T12:25:20.277Z
- **Modified:** 2026-06-17T08:03:27.993Z

## Who should check

- Anyone running Linux \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< e0c6ce8424095c2da32a063d3fc027494c689817; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< cd5106c77d6d6828aa82449f01f4eb436d602a21; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 373d55a47dc662e5e30d12ad5d334312f757c1f1; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 90b72189de2cddacb26250579da0510b29a8b82b; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 984836621aad98802d92c4a3047114cf518074c8
- Anyone running Linux 3.1

## 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.

## Affected and fixed versions

- Linux: \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< e0c6ce8424095c2da32a063d3fc027494c689817; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< cd5106c77d6d6828aa82449f01f4eb436d602a21; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 373d55a47dc662e5e30d12ad5d334312f757c1f1; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 90b72189de2cddacb26250579da0510b29a8b82b; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 984836621aad98802d92c4a3047114cf518074c8 (cvelist)
- Linux: 3.1 (cvelist)

## Mitigation

- Upgrade Linux to 984836621aad98802d92c4a3047114cf518074c8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50051. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50051.md
Affected: Linux >= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, < d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1; >= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, < e0c6ce8424095c2da32a063d3fc027494c689817; >= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, < cd5106c77d6d6828aa82449f01f4eb436d602a21; >= ca632f556697d45d67ed5ca…
Fixed in: Linux 373d55a47dc662e5e30d12ad5d334312f757c1f1, Linux 90b72189de2cddacb26250579da0510b29a8b82b, Linux 984836621aad98802d92c4a3047114cf518074c8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50051 being exploited?

There is no confirmed exploitation: CVE-2024-50051 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-50051?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50051?

Linux \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< e0c6ce8424095c2da32a063d3fc027494c689817; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< cd5106c77d6d6828aa82449f01f4eb436d602a21; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 373d55a47dc662e5e30d12ad5d334312f757c1f1; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 90b72189de2cddacb26250579da0510b29a8b82b; \>= ca632f556697d45d67ed5cada7cedf3ddfe0db4b, \< 984836621aad98802d92c4a3047114cf518074c8; Linux 3.1.

### Is there a fix for CVE-2024-50051?

Yes. Fixed in Linux 373d55a47dc662e5e30d12ad5d334312f757c1f1, Linux 90b72189de2cddacb26250579da0510b29a8b82b, Linux 984836621aad98802d92c4a3047114cf518074c8. Upgrade Linux to 984836621aad98802d92c4a3047114cf518074c8 or later.

### How do I check if I'm affected by CVE-2024-50051?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50051>

HTML: <https://flawdb.com/CVE-2024-50051> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50051>
