CVE & CISA-KEV Catalog

CVE-2021-47483

HIGH
7.8
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: regmap: Fix possible double-free in regcache_rbtree_exit() In regcache_rbtree_insert_to_block(), when 'present' realloc failed, the 'blk' which is supposed to assign to 'rbnode->block' will be freed, so 'rbnode->block' points a freed memory, in the error handling path of regcache_rbtree_init(), 'rbnode->block' will be freed again in regcache_rbtree_exit(), KASAN will report double-free as follows: BUG: KASAN: double-free or invalid-free in kfree+0xce/0x390 Call Trace: slab_free_freelist_hook+0x10d/0x240 kfree+0xce/0x390 regcache_rbtree_exit+0x15d/0x1a0 regcache_rbtree_init+0x224/0x2c0 regcache_init+0x88d/0x1310 __regmap_init+0x3151/0x4a80 __devm_regmap_init+0x7d/0x100 madera_spi_probe+0x10f/0x333 [madera_spi] spi_probe+0x183/0x210 really_probe+0x285/0xc30 To fix this, moving up the assignment of rbnode->block to immediately after the reallocation has succeeded so that the data structure stays valid even if the second reallocation fails.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.84-1CVE-2021-47483
Fixed in:5.15.3-1CVE-2021-47483
Fixed in:5.15.3-1CVE-2021-47483
Fixed in:5.15.3-1CVE-2021-47483
linuxUbuntu
Fixed in:3.13.0-205.256USN-7415-1
Fixed in:4.4.0-267.301USN-7429-1
linux-awsUbuntu
Fixed in:4.4.0-1142.148USN-7429-1
Fixed in:4.4.0-1180.195USN-7429-1
linux-fipsUbuntu
Fixed in:4.4.0-1112.119USN-7429-2
linux-image-3.13.0-205-genericUbuntu
Fixed in:3.13.0-205.256USN-7415-1
linux-image-3.13.0-205-lowlatencyUbuntu
Fixed in:3.13.0-205.256USN-7415-1
linux-image-4.4.0-1112-fipsUbuntu
Fixed in:4.4.0-1112.119USN-7429-2
linux-image-4.4.0-1142-awsUbuntu
Fixed in:4.4.0-1142.148USN-7429-1
linux-image-4.4.0-1143-kvmUbuntu
Fixed in:4.4.0-1143.154USN-7429-1
linux-image-4.4.0-1180-awsUbuntu
Fixed in:4.4.0-1180.195USN-7429-1
linux-image-4.4.0-267-genericUbuntu
Fixed in:4.4.0-267.301~14.04.1USN-7429-1
Fixed in:4.4.0-267.301USN-7429-1
linux-image-4.4.0-267-lowlatencyUbuntu
Fixed in:4.4.0-267.301~14.04.1USN-7429-1
Fixed in:4.4.0-267.301USN-7429-1
linux-image-awsUbuntu
Fixed in:4.4.0.1142.139USN-7429-1
Fixed in:4.4.0.1180.184USN-7429-1
linux-image-fipsUbuntu
Fixed in:4.4.0.1112.113USN-7429-2
linux-image-genericUbuntu
Fixed in:3.13.0.205.215USN-7415-1
Fixed in:4.4.0.267.273USN-7429-1
linux-image-generic-lts-trustyUbuntu
Fixed in:3.13.0.205.215USN-7415-1
linux-image-generic-lts-xenialUbuntu
Fixed in:4.4.0.267.301~14.04.1USN-7429-1
Fixed in:4.4.0.267.273USN-7429-1
linux-image-kvmUbuntu
Fixed in:4.4.0.1143.140USN-7429-1
linux-image-lowlatencyUbuntu
Fixed in:3.13.0.205.215USN-7415-1
Fixed in:4.4.0.267.273USN-7429-1
linux-image-lowlatency-lts-xenialUbuntu
Fixed in:4.4.0.267.301~14.04.1USN-7429-1
Fixed in:4.4.0.267.273USN-7429-1
linux-image-serverUbuntu
Fixed in:3.13.0.205.215USN-7415-1
linux-image-virtualUbuntu
Fixed in:3.13.0.205.215USN-7415-1
Fixed in:4.4.0.267.273USN-7429-1
linux-image-virtual-lts-xenialUbuntu
Fixed in:4.4.0.267.301~14.04.1USN-7429-1
Fixed in:4.4.0.267.273USN-7429-1
linux-kvmUbuntu
Fixed in:4.4.0-1143.154USN-7429-1
linux-lts-xenialUbuntu
Fixed in:4.4.0-267.301~14.04.1USN-7429-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.23%probability of exploitation in 30 days
14thpercentile

Low risk: more likely to be exploited than 14% of all known CVEs.

References

Related Vulnerabilities

Other CWE-415 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-25136Medium6.590%-Fix
CVE-2018-0101Critical10.087%-Fix
CVE-2003-0545Critical9.885%-Fix
CVE-2019-3829Medium5.359%-Fix
CVE-2026-33824Critical9.856%-Fix
CVE-2021-3407Medium5.550%-Fix
Embed a live status badge for CVE-2021-47483
CVE-2021-47483 severity badge

Markdown

[![CVE-2021-47483](https://tridentstack.com/cve/badge/CVE-2021-47483.svg)](https://tridentstack.com/cve/CVE-2021-47483)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-47483"><img src="https://tridentstack.com/cve/badge/CVE-2021-47483.svg" alt="CVE-2021-47483"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-01-06.