# CVE-2022-50549: dm thin: Fix ABBA deadlock between shrink\_slab and dm\_pool\_abort\_metadata

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.17% (percentile 3, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-10-07T15:21:12.006Z
- **Modified:** 2026-06-17T05:23:46.303Z

## Who should check

- Anyone running Linux \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 200aa33b5d781e7c0fa6c0c7db9dbcc3f574ce8f; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 7e37578069737b04955c71dd85db8a3bc2709eff; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< f8c26c33fef588ee54852cffa7cbb9f9d9869405; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 2d891cc5a1706b6908bceb56af7176a463ee6d62; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< cdf7a39bcc427febbfe3c3b9fe829825ead96c27; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 8111964f1b8524c4bb56b02cd9c7a37725ea21fd
- Anyone running Linux 3.6

## Description

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

dm thin: Fix ABBA deadlock between shrink\_slab and dm\_pool\_abort\_metadata

Following concurrent processes:

          P1(drop cache)                P2(kworker)
drop\_caches\_sysctl\_handler
 drop\_slab
  shrink\_slab
   down\_read(&shrinker\_rwsem)  - LOCK A
   do\_shrink\_slab
    super\_cache\_scan
     prune\_icache\_sb
      dispose\_list
       evict
        ext4\_evict\_inode
	 ext4\_clear\_inode
	  ext4\_discard\_preallocations
	   ext4\_mb\_load\_buddy\_gfp
	    ext4\_mb\_init\_cache
	     ext4\_read\_block\_bitmap\_nowait
	      ext4\_read\_bh\_nowait
	       submit\_bh
	        dm\_submit\_bio
		                 do\_worker
				  process\_deferred\_bios
				   commit
				    metadata\_operation\_failed
				     dm\_pool\_abort\_metadata
				      down\_write(&pmd-\>root\_lock) - LOCK B
		                      \_\_destroy\_persistent\_data\_objects
				       dm\_block\_manager\_destroy
				        dm\_bufio\_client\_destroy
				         unregister\_shrinker
					  down\_write(&shrinker\_rwsem)
		 thin\_map                            \|
		  dm\_thin\_find\_block                 ↓
		   down\_read(&pmd-\>root\_lock) --\> ABBA deadlock

, which triggers hung task:

\[   76.974820\] INFO: task kworker/u4:3:63 blocked for more than 15 seconds.
\[   76.976019\]       Not tainted 6.1.0-rc4-00011-g8f17dd350364-dirty \#910
\[   76.978521\] task:kworker/u4:3    state:D stack:0     pid:63    ppid:2
\[   76.978534\] Workqueue: dm-thin do\_worker
\[   76.978552\] Call Trace:
\[   76.978564\]  \_\_schedule+0x6ba/0x10f0
\[   76.978582\]  schedule+0x9d/0x1e0
\[   76.978588\]  rwsem\_down\_write\_slowpath+0x587/0xdf0
\[   76.978600\]  down\_write+0xec/0x110
\[   76.978607\]  unregister\_shrinker+0x2c/0xf0
\[   76.978616\]  dm\_bufio\_client\_destroy+0x116/0x3d0
\[   76.978625\]  dm\_block\_manager\_destroy+0x19/0x40
\[   76.978629\]  \_\_destroy\_persistent\_data\_objects+0x5e/0x70
\[   76.978636\]  dm\_pool\_abort\_metadata+0x8e/0x100
\[   76.978643\]  metadata\_operation\_failed+0x86/0x110
\[   76.978649\]  commit+0x6a/0x230
\[   76.978655\]  do\_worker+0xc6e/0xd90
\[   76.978702\]  process\_one\_work+0x269/0x630
\[   76.978714\]  worker\_thread+0x266/0x630
\[   76.978730\]  kthread+0x151/0x1b0
\[   76.978772\] INFO: task test.sh:2646 blocked for more than 15 seconds.
\[   76.979756\]       Not tainted 6.1.0-rc4-00011-g8f17dd350364-dirty \#910
\[   76.982111\] task:test.sh         state:D stack:0     pid:2646  ppid:2459
\[   76.982128\] Call Trace:
\[   76.982139\]  \_\_schedule+0x6ba/0x10f0
\[   76.982155\]  schedule+0x9d/0x1e0
\[   76.982159\]  rwsem\_down\_read\_slowpath+0x4f4/0x910
\[   76.982173\]  down\_read+0x84/0x170
\[   76.982177\]  dm\_thin\_find\_block+0x4c/0xd0
\[   76.982183\]  thin\_map+0x201/0x3d0
\[   76.982188\]  \_\_map\_bio+0x5b/0x350
\[   76.982195\]  dm\_submit\_bio+0x2b6/0x930
\[   76.982202\]  \_\_submit\_bio+0x123/0x2d0
\[   76.982209\]  submit\_bio\_noacct\_nocheck+0x101/0x3e0
\[   76.982222\]  submit\_bio\_noacct+0x389/0x770
\[   76.982227\]  submit\_bio+0x50/0xc0
\[   76.982232\]  submit\_bh\_wbc+0x15e/0x230
\[   76.982238\]  submit\_bh+0x14/0x20
\[   76.982241\]  ext4\_read\_bh\_nowait+0xc5/0x130
\[   76.982247\]  ext4\_read\_block\_bitmap\_nowait+0x340/0xc60
\[   76.982254\]  ext4\_mb\_init\_cache+0x1ce/0xdc0
\[   76.982259\]  ext4\_mb\_load\_buddy\_gfp+0x987/0xfa0
\[   76.982263\]  ext4\_discard\_preallocations+0x45d/0x830
\[   76.982274\]  ext4\_clear\_inode+0x48/0xf0
\[   76.982280\]  ext4\_evict\_inode+0xcf/0xc70
\[   76.982285\]  evict+0x119/0x2b0
\[   76.982290\]  dispose\_list+0x43/0xa0
\[   76.982294\]  prune\_icache\_sb+0x64/0x90
\[   76.982298\]  super\_cache\_scan+0x155/0x210
\[   76.982303\]  do\_shrink\_slab+0x19e/0x4e0
\[   76.982310\]  shrink\_slab+0x2bd/0x450
\[   76.982317\]  drop\_slab+0xcc/0x1a0
\[   76.982323\]  drop\_caches\_sysctl\_handler+0xb7/0xe0
\[   76.982327\]  proc\_sys\_call\_handler+0x1bc/0x300
\[   76.982331\]  proc\_sys\_write+0x17/0x20
\[   76.982334\]  vfs\_write+0x3d3/0x570
\[   76.982342\]  ksys\_write+0x73/0x160
\[   76.982347\]  \_\_x64\_sys\_write+0x1e/0x30
\[   76.982352\]  do\_syscall\_64+0x35/0x80
\[   76.982357\]  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

Funct
---truncated---

## Affected and fixed versions

- Linux: \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 200aa33b5d781e7c0fa6c0c7db9dbcc3f574ce8f; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 7e37578069737b04955c71dd85db8a3bc2709eff; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< f8c26c33fef588ee54852cffa7cbb9f9d9869405; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 2d891cc5a1706b6908bceb56af7176a463ee6d62; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< cdf7a39bcc427febbfe3c3b9fe829825ead96c27; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 8111964f1b8524c4bb56b02cd9c7a37725ea21fd (cvelist)
- Linux: 3.6 (cvelist)

## Mitigation

- Upgrade Linux to 8111964f1b8524c4bb56b02cd9c7a37725ea21fd 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-50549. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50549.md
Affected: Linux >= e49e582965b3694f07a106adc83ddb44aa4f0890, < 200aa33b5d781e7c0fa6c0c7db9dbcc3f574ce8f; >= e49e582965b3694f07a106adc83ddb44aa4f0890, < 7e37578069737b04955c71dd85db8a3bc2709eff; >= e49e582965b3694f07a106adc83ddb44aa4f0890, < f8c26c33fef588ee54852cffa7cbb9f9d9869405; >= e49e582965b3694f07a106a…
Fixed in: Linux 200aa33b5d781e7c0fa6c0c7db9dbcc3f574ce8f, Linux 7e37578069737b04955c71dd85db8a3bc2709eff, Linux 2d891cc5a1706b6908bceb56af7176a463ee6d62, Linux 8111964f1b8524c4bb56b02cd9c7a37725ea21fd

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-50549 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 200aa33b5d781e7c0fa6c0c7db9dbcc3f574ce8f; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 7e37578069737b04955c71dd85db8a3bc2709eff; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< f8c26c33fef588ee54852cffa7cbb9f9d9869405; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 2d891cc5a1706b6908bceb56af7176a463ee6d62; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< cdf7a39bcc427febbfe3c3b9fe829825ead96c27; \>= e49e582965b3694f07a106adc83ddb44aa4f0890, \< 8111964f1b8524c4bb56b02cd9c7a37725ea21fd; Linux 3.6.

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

Yes. Fixed in Linux 200aa33b5d781e7c0fa6c0c7db9dbcc3f574ce8f, Linux 7e37578069737b04955c71dd85db8a3bc2709eff, Linux 2d891cc5a1706b6908bceb56af7176a463ee6d62, Linux 8111964f1b8524c4bb56b02cd9c7a37725ea21fd. Upgrade Linux to 8111964f1b8524c4bb56b02cd9c7a37725ea21fd or later.

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

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/200aa33b5d781e7c0fa6c0c7db9dbcc3f574ce8f>
- patch: <https://git.kernel.org/stable/c/7e37578069737b04955c71dd85db8a3bc2709eff>
- patch: <https://git.kernel.org/stable/c/f8c26c33fef588ee54852cffa7cbb9f9d9869405>
- patch: <https://git.kernel.org/stable/c/2d891cc5a1706b6908bceb56af7176a463ee6d62>
- patch: <https://git.kernel.org/stable/c/cdf7a39bcc427febbfe3c3b9fe829825ead96c27>
- patch: <https://git.kernel.org/stable/c/8111964f1b8524c4bb56b02cd9c7a37725ea21fd>

## 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-50549>

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