# CVE-2022-50193: erofs: wake up all waiters after z\_erofs\_lzma\_head ready

> 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.27% (percentile 13, 2026-11-26)
- **Published:** 2025-06-18T11:03:38.262Z
- **Modified:** 2026-06-17T05:22:56.873Z

## Who should check

- Anyone running Linux \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 2478e36ec437a27f8a05bea9e4269a68c554e21f; \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 96aa2a6a89618d850ef082e4268007e840c28769; \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65
- Anyone running Linux 5.16

## Description

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

erofs: wake up all waiters after z\_erofs\_lzma\_head ready

When the user mounts the erofs second times, the decompression thread
may hung. The problem happens due to a sequence of steps like the
following:

1) Task A called z\_erofs\_load\_lzma\_config which obtain all of the node
   from the z\_erofs\_lzma\_head.

2) At this time, task B called the z\_erofs\_lzma\_decompress and wanted to
   get a node. But the z\_erofs\_lzma\_head was empty, the Task B had to
   sleep.

3) Task A release nodes and push nodes into the z\_erofs\_lzma\_head. But
   task B was still sleeping.

One example report when the hung happens:
task:kworker/u3:1 state:D stack:14384 pid: 86 ppid: 2 flags:0x00004000
Workqueue: erofs\_unzipd z\_erofs\_decompressqueue\_work
Call Trace:
 \<TASK\>
 \_\_schedule+0x281/0x760
 schedule+0x49/0xb0
 z\_erofs\_lzma\_decompress+0x4bc/0x580
 ? cpu\_core\_flags+0x10/0x10
 z\_erofs\_decompress\_pcluster+0x49b/0xba0
 ? \_\_update\_load\_avg\_se+0x2b0/0x330
 ? \_\_update\_load\_avg\_se+0x2b0/0x330
 ? update\_load\_avg+0x5f/0x690
 ? update\_load\_avg+0x5f/0x690
 ? set\_next\_entity+0xbd/0x110
 ? \_raw\_spin\_unlock+0xd/0x20
 z\_erofs\_decompress\_queue.isra.0+0x2e/0x50
 z\_erofs\_decompressqueue\_work+0x30/0x60
 process\_one\_work+0x1d3/0x3a0
 worker\_thread+0x45/0x3a0
 ? process\_one\_work+0x3a0/0x3a0
 kthread+0xe2/0x110
 ? kthread\_complete\_and\_exit+0x20/0x20
 ret\_from\_fork+0x22/0x30
 \</TASK\>

## Affected and fixed versions

- Linux: \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 2478e36ec437a27f8a05bea9e4269a68c554e21f; \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 96aa2a6a89618d850ef082e4268007e840c28769; \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50193.md
Affected: Linux >= 622ceaddb7649ca328832f50ba1400af778d75fa, < 2478e36ec437a27f8a05bea9e4269a68c554e21f; >= 622ceaddb7649ca328832f50ba1400af778d75fa, < 96aa2a6a89618d850ef082e4268007e840c28769; >= 622ceaddb7649ca328832f50ba1400af778d75fa, < 2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65; Linux 5.16
Fixed in: Linux 2478e36ec437a27f8a05bea9e4269a68c554e21f, Linux 96aa2a6a89618d850ef082e4268007e840c28769, Linux 2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65

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

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

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

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

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

Linux \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 2478e36ec437a27f8a05bea9e4269a68c554e21f; \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 96aa2a6a89618d850ef082e4268007e840c28769; \>= 622ceaddb7649ca328832f50ba1400af778d75fa, \< 2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65; Linux 5.16.

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

Yes. Fixed in Linux 2478e36ec437a27f8a05bea9e4269a68c554e21f, Linux 96aa2a6a89618d850ef082e4268007e840c28769, Linux 2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65. Upgrade Linux to 2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65 or later.

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

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/2478e36ec437a27f8a05bea9e4269a68c554e21f>
- patch: <https://git.kernel.org/stable/c/96aa2a6a89618d850ef082e4268007e840c28769>
- patch: <https://git.kernel.org/stable/c/2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65>

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

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