CVE-2021-47195
Last modified
CVE-2021-47195 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: spi: fix use-after-free of the add_lock mutex Commit 6098475d4cb4 ("spi: Fix deadlock when adding SPI controllers on SPI buses") introduced a per-controller mutex. But mutex_unlock() of said lock is called after the controller is already freed: spi_unregister_controller(ctlr) -> put_device(&ctlr->dev) -> spi_controller_release(dev) -> mutex_unlock(&ctrl->add_lock) Move the put_device() after the mutex_unlock().. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: spi: fix use-after-free of the add_lock mutex Commit 6098475d4cb4 ("spi: Fix deadlock when adding SPI controllers on SPI buses") introduced a per-controller mutex. But mutex_unlock() of said lock is called after the controller is already freed: spi_unregister_controller(ctlr) -> put_device(&ctlr->dev) -> spi_controller_release(dev) -> mutex_unlock(&ctrl->add_lock) Move the put_device() after the mutex_unlock().
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | > 5.15.0, < 5.15.5 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-47195?
How severe is CVE-2021-47195?
How do I fix CVE-2021-47195?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-47189In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47190In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47191In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2021-47192In the Linux kernel, the following vulnerability has been re…5.3
- CVE-2021-47193In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47194In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47196In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47197In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47198In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47199In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47200In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47201In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2021-47195?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
