CVE-2022-50190
HIGHLinux Kernel 5.13-5.15.60, 5.16-5.18.17, 5.19.0-5.19.1 - Use-After-Free in SPI Controller Registration
Title source: llmDescription
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.
References (4)
Core 4
Core References
Scores
CVSS v3
7.8
EPSS
0.0021
EPSS Percentile
10.9%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-416
Status
published
Products (14)
linux/Kernel
5.13.0 - 5.15.61linux
linux/Kernel
5.16.0 - 5.18.18linux
linux/Kernel
5.19.0 - 5.19.2linux
Linux/Linux
< 5.13
Linux/Linux
5.13
Linux/Linux
5.15.61 - 5.15.*
Linux/Linux
5.18.18 - 5.18.*
Linux/Linux
5.19.2 - 5.19.*
Linux/Linux
59ebbe40fb51e307032ae7f63b2749fad2d4635a - 34bab623ebfc08398499e463396b81abb4abe01e
Linux/Linux
59ebbe40fb51e307032ae7f63b2749fad2d4635a - 3c6bd448442b6c3f6843ac70d57201a13478dd47
... and 4 more
Published
Jun 18, 2025
Tracked Since
Feb 18, 2026