# CVE-2021-47600: dm btree remove: fix use after free in rebalance\_children()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-06-19T14:54:00.981Z
- **Modified:** 2026-08-05T08:48:32.894Z

## Who should check

- Anyone running Linux \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< a48f6a2bf33734ec5669ee03067dfb6c5b4818d6; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 66ea642af6fd4eacb5d0271a922130fcf8700424; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< b03abd0aa09c05099f537cb05b8460c4298f0861; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 293f957be5e39720778fb1851ced7f5fba6d51c3; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 501ecd90efdc9b2edc6c28852ecd098a4adf8f00; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 0e21e6cd5eebfc929ac5fa3b97ca2d4ace3cb6a3; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 607beb420b3fe23b948a9bf447d993521a02fbbb; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 1b8d2789dad0005fd5e7d35dab26a8e1203fb6da
- Anyone running Linux 3.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

dm btree remove: fix use after free in rebalance\_children()

Move dm\_tm\_unlock() after dm\_tm\_dec().

## Affected and fixed versions

- Linux: \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< a48f6a2bf33734ec5669ee03067dfb6c5b4818d6; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 66ea642af6fd4eacb5d0271a922130fcf8700424; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< b03abd0aa09c05099f537cb05b8460c4298f0861; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 293f957be5e39720778fb1851ced7f5fba6d51c3; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 501ecd90efdc9b2edc6c28852ecd098a4adf8f00; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 0e21e6cd5eebfc929ac5fa3b97ca2d4ace3cb6a3; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 607beb420b3fe23b948a9bf447d993521a02fbbb; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 1b8d2789dad0005fd5e7d35dab26a8e1203fb6da (cvelist)
- Linux: 3.2 (cvelist)

## Mitigation

- Upgrade Linux to 1b8d2789dad0005fd5e7d35dab26a8e1203fb6da or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47600. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47600.md
Affected: Linux >= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, < a48f6a2bf33734ec5669ee03067dfb6c5b4818d6; >= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, < 66ea642af6fd4eacb5d0271a922130fcf8700424; >= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, < b03abd0aa09c05099f537cb05b8460c4298f0861; >= 3241b1d3e0aaafbfcd320f4…
Fixed in: Linux 66ea642af6fd4eacb5d0271a922130fcf8700424, Linux 293f957be5e39720778fb1851ced7f5fba6d51c3, Linux 501ecd90efdc9b2edc6c28852ecd098a4adf8f00, Linux 0e21e6cd5eebfc929ac5fa3b97ca2d4ace3cb6a3, Linux 607beb420b3fe23b948a9bf447d993521a02fbbb, Linux 1b8d2789dad0005fd5e7d35dab26a8e1203fb6da

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47600 being exploited?

There is no confirmed exploitation: CVE-2021-47600 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47600?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47600?

Linux \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< a48f6a2bf33734ec5669ee03067dfb6c5b4818d6; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 66ea642af6fd4eacb5d0271a922130fcf8700424; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< b03abd0aa09c05099f537cb05b8460c4298f0861; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 293f957be5e39720778fb1851ced7f5fba6d51c3; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 501ecd90efdc9b2edc6c28852ecd098a4adf8f00; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 0e21e6cd5eebfc929ac5fa3b97ca2d4ace3cb6a3; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 607beb420b3fe23b948a9bf447d993521a02fbbb; \>= 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4, \< 1b8d2789dad0005fd5e7d35dab26a8e1203fb6da; Linux 3.2.

### Is there a fix for CVE-2021-47600?

Yes. Fixed in Linux 66ea642af6fd4eacb5d0271a922130fcf8700424, Linux 293f957be5e39720778fb1851ced7f5fba6d51c3, Linux 501ecd90efdc9b2edc6c28852ecd098a4adf8f00, Linux 0e21e6cd5eebfc929ac5fa3b97ca2d4ace3cb6a3, Linux 607beb420b3fe23b948a9bf447d993521a02fbbb, Linux 1b8d2789dad0005fd5e7d35dab26a8e1203fb6da. Upgrade Linux to 1b8d2789dad0005fd5e7d35dab26a8e1203fb6da or later.

### How do I check if I'm affected by CVE-2021-47600?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a48f6a2bf33734ec5669ee03067dfb6c5b4818d6>
- patch: <https://git.kernel.org/stable/c/66ea642af6fd4eacb5d0271a922130fcf8700424>
- patch: <https://git.kernel.org/stable/c/b03abd0aa09c05099f537cb05b8460c4298f0861>
- patch: <https://git.kernel.org/stable/c/293f957be5e39720778fb1851ced7f5fba6d51c3>
- patch: <https://git.kernel.org/stable/c/501ecd90efdc9b2edc6c28852ecd098a4adf8f00>
- patch: <https://git.kernel.org/stable/c/0e21e6cd5eebfc929ac5fa3b97ca2d4ace3cb6a3>
- patch: <https://git.kernel.org/stable/c/607beb420b3fe23b948a9bf447d993521a02fbbb>
- patch: <https://git.kernel.org/stable/c/1b8d2789dad0005fd5e7d35dab26a8e1203fb6da>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47600>

HTML: <https://flawdb.com/CVE-2021-47600> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47600>
