# CVE-2022-49270: dm: fix use-after-free in dm\_cleanup\_zoned\_dev()

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T01:56:17.683Z
- **Modified:** 2026-06-17T05:17:33.393Z

## Who should check

- Anyone running Linux \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 0987f00a76a17aa7213da492c00ed9e5a6210c73; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< fdfe414ca28ddfd562c233fb27385cf820de03e8; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 43a043aed964659bc69ef81f266912b73c80d837; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 588b7f5df0cb64f281290c7672470c006abe7160
- Anyone running Linux 5.14

## Description

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

dm: fix use-after-free in dm\_cleanup\_zoned\_dev()

dm\_cleanup\_zoned\_dev() uses queue, so it must be called
before blk\_cleanup\_disk() starts its killing:

blk\_cleanup\_disk-\>blk\_cleanup\_queue()-\>kobject\_put()-\>blk\_release\_queue()-\>
-\>...RCU...-\>blk\_free\_queue\_rcu()-\>kmem\_cache\_free()

Otherwise, RCU callback may be executed first and
dm\_cleanup\_zoned\_dev() will touch free'd memory:

 BUG: KASAN: use-after-free in dm\_cleanup\_zoned\_dev+0x33/0xd0
 Read of size 8 at addr ffff88805ac6e430 by task dmsetup/681

 CPU: 4 PID: 681 Comm: dmsetup Not tainted 5.17.0-rc2+ \#6
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x57/0x7d
  print\_address\_description.constprop.0+0x1f/0x150
  ? dm\_cleanup\_zoned\_dev+0x33/0xd0
  kasan\_report.cold+0x7f/0x11b
  ? dm\_cleanup\_zoned\_dev+0x33/0xd0
  dm\_cleanup\_zoned\_dev+0x33/0xd0
  \_\_dm\_destroy+0x26a/0x400
  ? dm\_blk\_ioctl+0x230/0x230
  ? up\_write+0xd8/0x270
  dev\_remove+0x156/0x1d0
  ctl\_ioctl+0x269/0x530
  ? table\_clear+0x140/0x140
  ? lock\_release+0xb2/0x750
  ? remove\_all+0x40/0x40
  ? rcu\_read\_lock\_sched\_held+0x12/0x70
  ? lock\_downgrade+0x3c0/0x3c0
  ? rcu\_read\_lock\_sched\_held+0x12/0x70
  dm\_ctl\_ioctl+0xa/0x10
  \_\_x64\_sys\_ioctl+0xb9/0xf0
  do\_syscall\_64+0x3b/0x90
  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
 RIP: 0033:0x7fb6dfa95c27

## Affected and fixed versions

- Linux: \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 0987f00a76a17aa7213da492c00ed9e5a6210c73; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< fdfe414ca28ddfd562c233fb27385cf820de03e8; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 43a043aed964659bc69ef81f266912b73c80d837; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 588b7f5df0cb64f281290c7672470c006abe7160 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 588b7f5df0cb64f281290c7672470c006abe7160 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49270.md
Affected: Linux >= bb37d77239af25cde59693dbe3fac04dd17d7b29, < 0987f00a76a17aa7213da492c00ed9e5a6210c73; >= bb37d77239af25cde59693dbe3fac04dd17d7b29, < fdfe414ca28ddfd562c233fb27385cf820de03e8; >= bb37d77239af25cde59693dbe3fac04dd17d7b29, < 43a043aed964659bc69ef81f266912b73c80d837; >= bb37d77239af25cde59693d…
Fixed in: Linux 0987f00a76a17aa7213da492c00ed9e5a6210c73, Linux 43a043aed964659bc69ef81f266912b73c80d837, Linux 588b7f5df0cb64f281290c7672470c006abe7160

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-2022-49270 being exploited?

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

### How serious is CVE-2022-49270?

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

### Which versions are affected by CVE-2022-49270?

Linux \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 0987f00a76a17aa7213da492c00ed9e5a6210c73; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< fdfe414ca28ddfd562c233fb27385cf820de03e8; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 43a043aed964659bc69ef81f266912b73c80d837; \>= bb37d77239af25cde59693dbe3fac04dd17d7b29, \< 588b7f5df0cb64f281290c7672470c006abe7160; Linux 5.14.

### Is there a fix for CVE-2022-49270?

Yes. Fixed in Linux 0987f00a76a17aa7213da492c00ed9e5a6210c73, Linux 43a043aed964659bc69ef81f266912b73c80d837, Linux 588b7f5df0cb64f281290c7672470c006abe7160. Upgrade Linux to 588b7f5df0cb64f281290c7672470c006abe7160 or later.

### How do I check if I'm affected by CVE-2022-49270?

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/0987f00a76a17aa7213da492c00ed9e5a6210c73>
- patch: <https://git.kernel.org/stable/c/fdfe414ca28ddfd562c233fb27385cf820de03e8>
- patch: <https://git.kernel.org/stable/c/43a043aed964659bc69ef81f266912b73c80d837>
- patch: <https://git.kernel.org/stable/c/588b7f5df0cb64f281290c7672470c006abe7160>

## 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-2022-49270>

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