{"id":"CVE-2022-50192","summary":"spi: tegra20-slink: fix UAF in tegra_slink_remove()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: tegra20-slink: fix UAF in tegra_slink_remove()\n\nAfter calling spi_unregister_master(), the refcount of master will\nbe decrease to 0, and it will be freed in spi_controller_release(),\nthe device data also will be freed, so it will lead a UAF when using\n'tspi'. To fix this, get the master before unregister and put it when\nfinish using it.","modified":"2026-04-03T13:14:42.148603725Z","published":"2025-06-18T11:03:37.549Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50192.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/415b4ce61308f24583912d887772dfcbf97f1d20"},{"type":"WEB","url":"https://git.kernel.org/stable/c/67f77172644260482fdafc03b6025847944701e5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/800c7767e05d29656713e04532823a752e57e037"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50192.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50192"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"26c863418221344b1cfb8e6c11116b2b81144281"},{"fixed":"415b4ce61308f24583912d887772dfcbf97f1d20"},{"fixed":"800c7767e05d29656713e04532823a752e57e037"},{"fixed":"67f77172644260482fdafc03b6025847944701e5"},{"fixed":"7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50192.json"}}],"schema_version":"1.7.5"}