CVE-2021-47195

Medium

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().

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedApr 10, 2024
First seenApr 10, 2024

How to fix

Update
  • linux linux_kernel5.15.5 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel5.15.0 < v < 5.15.55.15.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.