{"id":"CVE-2022-50190","summary":"spi: Fix simplification of devm_spi_register_controller","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: Fix simplification of devm_spi_register_controller\n\nThis reverts commit 59ebbe40fb51 (\"spi: simplify\ndevm_spi_register_controller\").\n\nIf devm_add_action() fails in devm_add_action_or_reset(),\ndevm_spi_unregister() will be called, it decreases the\nrefcount of 'ctlr-\u003edev' to 0, then it will cause uaf in\nthe drivers that calling spi_put_controller() in error path.","modified":"2026-04-03T13:14:35.898487Z","published":"2025-06-18T11:03:36.320Z","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-50190.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/34bab623ebfc08398499e463396b81abb4abe01e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c6bd448442b6c3f6843ac70d57201a13478dd47"},{"type":"WEB","url":"https://git.kernel.org/stable/c/43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/445fb9c19cf45bd9472fd9babaa31c5e6c7d2720"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50190.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50190"},{"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":"59ebbe40fb51e307032ae7f63b2749fad2d4635a"},{"fixed":"445fb9c19cf45bd9472fd9babaa31c5e6c7d2720"},{"fixed":"34bab623ebfc08398499e463396b81abb4abe01e"},{"fixed":"3c6bd448442b6c3f6843ac70d57201a13478dd47"},{"fixed":"43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50190.json"}}],"schema_version":"1.7.5"}