# CVE-2022-50705: io\_uring/rw: defer fsnotify calls to task context

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T10:55:20.020Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= df1ec53252d5b5b26ea49e30438741c9a6d89857, \< 89a410dbd0f159ddd308f19d6eb682fc753e4771; \>= f63cf5192fe3418ad5ae1a4412eba5694b145f79, \< 2a853c206e553dd9c0a55c22858fd6a446d93e15; \>= f63cf5192fe3418ad5ae1a4412eba5694b145f79, \< b000145e9907809406d8164c3b2b8861d95aecd1; dfbe550c8235b7e98284db37eeeddfd3b4b19b00; b436d1e92662adecafff4c95baae6352289c2d80; \>= 5.15.54, \< 5.15.90; \>= 5.16.19, \< 5.17; \>= 5.17.2, \< 5.18
- Anyone running Linux 5.18

## Description

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

io\_uring/rw: defer fsnotify calls to task context

We can't call these off the kiocb completion as that might be off
soft/hard irq context. Defer the calls to when we process the
task\_work for this request. That avoids valid complaints like:

stack backtrace:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.0.0-rc6-syzkaller-00321-g105a36f3694e \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Call Trace:
 \<IRQ\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
 print\_usage\_bug kernel/locking/lockdep.c:3961 \[inline\]
 valid\_state kernel/locking/lockdep.c:3973 \[inline\]
 mark\_lock\_irq kernel/locking/lockdep.c:4176 \[inline\]
 mark\_lock.part.0.cold+0x18/0xd8 kernel/locking/lockdep.c:4632
 mark\_lock kernel/locking/lockdep.c:4596 \[inline\]
 mark\_usage kernel/locking/lockdep.c:4527 \[inline\]
 \_\_lock\_acquire+0x11d9/0x56d0 kernel/locking/lockdep.c:5007
 lock\_acquire kernel/locking/lockdep.c:5666 \[inline\]
 lock\_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631
 \_\_fs\_reclaim\_acquire mm/page\_alloc.c:4674 \[inline\]
 fs\_reclaim\_acquire+0x115/0x160 mm/page\_alloc.c:4688
 might\_alloc include/linux/sched/mm.h:271 \[inline\]
 slab\_pre\_alloc\_hook mm/slab.h:700 \[inline\]
 slab\_alloc mm/slab.c:3278 \[inline\]
 \_\_kmem\_cache\_alloc\_lru mm/slab.c:3471 \[inline\]
 kmem\_cache\_alloc+0x39/0x520 mm/slab.c:3491
 fanotify\_alloc\_fid\_event fs/notify/fanotify/fanotify.c:580 \[inline\]
 fanotify\_alloc\_event fs/notify/fanotify/fanotify.c:813 \[inline\]
 fanotify\_handle\_event+0x1130/0x3f40 fs/notify/fanotify/fanotify.c:948
 send\_to\_group fs/notify/fsnotify.c:360 \[inline\]
 fsnotify+0xafb/0x1680 fs/notify/fsnotify.c:570
 \_\_fsnotify\_parent+0x62f/0xa60 fs/notify/fsnotify.c:230
 fsnotify\_parent include/linux/fsnotify.h:77 \[inline\]
 fsnotify\_file include/linux/fsnotify.h:99 \[inline\]
 fsnotify\_access include/linux/fsnotify.h:309 \[inline\]
 \_\_io\_complete\_rw\_common+0x485/0x720 io\_uring/rw.c:195
 io\_complete\_rw+0x1a/0x1f0 io\_uring/rw.c:228
 iomap\_dio\_complete\_work fs/iomap/direct-io.c:144 \[inline\]
 iomap\_dio\_bio\_end\_io+0x438/0x5e0 fs/iomap/direct-io.c:178
 bio\_endio+0x5f9/0x780 block/bio.c:1564
 req\_bio\_endio block/blk-mq.c:695 \[inline\]
 blk\_update\_request+0x3fc/0x1300 block/blk-mq.c:825
 scsi\_end\_request+0x7a/0x9a0 drivers/scsi/scsi\_lib.c:541
 scsi\_io\_completion+0x173/0x1f70 drivers/scsi/scsi\_lib.c:971
 scsi\_complete+0x122/0x3b0 drivers/scsi/scsi\_lib.c:1438
 blk\_complete\_reqs+0xad/0xe0 block/blk-mq.c:1022
 \_\_do\_softirq+0x1d3/0x9c6 kernel/softirq.c:571
 invoke\_softirq kernel/softirq.c:445 \[inline\]
 \_\_irq\_exit\_rcu+0x123/0x180 kernel/softirq.c:650
 irq\_exit\_rcu+0x5/0x20 kernel/softirq.c:662
 common\_interrupt+0xa9/0xc0 arch/x86/kernel/irq.c:240

