CVE-2021-47483: regmap: Fix possible double-free in regcache_rbtree_exit()
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
- CWE
- CWE-415
Report tools
Action score
31
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.
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_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
Affected versions · NVD (8)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel3.12 and later · before 4.4.291
- linux linux kernel4.5 and later · before 4.9.289
- linux linux kernel4.10 and later · before 4.14.254
- linux linux kernel4.15 and later · before 4.19.215
- linux linux kernel4.20 and later · before 5.4.157
- linux linux kernel5.5 and later · before 5.10.77
- linux linux kernel5.11 and later · before 5.14.16
- linux linux kernel5.15
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 5.15.3-1 | 5.15.3-1 |
| Red Hat:enterprise_linux:8::baseos | bpftool | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | bpftool-debuginfo | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-abi-stablelists | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-core | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-core | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-debuginfo | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-devel | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-modules | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debug-modules-extra | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-aarch64 | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-ppc64le | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-s390x | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-debuginfo-common-x86_64 | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-devel | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-doc | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-modules | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-modules-extra | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-tools | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-tools-debuginfo | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
| Red Hat:enterprise_linux:8::baseos | kernel-tools-libs | before 0:4.18.0-425.3.1.el8 | 0:4.18.0-425.3.1.el8 |
+11
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- 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…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
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 MR22Monitor
- ← EarlierCVE-2021-47482May 22, 2024 · net: batman-adv: fix error handling21Monitor
- 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 / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 1cead23c1c0bc766dacb900a3b0269f651ad596f | Vendor (CNA) |
| Linux Linux | 36e911a16b377bde0ad91a8c679069d0d310b1a6 | Vendor (CNA) |
| Linux Linux | 3dae1a4eced3ee733d7222e69b8a55caf2d61091 | Vendor (CNA) |
| Linux Linux | 50cc1462a668dc62949a1127388bc3af785ce047 | Vendor (CNA) |
| Linux Linux | 55e6d8037805b3400096d621091dfbf713f97e83 | Vendor (CNA) |
| Linux Linux | 758ced2c3878ff789801e6fee808e185c5cf08d6 | Vendor (CNA) |
| Linux Linux | e72dce9afbdbfa70d9b44f5908a50ff6c4858999 | Vendor (CNA) |
| Linux Linux | fc081477b47dfc3a6cb50a96087fc29674013fc2 | Vendor (CNA) |
| debian:linux | 5.15.3-1 · Debian:12 | Package registry (OSV) |
| red hat:bpftool | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-core | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-devel | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-modules | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-modules-extra | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debuginfo | 0:4.18.0-425.3.1.el8 · Red Hat:enterprise_linux:8::baseos | Package 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 handling35Monitor
- 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 UAF31Monitor
- CVE-2021-475642 days apartnet: marvell: prestera: fix double free issue on err path31Monitor
- CVE-2023-526795 days apartof: Fix double free in of_parse_phandle_with_args_map31Monitor
- 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.
- TR-24-0527 · May 23, 2024(Linux Kernel Güncellemesi)
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 FreeCVSS 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.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- git.kernel.org/stable/c/36e911a16b377bde0ad91a8c679069d0d310b1a6
- git.kernel.org/stable/c/3dae1a4eced3ee733d7222e69b8a55caf2d61091
- git.kernel.org/stable/c/50cc1462a668dc62949a1127388bc3af785ce047
- git.kernel.org/stable/c/55e6d8037805b3400096d621091dfbf713f97e83
- git.kernel.org/stable/c/758ced2c3878ff789801e6fee808e185c5cf08d6
- git.kernel.org/stable/c/e72dce9afbdbfa70d9b44f5908a50ff6c4858999
- git.kernel.org/stable/c/fc081477b47dfc3a6cb50a96087fc29674013fc2
Vendor advisories and official records. Exploit/PoC links are deliberately left out.