# CVE-2022-49407: dlm: fix plock invalid read

> 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.88% (percentile 57, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-02-26T02:12:31.562Z
- **Modified:** 2026-10-15T22:17:24.220Z

## Who should check

- Anyone running Linux \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 2c55155cc365861044d9e6e80e342693e8805e33; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 72f2f68970f9bdc252d59e119b385a6441b0b155; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 5a1765adf9855cf0f6d3f7e0eb4b78ca66f70dee; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 49cd9eb7b9a7b88124b31e31f8e539acaf1b3a6d; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 899bc4429174861122f0c236588700a4710c1fec; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< acdad5bc9827922ec2f2e84fd198718aa8e8ab92; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 56aa8d1fbd02357f3bf81bdfba1cde87ce8402fc; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< e421872fa17542cf33747071fb141b0130ce9ef7; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 42252d0d2aa9b94d168241710a761588b3959019
- Anyone running Linux 2.6.22

## Description

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

dlm: fix plock invalid read

This patch fixes an invalid read showed by KASAN. A unlock will allocate a
"struct plock\_op" and a followed send\_op() will append it to a global
send\_list data structure. In some cases a followed dev\_read() moves it
to recv\_list and dev\_write() will cast it to "struct plock\_xop" and access
fields which are only available in those structures. At this point an
invalid read happens by accessing those fields.

To fix this issue the "callback" field is moved to "struct plock\_op" to
indicate that a cast to "plock\_xop" is allowed and does the additional
"plock\_xop" handling if set.

Example of the KASAN output which showed the invalid read:

\[ 2064.296453\] ==================================================================
\[ 2064.304852\] BUG: KASAN: slab-out-of-bounds in dev\_write+0x52b/0x5a0 \[dlm\]
\[ 2064.306491\] Read of size 8 at addr ffff88800ef227d8 by task dlm\_controld/7484
\[ 2064.308168\]
\[ 2064.308575\] CPU: 0 PID: 7484 Comm: dlm\_controld Kdump: loaded Not tainted 5.14.0+ \#9
\[ 2064.310292\] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
\[ 2064.311618\] Call Trace:
\[ 2064.312218\]  dump\_stack\_lvl+0x56/0x7b
\[ 2064.313150\]  print\_address\_description.constprop.8+0x21/0x150
\[ 2064.314578\]  ? dev\_write+0x52b/0x5a0 \[dlm\]
\[ 2064.315610\]  ? dev\_write+0x52b/0x5a0 \[dlm\]
\[ 2064.316595\]  kasan\_report.cold.14+0x7f/0x11b
\[ 2064.317674\]  ? dev\_write+0x52b/0x5a0 \[dlm\]
\[ 2064.318687\]  dev\_write+0x52b/0x5a0 \[dlm\]
\[ 2064.319629\]  ? dev\_read+0x4a0/0x4a0 \[dlm\]
\[ 2064.320713\]  ? bpf\_lsm\_kernfs\_init\_security+0x10/0x10
\[ 2064.321926\]  vfs\_write+0x17e/0x930
\[ 2064.322769\]  ? \_\_fget\_light+0x1aa/0x220
\[ 2064.323753\]  ksys\_write+0xf1/0x1c0
\[ 2064.324548\]  ? \_\_ia32\_sys\_read+0xb0/0xb0
\[ 2064.325464\]  do\_syscall\_64+0x3a/0x80
\[ 2064.326387\]  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
\[ 2064.327606\] RIP: 0033:0x7f807e4ba96f
\[ 2064.328470\] Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 39 87 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 \<48\> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 7c 87 f8 ff 48
\[ 2064.332902\] RSP: 002b:00007ffd50cfe6e0 EFLAGS: 00000293 ORIG\_RAX: 0000000000000001
\[ 2064.334658\] RAX: ffffffffffffffda RBX: 000055cc3886eb30 RCX: 00007f807e4ba96f
\[ 2064.336275\] RDX: 0000000000000040 RSI: 00007ffd50cfe7e0 RDI: 0000000000000010
\[ 2064.337980\] RBP: 00007ffd50cfe7e0 R08: 0000000000000000 R09: 0000000000000001
\[ 2064.339560\] R10: 000055cc3886eb30 R11: 0000000000000293 R12: 000055cc3886eb80
\[ 2064.341237\] R13: 000055cc3886eb00 R14: 000055cc3886f590 R15: 0000000000000001
\[ 2064.342857\]
\[ 2064.343226\] Allocated by task 12438:
\[ 2064.344057\]  kasan\_save\_stack+0x1c/0x40
\[ 2064.345079\]  \_\_kasan\_kmalloc+0x84/0xa0
\[ 2064.345933\]  kmem\_cache\_alloc\_trace+0x13b/0x220
\[ 2064.346953\]  dlm\_posix\_unlock+0xec/0x720 \[dlm\]
\[ 2064.348811\]  do\_lock\_file\_wait.part.32+0xca/0x1d0
\[ 2064.351070\]  fcntl\_setlk+0x281/0xbc0
\[ 2064.352879\]  do\_fcntl+0x5e4/0xfe0
\[ 2064.354657\]  \_\_x64\_sys\_fcntl+0x11f/0x170
\[ 2064.356550\]  do\_syscall\_64+0x3a/0x80
\[ 2064.358259\]  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
\[ 2064.360745\]
\[ 2064.361511\] Last potentially related work creation:
\[ 2064.363957\]  kasan\_save\_stack+0x1c/0x40
\[ 2064.365811\]  \_\_kasan\_record\_aux\_stack+0xaf/0xc0
\[ 2064.368100\]  call\_rcu+0x11b/0xf70
\[ 2064.369785\]  dlm\_process\_incoming\_buffer+0x47d/0xfd0 \[dlm\]
\[ 2064.372404\]  receive\_from\_sock+0x290/0x770 \[dlm\]
\[ 2064.374607\]  process\_recv\_sockets+0x32/0x40 \[dlm\]
\[ 2064.377290\]  process\_one\_work+0x9a8/0x16e0
\[ 2064.379357\]  worker\_thread+0x87/0xbf0
\[ 2064.381188\]  kthread+0x3ac/0x490
\[ 2064.383460\]  ret\_from\_fork+0x22/0x30
\[ 2064.385588\]
\[ 2064.386518\] Second to last potentially related work creation:
\[ 2064.389219\]  kasan\_save\_stack+0x1c/0x40
\[ 2064.391043\]  \_\_kasan\_record\_aux\_stack+0xaf/0xc0
\[ 2064.393303\]  call\_rcu+0x11b/0xf70
\[ 2064.394885\]  dlm\_process\_incoming\_buffer+0x47d/0xfd0 \[dlm\]
\[ 2064.397694\]  receive\_from\_sock+0x290/0x770 
---truncated---

## Affected and fixed versions

- Linux: \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 2c55155cc365861044d9e6e80e342693e8805e33; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 72f2f68970f9bdc252d59e119b385a6441b0b155; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 5a1765adf9855cf0f6d3f7e0eb4b78ca66f70dee; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 49cd9eb7b9a7b88124b31e31f8e539acaf1b3a6d; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 899bc4429174861122f0c236588700a4710c1fec; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< acdad5bc9827922ec2f2e84fd198718aa8e8ab92; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 56aa8d1fbd02357f3bf81bdfba1cde87ce8402fc; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< e421872fa17542cf33747071fb141b0130ce9ef7; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 42252d0d2aa9b94d168241710a761588b3959019 (cvelist)
- Linux: 2.6.22 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49407.md
Affected: Linux >= 586759f03e2e9031ac5589912a51a909ed53c30a, < 2c55155cc365861044d9e6e80e342693e8805e33; >= 586759f03e2e9031ac5589912a51a909ed53c30a, < 72f2f68970f9bdc252d59e119b385a6441b0b155; >= 586759f03e2e9031ac5589912a51a909ed53c30a, < 5a1765adf9855cf0f6d3f7e0eb4b78ca66f70dee; >= 586759f03e2e9031ac55899…
Fixed in: Linux 2c55155cc365861044d9e6e80e342693e8805e33, Linux 72f2f68970f9bdc252d59e119b385a6441b0b155, Linux 5a1765adf9855cf0f6d3f7e0eb4b78ca66f70dee, Linux 49cd9eb7b9a7b88124b31e31f8e539acaf1b3a6d, Linux 899bc4429174861122f0c236588700a4710c1fec, Linux 56aa8d1fbd02357f3bf81bdfba1cde87ce8402fc, Linux 42252…

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

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

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

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

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

Linux \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 2c55155cc365861044d9e6e80e342693e8805e33; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 72f2f68970f9bdc252d59e119b385a6441b0b155; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 5a1765adf9855cf0f6d3f7e0eb4b78ca66f70dee; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 49cd9eb7b9a7b88124b31e31f8e539acaf1b3a6d; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 899bc4429174861122f0c236588700a4710c1fec; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< acdad5bc9827922ec2f2e84fd198718aa8e8ab92; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 56aa8d1fbd02357f3bf81bdfba1cde87ce8402fc; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< e421872fa17542cf33747071fb141b0130ce9ef7; \>= 586759f03e2e9031ac5589912a51a909ed53c30a, \< 42252d0d2aa9b94d168241710a761588b3959019; Linux 2.6.22.

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

Yes. Fixed in Linux 2c55155cc365861044d9e6e80e342693e8805e33, Linux 72f2f68970f9bdc252d59e119b385a6441b0b155, Linux 5a1765adf9855cf0f6d3f7e0eb4b78ca66f70dee, Linux 49cd9eb7b9a7b88124b31e31f8e539acaf1b3a6d, Linux 899bc4429174861122f0c236588700a4710c1fec, Linux 56aa8d1fbd02357f3bf81bdfba1cde87ce8402fc, Linux 42252d0d2aa9b94d168241710a761588b3959019. Upgrade Linux to 42252d0d2aa9b94d168241710a761588b3959019 or later.

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

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/2c55155cc365861044d9e6e80e342693e8805e33>
- patch: <https://git.kernel.org/stable/c/72f2f68970f9bdc252d59e119b385a6441b0b155>
- patch: <https://git.kernel.org/stable/c/5a1765adf9855cf0f6d3f7e0eb4b78ca66f70dee>
- patch: <https://git.kernel.org/stable/c/49cd9eb7b9a7b88124b31e31f8e539acaf1b3a6d>
- patch: <https://git.kernel.org/stable/c/899bc4429174861122f0c236588700a4710c1fec>
- patch: <https://git.kernel.org/stable/c/acdad5bc9827922ec2f2e84fd198718aa8e8ab92>
- patch: <https://git.kernel.org/stable/c/56aa8d1fbd02357f3bf81bdfba1cde87ce8402fc>
- patch: <https://git.kernel.org/stable/c/e421872fa17542cf33747071fb141b0130ce9ef7>
- patch: <https://git.kernel.org/stable/c/42252d0d2aa9b94d168241710a761588b3959019>

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

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