CVE-2022-50190
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
18/06/2025
Last modified:
19/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
spi: Fix simplification of devm_spi_register_controller<br />
<br />
This reverts commit 59ebbe40fb51 ("spi: simplify<br />
devm_spi_register_controller").<br />
<br />
If devm_add_action() fails in devm_add_action_or_reset(),<br />
devm_spi_unregister() will be called, it decreases the<br />
refcount of &#39;ctlr->dev&#39; to 0, then it will cause uaf in<br />
the drivers that calling spi_put_controller() in error path.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.13 (including) | 5.15.61 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.18.18 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.19 (including) | 5.19.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



