7.8high
spi: mpc52xx: Add cancel_work_sync before module remove
- Severity
- 7.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | NVD |
All scores
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: spi: mpc52xx: Agregar cancel_work_sync antes de eliminar el módulo Si eliminamos el módulo que llamará a mpc52xx_spi_remove, liberará 'ms' a través de spi_unregister_controller. mientras que se utilizará el trabajo ms->work. La secuencia de operaciones que puede provocar un error de UAF. Arréglelo asegurándose de que el trabajo se cancele antes de continuar con la desinfección en mpc52xx_spi_remove.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-50051 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-50051 changed 2026-06-17 | Public domain |