CVE-2024-50051

spi: mpc52xx: Add cancel_work_sync before module remove

High · published January 11, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
16.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00258 · 16.5th percentile
Published
2025-01-11T12:25Z
EPSS history
Timeline
  • 11 JAN 12:25Z
    spi: mpc52xx: Add cancel_work_sync before module remove
    cvelistv5