{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50190","id":"CVE-2022-50190","title":"spi: Fix simplification of devm_spi_register_controller","description":"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 callin","descriptionLong":"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.","published":"2025-06-18T11:03:36.320Z","updated":"2026-10-28T02:30:31.970860099Z","reserved":"2025-06-18T10:57:27.427Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"59ebbe40fb51e307032ae7f63b2749fad2d4635a","lessThan":"445fb9c19cf45bd9472fd9babaa31c5e6c7d2720","status":"affected","versionType":"git"},{"version":"59ebbe40fb51e307032ae7f63b2749fad2d4635a","lessThan":"34bab623ebfc08398499e463396b81abb4abe01e","status":"affected","versionType":"git"},{"version":"59ebbe40fb51e307032ae7f63b2749fad2d4635a","lessThan":"3c6bd448442b6c3f6843ac70d57201a13478dd47","status":"affected","versionType":"git"},{"version":"59ebbe40fb51e307032ae7f63b2749fad2d4635a","lessThan":"43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","lessThan":"5.13","status":"unaffected","versionType":"semver"},{"version":"5.15.61","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.18.18","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19.2","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/445fb9c19cf45bd9472fd9babaa31c5e6c7d2720","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/34bab623ebfc08398499e463396b81abb4abe01e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3c6bd448442b6c3f6843ac70d57201a13478dd47","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50190.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50190","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0027,"epssPercentile":0.19454,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50190","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50190","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50190","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50190","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}