Bug 2373636 (CVE-2022-50190) - CVE-2022-50190 kernel: spi: Fix simplification of devm_spi_register_controller
Summary: CVE-2022-50190 kernel: spi: Fix simplification of devm_spi_register_controller
Keywords:
Status: NEW
Alias: CVE-2022-50190
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-06-18 12:11 UTC by OSIDB Bzimport
Modified: 2025-06-19 02:43 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:11:40 UTC
In the Linux kernel, the following vulnerability has been resolved:

spi: Fix simplification of devm_spi_register_controller

This reverts commit 59ebbe40fb51 ("spi: simplify
devm_spi_register_controller").

If devm_add_action() fails in devm_add_action_or_reset(),
devm_spi_unregister() will be called, it decreases the
refcount of 'ctlr->dev' to 0, then it will cause uaf in
the drivers that calling spi_put_controller() in error path.

Comment 1 Avinash Hanwate 2025-06-19 00:03:58 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061836-CVE-2022-50190-5833@gregkh/T


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