{"id":"CVE-2022-50190","published":"2025-06-18T11:03:36Z","modified":"2026-05-11T19:14:31Z","title":"spi: Fix simplification of devm_spi_register_controller","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->dev' to 0, then it will cause uaf in\nthe drivers that calling spi_put_controller() in error path.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0027,"percentile":0.19378,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/445fb9c19cf45bd9472fd9babaa31c5e6c7d2720","tags":[]},{"url":"https://git.kernel.org/stable/c/34bab623ebfc08398499e463396b81abb4abe01e","tags":[]},{"url":"https://git.kernel.org/stable/c/3c6bd448442b6c3f6843ac70d57201a13478dd47","tags":[]},{"url":"https://git.kernel.org/stable/c/43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0","tags":[]}],"priority":{"score":3.9,"factors":[{"name":"EPSS percentile","points":3.88}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 59ebbe40fb51e307032ae7f63b2749fad2d4635a, < 445fb9c19cf45bd9472fd9babaa31c5e6c7d2720",">= 59ebbe40fb51e307032ae7f63b2749fad2d4635a, < 34bab623ebfc08398499e463396b81abb4abe01e",">= 59ebbe40fb51e307032ae7f63b2749fad2d4635a, < 3c6bd448442b6c3f6843ac70d57201a13478dd47",">= 59ebbe40fb51e307032ae7f63b2749fad2d4635a, < 43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0"]},{"vendor":"Linux","product":"Linux","versions":["5.13"]}],"euvd":{"id":"EUVD-2022-55454","exploited":false,"provenance":"source"}}