{"id":"CVE-2022-50192","state":"PUBLISHED","title":"spi: tegra20-slink: fix UAF in tegra_slink_remove()","description":"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.","publishedAt":"2025-06-18T11:03:37.549Z","updatedAt":"2026-05-11T19:14:34.267Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"415b4ce61308f24583912d887772dfcbf97f1d20","versionType":"git"},{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"800c7767e05d29656713e04532823a752e57e037","versionType":"git"},{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"67f77172644260482fdafc03b6025847944701e5","versionType":"git"},{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-tegra20-slink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.61","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-tegra20-slink.c"]}],"references":["https://git.kernel.org/stable/c/415b4ce61308f24583912d887772dfcbf97f1d20","https://git.kernel.org/stable/c/800c7767e05d29656713e04532823a752e57e037","https://git.kernel.org/stable/c/67f77172644260482fdafc03b6025847944701e5","https://git.kernel.org/stable/c/7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50192.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50192","state":"PUBLISHED","datePublished":"2025-06-18T11:03:37.549Z","dateUpdated":"2026-05-11T19:14:34.267Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.428Z"},"containers":{"cna":{"title":"spi: tegra20-slink: fix UAF in tegra_slink_remove()","descriptions":[{"lang":"en","value":"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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"415b4ce61308f24583912d887772dfcbf97f1d20","versionType":"git"},{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"800c7767e05d29656713e04532823a752e57e037","versionType":"git"},{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"67f77172644260482fdafc03b6025847944701e5","versionType":"git"},{"version":"26c863418221344b1cfb8e6c11116b2b81144281","status":"affected","lessThan":"7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-tegra20-slink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.61","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-tegra20-slink.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/415b4ce61308f24583912d887772dfcbf97f1d20"},{"url":"https://git.kernel.org/stable/c/800c7767e05d29656713e04532823a752e57e037"},{"url":"https://git.kernel.org/stable/c/67f77172644260482fdafc03b6025847944701e5"},{"url":"https://git.kernel.org/stable/c/7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:14:34.267Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.18.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.19.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}