CVE-2022-50192 Details
Description
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.
A use-after-free vulnerability has been identified in the Linux kernel's SPI subsystem, specifically within the Tegra20 SLINK implementation. The issue arises in the 'tegra_slink_remove()' function, where the SPI master is unregistered. This process decreases the reference count of the master to zero, leading to its deallocation. Consequently, when 'tspi' is used, it results in a use-after-free condition. The vulnerability has been addressed by modifying the sequence of operations: the master is now retrieved before unregistration and released after use.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/415b4ce61308f24583912d887772dfcbf97f1d20 | kernel.org | Patch |
| https://git.kernel.org/stable/c/67f77172644260482fdafc03b6025847944701e5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/800c7767e05d29656713e04532823a752e57e037 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 5.15.61 >= 5.16, < 5.18.18 >= 5.19, < 5.19.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 19, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |