# CVE-2022-50373: fs: dlm: fix race in lowcomms

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.46% (percentile 32, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-09-17T14:56:28.282Z
- **Modified:** 2026-08-05T08:58:28.255Z

## Who should check

- Anyone running Linux \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< 27d3e646dd83bafd7094890462eebfce3ac31e4a; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< eb97e60a9eae632ff9104a580dbc4fdc58dc23cb; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< de7fdff754bb4d01e38e19964c309b6df6a79472; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< 30ea3257e8766027c4d8d609dcbd256ff9a76073; 7ae861bbfa0f69bd36bdff47f9755ad67a2bd219; \>= 5.13.2, \< 5.14
- Anyone running Linux 5.14

## Description

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

fs: dlm: fix race in lowcomms

This patch fixes a race between queue\_work() in
\_dlm\_lowcomms\_commit\_msg() and srcu\_read\_unlock(). The queue\_work() can
take the final reference of a dlm\_msg and so msg-\>idx can contain
garbage which is signaled by the following warning:

\[  676.237050\] ------------\[ cut here \]------------
\[  676.237052\] WARNING: CPU: 0 PID: 1060 at include/linux/srcu.h:189 dlm\_lowcomms\_commit\_msg+0x41/0x50
\[  676.238945\] Modules linked in: dlm\_locktorture torture rpcsec\_gss\_krb5 intel\_rapl\_msr intel\_rapl\_common iTCO\_wdt iTCO\_vendor\_support qxl kvm\_intel drm\_ttm\_helper vmw\_vsock\_virtio\_transport kvm vmw\_vsock\_virtio\_transport\_common ttm irqbypass crc32\_pclmul joydev crc32c\_intel serio\_raw drm\_kms\_helper vsock virtio\_scsi virtio\_console virtio\_balloon snd\_pcm drm syscopyarea sysfillrect sysimgblt snd\_timer fb\_sys\_fops i2c\_i801 lpc\_ich snd i2c\_smbus soundcore pcspkr
\[  676.244227\] CPU: 0 PID: 1060 Comm: lock\_torture\_wr Not tainted 5.19.0-rc3+ \#1546
\[  676.245216\] Hardware name: Red Hat KVM/RHEL-AV, BIOS 1.16.0-2.module+el8.7.0+15506+033991b0 04/01/2014
\[  676.246460\] RIP: 0010:dlm\_lowcomms\_commit\_msg+0x41/0x50
\[  676.247132\] Code: fe ff ff ff 75 24 48 c7 c6 bd 0f 49 bb 48 c7 c7 38 7c 01 bd e8 00 e7 ca ff 89 de 48 c7 c7 60 78 01 bd e8 42 3d cd ff 5b 5d c3 \<0f\> 0b eb d8 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48
\[  676.249253\] RSP: 0018:ffffa401c18ffc68 EFLAGS: 00010282
\[  676.249855\] RAX: 0000000000000001 RBX: 00000000ffff8b76 RCX: 0000000000000006
\[  676.250713\] RDX: 0000000000000000 RSI: ffffffffbccf3a10 RDI: ffffffffbcc7b62e
\[  676.251610\] RBP: ffffa401c18ffc70 R08: 0000000000000001 R09: 0000000000000001
\[  676.252481\] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000005
\[  676.253421\] R13: ffff8b76786ec370 R14: ffff8b76786ec370 R15: ffff8b76786ec480
\[  676.254257\] FS:  0000000000000000(0000) GS:ffff8b7777800000(0000) knlGS:0000000000000000
\[  676.255239\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  676.255897\] CR2: 00005590205d88b8 CR3: 000000017656c003 CR4: 0000000000770ee0
\[  676.256734\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[  676.257567\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[  676.258397\] PKRU: 55555554
\[  676.258729\] Call Trace:
\[  676.259063\]  \<TASK\>
\[  676.259354\]  dlm\_midcomms\_commit\_mhandle+0xcc/0x110
\[  676.259964\]  queue\_bast+0x8b/0xb0
\[  676.260423\]  grant\_pending\_locks+0x166/0x1b0
\[  676.261007\]  \_unlock\_lock+0x75/0x90
\[  676.261469\]  unlock\_lock.isra.57+0x62/0xa0
\[  676.262009\]  dlm\_unlock+0x21e/0x330
\[  676.262457\]  ? lock\_torture\_stats+0x80/0x80 \[dlm\_locktorture\]
\[  676.263183\]  torture\_unlock+0x5a/0x90 \[dlm\_locktorture\]
\[  676.263815\]  ? preempt\_count\_sub+0xba/0x100
\[  676.264361\]  ? complete+0x1d/0x60
\[  676.264777\]  lock\_torture\_writer+0xb8/0x150 \[dlm\_locktorture\]
\[  676.265555\]  kthread+0x10a/0x130
\[  676.266007\]  ? kthread\_complete\_and\_exit+0x20/0x20
\[  676.266616\]  ret\_from\_fork+0x22/0x30
\[  676.267097\]  \</TASK\>
\[  676.267381\] irq event stamp: 9579855
\[  676.267824\] hardirqs last  enabled at (9579863): \[\<ffffffffbb14e6f8\>\] \_\_up\_console\_sem+0x58/0x60
\[  676.268896\] hardirqs last disabled at (9579872): \[\<ffffffffbb14e6dd\>\] \_\_up\_console\_sem+0x3d/0x60
\[  676.270008\] softirqs last  enabled at (9579798): \[\<ffffffffbc200349\>\] \_\_do\_softirq+0x349/0x4c7
\[  676.271438\] softirqs last disabled at (9579897): \[\<ffffffffbb0d54c0\>\] irq\_exit\_rcu+0xb0/0xf0
\[  676.272796\] ---\[ end trace 0000000000000000 \]---

I reproduced this warning with dlm\_locktorture test which is currently
not upstream. However this patch fix the issue by make a additional
refcount between dlm\_lowcomms\_new\_msg() and dlm\_lowcomms\_commit\_msg().
In case of the race the kref\_put() in dlm\_lowcomms\_commit\_msg() will be
the final put.

## Affected and fixed versions

- Linux: \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< 27d3e646dd83bafd7094890462eebfce3ac31e4a; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< eb97e60a9eae632ff9104a580dbc4fdc58dc23cb; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< de7fdff754bb4d01e38e19964c309b6df6a79472; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< 30ea3257e8766027c4d8d609dcbd256ff9a76073; 7ae861bbfa0f69bd36bdff47f9755ad67a2bd219; \>= 5.13.2, \< 5.14 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50373.md
Affected: Linux >= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, < 27d3e646dd83bafd7094890462eebfce3ac31e4a; >= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, < eb97e60a9eae632ff9104a580dbc4fdc58dc23cb; >= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, < de7fdff754bb4d01e38e19964c309b6df6a79472; >= b38bc9c2b3171f4411d8001…
Fixed in: Linux 27d3e646dd83bafd7094890462eebfce3ac31e4a, Linux 30ea3257e8766027c4d8d609dcbd256ff9a76073, Linux 5.14

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< 27d3e646dd83bafd7094890462eebfce3ac31e4a; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< eb97e60a9eae632ff9104a580dbc4fdc58dc23cb; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< de7fdff754bb4d01e38e19964c309b6df6a79472; \>= b38bc9c2b3171f4411d80015ecb876bc6f9bcd26, \< 30ea3257e8766027c4d8d609dcbd256ff9a76073; 7ae861bbfa0f69bd36bdff47f9755ad67a2bd219; \>= 5.13.2, \< 5.14; Linux 5.14.

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

Yes. Fixed in Linux 27d3e646dd83bafd7094890462eebfce3ac31e4a, Linux 30ea3257e8766027c4d8d609dcbd256ff9a76073, Linux 5.14. Upgrade Linux to 5.14 or later.

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

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/27d3e646dd83bafd7094890462eebfce3ac31e4a>
- patch: <https://git.kernel.org/stable/c/eb97e60a9eae632ff9104a580dbc4fdc58dc23cb>
- patch: <https://git.kernel.org/stable/c/de7fdff754bb4d01e38e19964c309b6df6a79472>
- patch: <https://git.kernel.org/stable/c/30ea3257e8766027c4d8d609dcbd256ff9a76073>

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

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