Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47483

published high CVSS 3.1 · 7.8

regmap: Fix possible double-free in regcache_rbtree_exit()

Published
22 May 2024, 08:19:34 UTC
Updated
05 Aug 2026, 08:48:00 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < e72dce9afbdbfa70d9b44f5908a50ff6c4858999 · 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < fc081477b47dfc3a6cb50a96087fc29674013fc2 · 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 758ced2c3878ff789801e6fee808e185c5cf08d6 · 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 3dae1a4eced3ee733d7222e69b8a55caf2d61091 · 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 1cead23c1c0bc766dacb900a3b0269f651ad596f · 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 36e911a16b377bde0ad91a8c679069d0d310b1a6 · 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 50cc1462a668dc62949a1127388bc3af785ce047 · 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 55e6d8037805b3400096d621091dfbf713f97e83 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.12 (affected) · 0 to < 3.12 (unaffected · semver) · 4.4.291 through 4.4.* (unaffected · semver) · 4.9.289 through 4.9.* (unaffected · semver) · 4.14.254 through 4.14.* (unaffected · semver) · 4.19.215 through 4.19.* (unaffected · semver) · 5.4.157 through 5.4.* (unaffected · semver) · 5.10.77 through 5.10.* (unaffected · semver) · 5.14.16 through 5.14.* (unaffected · semver) · 5.15 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2-2025-2752 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2024-049 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2025-093 Fixed Not stated Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultppc64le Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-abi-stablelistsnoarch Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-coreaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-coreppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-cores390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-corex86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debugx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-cores390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-corex86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-develaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-develppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-devels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-develx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-moduless390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extraaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrappc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extras390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrax86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-aarch64aarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-ppc64leppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-s390xs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-x86_64x86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-develaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-develppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-devels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-develx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-docnoarch Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modulesaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modulesppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-moduless390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modulesx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extraaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrappc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extras390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrax86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolsaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolsppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolss390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-toolsx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdumps390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-cores390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-devels390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-moduless390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-modules-extras390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perfx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 perf-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfs390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perfx86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoaarch64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoppc64le Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfos390x Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfox86_64 Advisory build 4.18.0-425.3.1.el8 RHSA-2022:7683
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaults390x Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-defaultx86_64 Advisory build 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SUSE / openSUSE SLE-12-SP5 cluster-md-kmp-rtx86_64 Advisory build 4.12.14-10.188.1 SUSE-SU-2024:1983-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

30

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is in regmap's local register cache (regcache_rbtree_insert_to_block), reached via driver probe/regmap init or local regmap writes through device interfaces (e.g. ASoC codecs), not by processing remote network payloads. AC:L - Triggering requires a GFP_KERNEL allocation failure on the second krealloc, but a local attacker can induce memory pressure to force that path; no victim state or attacker-uncontrollable race is required. PR:L - An unprivileged local user can drive regmap cache updates through widely deployed userspace-reachable device interfaces (notably ALSA/ASoC controls on systems with REGCACHE_RBTREE codecs) without needing root bind/module capabilities. UI:N - The attacker triggers the vulnerable path themselves via local operations and memory pressure; no separate victim action is required. S:U - Exploitation corrupts kernel heap memory within the same OS security authority (local privilege escalation), not a cross-boundary escape such as guest-to-host or IOMMU bypass. C:H - The dangling rbnode->block after the failed realloc is a use-after-free/double-free primitive, which can be heap-groomed to obtain arbitrary kernel memory disclosure. I:H - Double-free/UAF on the cache block enables heap corruption suitable for arbitrary write and control-flow hijacking in the kernel. A:H - The double-free in regcache_rbtree_exit() (and UAF on later cache access) reliably causes kernel oops/panic or otherwise crashes the system.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < e72dce9afbdbfa70d9b44f5908a50ff6c4858999 (affected · git)3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < fc081477b47dfc3a6cb50a96087fc29674013fc2 (affected · git)3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 758ced2c3878ff789801e6fee808e185c5cf08d6 (affected · git)3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 3dae1a4eced3ee733d7222e69b8a55caf2d61091 (affected · git)3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 1cead23c1c0bc766dacb900a3b0269f651ad596f (affected · git)3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 36e911a16b377bde0ad91a8c679069d0d310b1a6 (affected · git)3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 50cc1462a668dc62949a1127388bc3af785ce047 (affected · git)3f4ff561bc88b074d5e868dde4012d89cbb06c87 to < 55e6d8037805b3400096d621091dfbf713f97e83 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.12 (affected)0 to < 3.12 (unaffected · semver)4.4.291 through 4.4.* (unaffected · semver)4.9.289 through 4.9.* (unaffected · semver)4.14.254 through 4.14.* (unaffected · semver)4.19.215 through 4.19.* (unaffected · semver)5.4.157 through 5.4.* (unaffected · semver)5.10.77 through 5.10.* (unaffected · semver)5.14.16 through 5.14.* (unaffected · semver)5.15 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

3

Linux · cna

regmap: Fix possible double-free in regcache_rbtree_exit()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
da25a9dcc57731b937a29eca2728ad4071e1ebf85dc52c3f8035dfd9c6b28024
Ingested
23 Sep 2026, 07:57:11 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected