5.5

CVE-2021-47195: spi: fix use-after-free of the add_lock mutex

Modified
AliasesUBUNTU-CVE-2021-47195DEBIAN-CVE-2021-47195
Published 10-04-2024Last modified 23-05-2026

Vulnerability summary

CVE-2021-47195 is a medium (CVSS 5.5) Use After Free vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.22%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 5

Timeline

  1. 10-04-2024
    PublishedVulnerability first disclosed.
  2. 23-05-2026
    Last modifiedVulnerability information updated.

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

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.22%

Chance of exploitation in the next 30 days

Percentile

12%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.22% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu69 products
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
  • linux-aws-5.13All versions (No fix recorded)
  • linux-aws-5.19All versions (No fix recorded)
Linux2 products
  • linux≥ aa3f3d7bef59583f2d3234173105a27ff61ef8fe, < 54c2c96eafcfd242e52e932ab54ace4784efe1dd | ≥ c8dce228db6f81dbc897a018dfc5c418e917cf64, < 11eab327a2a8bd36c38afbff920ae1bd45588dd4 | ≥ 6098475d4cb48d821bdf453c61118c56e26294f0, < 37330f37f6666c7739a44b2b6b95b047ccdbed2d | ≥ 6098475d4cb48d821bdf453c61118c56e26294f0, < 6c53b45c71b4920b5e62f0ea8079a1da382b9434 | 722ef19a161ce3fffb3d1b01ce2301c306639bdd | ≥ 5.14.15, < 5.15 | 5.15
  • linux_kernel> 5.15.0, < 5.15.5
Debian1 product
  • linux< 5.15.5-1

3 vendors · 72 products

References

8 links