CVE-2022-50190

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50190
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50190.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50190
Related
Published
2025-06-18T11:15:49Z
Modified
2025-06-18T16:00:24Z
Downstream
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

spi: Fix simplification of devmspiregister_controller

This reverts commit 59ebbe40fb51 ("spi: simplify devmspiregister_controller").

If devmaddaction() fails in devmaddactionorreset(), devmspiunregister() will be called, it decreases the refcount of 'ctlr->dev' to 0, then it will cause uaf in the drivers that calling spiputcontroller() in error path.

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}