Bug 2373689 (CVE-2022-50192) - CVE-2022-50192 kernel: spi: tegra20-slink: fix UAF in tegra_slink_remove()
Summary: CVE-2022-50192 kernel: spi: tegra20-slink: fix UAF in tegra_slink_remove()
Keywords:
Status: NEW
Alias: CVE-2022-50192
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:13 UTC by OSIDB Bzimport
Modified: 2025-06-18 16:51 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:13:55 UTC
In the Linux kernel, the following vulnerability has been resolved:

spi: tegra20-slink: fix UAF in tegra_slink_remove()

After calling spi_unregister_master(), the refcount of master will
be decrease to 0, and it will be freed in spi_controller_release(),
the device data also will be freed, so it will lead a UAF when using
'tspi'. To fix this, get the master before unregister and put it when
finish using it.

Comment 1 Avinash Hanwate 2025-06-18 16:44:14 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061837-CVE-2022-50192-79d9@gregkh/T


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