CVE-2022-50193

Source
https://cve.org/CVERecord?id=CVE-2022-50193
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50193.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50193
Downstream
Published
2025-06-18T11:03:38.262Z
Modified
2026-04-02T08:28:18.660477Z
Summary
erofs: wake up all waiters after z_erofs_lzma_head ready
Details

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

erofs: wake up all waiters after zerofslzma_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 zerofsloadlzmaconfig which obtain all of the node from the zerofslzma_head.

2) At this time, task B called the zerofslzmadecompress and wanted to get a node. But the zerofslzmahead was empty, the Task B had to sleep.

3) Task A release nodes and push nodes into the zerofslzma_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: erofsunzipd zerofsdecompressqueuework Call Trace: <TASK> __schedule+0x281/0x760 schedule+0x49/0xb0 zerofslzmadecompress+0x4bc/0x580 ? cpucoreflags+0x10/0x10 zerofsdecompresspcluster+0x49b/0xba0 ? __updateloadavg_se+0x2b0/0x330 ? __updateloadavgse+0x2b0/0x330 ? updateloadavg+0x5f/0x690 ? updateloadavg+0x5f/0x690 ? setnextentity+0xbd/0x110 ? rawspinunlock+0xd/0x20 zerofsdecompressqueue.isra.0+0x2e/0x50 zerofsdecompressqueuework+0x30/0x60 processonework+0x1d3/0x3a0 workerthread+0x45/0x3a0 ? processonework+0x3a0/0x3a0 kthread+0xe2/0x110 ? kthreadcompleteandexit+0x20/0x20 retfromfork+0x22/0x30 </TASK>

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50193.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
622ceaddb7649ca328832f50ba1400af778d75fa
Fixed
2478e36ec437a27f8a05bea9e4269a68c554e21f
Fixed
96aa2a6a89618d850ef082e4268007e840c28769
Fixed
2df7c4bd7c1d2bc5ece5e9ed19dbd386810c2a65

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50193.json"