{"schema_version":"1.9.0","id":"CVE-2022-50192","published":"2025-06-18T11:03:37.549Z","modified":"2026-08-12T03:51:43.355482242Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"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.","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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.18.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"5.19.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50192.json"}}],"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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50192.json"}}