## Affected and fixed versions

- Linux: \>= df1ec53252d5b5b26ea49e30438741c9a6d89857, \< 89a410dbd0f159ddd308f19d6eb682fc753e4771; \>= f63cf5192fe3418ad5ae1a4412eba5694b145f79, \< 2a853c206e553dd9c0a55c22858fd6a446d93e15; \>= f63cf5192fe3418ad5ae1a4412eba5694b145f79, \< b000145e9907809406d8164c3b2b8861d95aecd1; dfbe550c8235b7e98284db37eeeddfd3b4b19b00; b436d1e92662adecafff4c95baae6352289c2d80; \>= 5.15.54, \< 5.15.90; \>= 5.16.19, \< 5.17; \>= 5.17.2, \< 5.18 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50705.md
Affected: Linux >= df1ec53252d5b5b26ea49e30438741c9a6d89857, < 89a410dbd0f159ddd308f19d6eb682fc753e4771; >= f63cf5192fe3418ad5ae1a4412eba5694b145f79, < 2a853c206e553dd9c0a55c22858fd6a446d93e15; >= f63cf5192fe3418ad5ae1a4412eba5694b145f79, < b000145e9907809406d8164c3b2b8861d95aecd1; dfbe550c8235b7e98284db37ee…
Fixed in: Linux 89a410dbd0f159ddd308f19d6eb682fc753e4771, Linux 2a853c206e553dd9c0a55c22858fd6a446d93e15, Linux 5.15.90, Linux 5.17, Linux 5.18

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

There is no confirmed exploitation: CVE-2022-50705 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-50705?

It has no CVSS score yet. Unknown.

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

Linux \>= df1ec53252d5b5b26ea49e30438741c9a6d89857, \< 89a410dbd0f159ddd308f19d6eb682fc753e4771; \>= f63cf5192fe3418ad5ae1a4412eba5694b145f79, \< 2a853c206e553dd9c0a55c22858fd6a446d93e15; \>= f63cf5192fe3418ad5ae1a4412eba5694b145f79, \< b000145e9907809406d8164c3b2b8861d95aecd1; dfbe550c8235b7e98284db37eeeddfd3b4b19b00; b436d1e92662adecafff4c95baae6352289c2d80; \>= 5.15.54, \< 5.15.90; \>= 5.16.19, \< 5.17; \>= 5.17.2, \< 5.18; Linux 5.18.

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

Yes. Fixed in Linux 89a410dbd0f159ddd308f19d6eb682fc753e4771, Linux 2a853c206e553dd9c0a55c22858fd6a446d93e15, Linux 5.15.90, Linux 5.17, Linux 5.18. Upgrade Linux to 5.18 or later.

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

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

- other: <https://git.kernel.org/stable/c/89a410dbd0f159ddd308f19d6eb682fc753e4771>
- other: <https://git.kernel.org/stable/c/2a853c206e553dd9c0a55c22858fd6a446d93e15>
- other: <https://git.kernel.org/stable/c/b000145e9907809406d8164c3b2b8861d95aecd1>

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

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