Bug 2337126 (CVE-2024-50051) - CVE-2024-50051 kernel: spi: mpc52xx: Add cancel_work_sync before module remove
Summary: CVE-2024-50051 kernel: spi: mpc52xx: Add cancel_work_sync before module remove
Keywords:
Status: NEW
Alias: CVE-2024-50051
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-11 13:03 UTC by OSIDB Bzimport
Modified: 2025-02-05 17:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-11 13:03:21 UTC
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.

Comment 1 Avinash Hanwate 2025-01-13 06:31:14 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011122-CVE-2024-50051-d822@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.