CVE-2022-50190
spi: Fix simplification of devm_spi_register_controller
- Published
- Updated
- Reserved
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: spi: Fix simplification of devm_spi_register_controller This reverts commit 59ebbe40fb51 ("spi: simplify devm_spi_register_controller"). If devm_add_action() fails in devm_add_action_or_reset(), devm_spi_unregister() will be called, it decreases the refcount of 'ctlr->dev' to 0, then it will cause uaf in the drivers that calling spi_put_controller() in error path.
Timeline
ID reserved
By Linux
Published
- 11 months later
· 11 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.26% · top 82% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
Affected products
- affected 59ebbe40fb51e307032ae7f63b2749fad2d4635a – < 445fb9c19cf45bd9472fd9babaa31c5e6c7d2720
- affected 59ebbe40fb51e307032ae7f63b2749fad2d4635a – < 34bab623ebfc08398499e463396b81abb4abe01e
- affected 59ebbe40fb51e307032ae7f63b2749fad2d4635a – < 3c6bd448442b6c3f6843ac70d57201a13478dd47
- affected 59ebbe40fb51e307032ae7f63b2749fad2d4635a – < 43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0
- affected 5.13
- unaffected < 5.13
- unaffected 5.15.61 – ≤ 5.15.*
- unaffected 5.18.18 – ≤ 5.18.*
- unaffected 5.19.2 – ≤ 5.19.*
- unaffected 6.0 – ≤ *
References (4)
- https://git.kernel.org/stable/c/445fb9c19cf45bd9472fd9babaa31c5e6c7d2720 (opens in a new tab)
- https://git.kernel.org/stable/c/34bab623ebfc08398499e463396b81abb4abe01e (opens in a new tab)
- https://git.kernel.org/stable/c/3c6bd448442b6c3f6843ac70d57201a13478dd47 (opens in a new tab)
- https://git.kernel.org/stable/c/43cc5a0afe4184a7fafe1eba32b5a11bb69c9ce0 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-50190)Record last updated .