Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2021-47483: regmap: Fix possible double-free in regcache_rbtree_exit()

HighCVSS 7.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 31/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.22% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Linux Linux 1cead23c1c0bc766dacb900a3b0269f651ad596f, 36e911a16b377bde0ad91a8c679069d0d310b1a6, 3dae1a4eced3ee733d7222e69b8a55caf2d61091.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to Linux Linux 1cead23c1c0bc766dacb900a3b0269f651ad596f, 36e911a16b377bde0ad91a8c679069d0d310b1a6, 3dae1a4eced3ee733d7222e69b8a55caf2d61091 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
May 22, 2024
Updated
Aug 5, 2026
EPSS
0.2% · 13th percentile

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.2%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
7.8
CNA · Linux
7.8
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-47483

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
linuxlinux kernel

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 3.12affected
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before e72dce9afbdbfa70d9b44f5908a50ff6c4858999affected · git
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before fc081477b47dfc3a6cb50a96087fc29674013fc2affected · git
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before 758ced2c3878ff789801e6fee808e185c5cf08d6affected · git
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before 3dae1a4eced3ee733d7222e69b8a55caf2d61091affected · git
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before 1cead23c1c0bc766dacb900a3b0269f651ad596faffected · git
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before 36e911a16b377bde0ad91a8c679069d0d310b1a6affected · git
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before 50cc1462a668dc62949a1127388bc3af785ce047affected · git
    • 3f4ff561bc88b074d5e868dde4012d89cbb06c87 and later · before 55e6d8037805b3400096d621091dfbf713f97e83affected · git
    • before 3.12not affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 5.15.3-15.15.3-1
Red Hat:enterprise_linux:8::baseosbpftoolbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseosbpftool-debuginfobefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernelbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-abi-stablelistsbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-corebefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debugbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debug-corebefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debug-debuginfobefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debug-develbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debug-modulesbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debug-modules-extrabefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debuginfobefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debuginfo-common-aarch64before 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debuginfo-common-ppc64lebefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debuginfo-common-s390xbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-debuginfo-common-x86_64before 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-develbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-docbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-modulesbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-modules-extrabefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-toolsbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-tools-debuginfobefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8
Red Hat:enterprise_linux:8::baseoskernel-tools-libsbefore 0:4.18.0-425.3.1.el80:4.18.0-425.3.1.el8

+11

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

Published before and after this one in the same product

  • ← EarlierCVE-2021-47481May 22, 2024 · RDMA/mlx5: Initialize the ODP xarray when creating an ODP MR
    22Monitor
  • ← EarlierCVE-2021-47482May 22, 2024 · net: batman-adv: fix error handling
    21Monitor
  • Later →CVE-2021-47484May 22, 2024 · octeontx2-af: Fix possible null pointer dereference.
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux1cead23c1c0bc766dacb900a3b0269f651ad596fVendor (CNA)
Linux Linux36e911a16b377bde0ad91a8c679069d0d310b1a6Vendor (CNA)
Linux Linux3dae1a4eced3ee733d7222e69b8a55caf2d61091Vendor (CNA)
Linux Linux50cc1462a668dc62949a1127388bc3af785ce047Vendor (CNA)
Linux Linux55e6d8037805b3400096d621091dfbf713f97e83Vendor (CNA)
Linux Linux758ced2c3878ff789801e6fee808e185c5cf08d6Vendor (CNA)
Linux Linuxe72dce9afbdbfa70d9b44f5908a50ff6c4858999Vendor (CNA)
Linux Linuxfc081477b47dfc3a6cb50a96087fc29674013fc2Vendor (CNA)
debian:linux5.15.3-1 · Debian:12Package registry (OSV)
red hat:bpftool0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:bpftool-debuginfo0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-abi-stablelists0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-core0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-core0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-debuginfo0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-devel0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-modules0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-modules-extra0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debuginfo0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2024-358145 days apartswiotlb: Fix double-allocation of slots due to broken alignment handling
    35Monitor
  • CVE-2023-527951 days apartvhost-vdpa: fix use after free in vhost_vdpa_probe()
    31Monitor
  • CVE-2023-528511 days apartIB/mlx5: Fix init stage error handling to avoid double free of same QP and UAF
    31Monitor
  • CVE-2021-475642 days apartnet: marvell: prestera: fix double free issue on err path
    31Monitor
  • CVE-2023-526795 days apartof: Fix double free in of_parse_phandle_with_args_map
    31Monitor
  • CVE-2024-274335 days apartclk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_probe()
    31Monitor

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

CWE-415 · Double Free

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records