CVE-2022-50192

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

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 26c863418221344b1cfb8e6c11116b2b81144281 to before 415b4ce61308f24583912d887772dfcbf97f1d20Affected
  • 26c863418221344b1cfb8e6c11116b2b81144281 to before 800c7767e05d29656713e04532823a752e57e037Affected
  • 26c863418221344b1cfb8e6c11116b2b81144281 to before 67f77172644260482fdafc03b6025847944701e5Affected
  • 26c863418221344b1cfb8e6c11116b2b81144281 to before 7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.61 through 5.15.*Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.