# CVE-2022-48983: io\_uring: Fix a null-ptr-deref in io\_tctx\_exit\_cb()

> 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.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-10-21T20:06:00.376Z
- **Modified:** 2026-06-17T05:16:46.507Z

## Who should check

- Anyone running Linux \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< f895511de9d27fff71dad2c234ad53b4afd2b06c; \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< d91edca1943453aaaba4f380f6f364346222e5cf; \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< 998b30c3948e4d0b1097e639918c5cff332acac5
- Anyone running Linux 5.12

## Description

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

io\_uring: Fix a null-ptr-deref in io\_tctx\_exit\_cb()

Syzkaller reports a NULL deref bug as follows:

 BUG: KASAN: null-ptr-deref in io\_tctx\_exit\_cb+0x53/0xd3
 Read of size 4 at addr 0000000000000138 by task file1/1955

 CPU: 1 PID: 1955 Comm: file1 Not tainted 6.1.0-rc7-00103-gef4d3ea40565 \#75
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2.el7 04/01/2014
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0xcd/0x134
  ? io\_tctx\_exit\_cb+0x53/0xd3
  kasan\_report+0xbb/0x1f0
  ? io\_tctx\_exit\_cb+0x53/0xd3
  kasan\_check\_range+0x140/0x190
  io\_tctx\_exit\_cb+0x53/0xd3
  task\_work\_run+0x164/0x250
  ? task\_work\_cancel+0x30/0x30
  get\_signal+0x1c3/0x2440
  ? lock\_downgrade+0x6e0/0x6e0
  ? lock\_downgrade+0x6e0/0x6e0
  ? exit\_signals+0x8b0/0x8b0
  ? do\_raw\_read\_unlock+0x3b/0x70
  ? do\_raw\_spin\_unlock+0x50/0x230
  arch\_do\_signal\_or\_restart+0x82/0x2470
  ? kmem\_cache\_free+0x260/0x4b0
  ? putname+0xfe/0x140
  ? get\_sigframe\_size+0x10/0x10
  ? do\_execveat\_common.isra.0+0x226/0x710
  ? lockdep\_hardirqs\_on+0x79/0x100
  ? putname+0xfe/0x140
  ? do\_execveat\_common.isra.0+0x238/0x710
  exit\_to\_user\_mode\_prepare+0x15f/0x250
  syscall\_exit\_to\_user\_mode+0x19/0x50
  do\_syscall\_64+0x42/0xb0
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
 RIP: 0023:0x0
 Code: Unable to access opcode bytes at 0xffffffffffffffd6.
 RSP: 002b:00000000fffb7790 EFLAGS: 00000200 ORIG\_RAX: 000000000000000b
 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
  \</TASK\>
 Kernel panic - not syncing: panic\_on\_warn set ...

This happens because the adding of task\_work from io\_ring\_exit\_work()
isn't synchronized with canceling all work items from eg exec. The
execution of the two are ordered in that they are both run by the task
itself, but if io\_tctx\_exit\_cb() is queued while we're canceling all
work items off exec AND gets executed when the task exits to userspace
rather than in the main loop in io\_uring\_cancel\_generic(), then we can
find current-\>io\_uring == NULL and hit the above crash.

It's safe to add this NULL check here, because the execution of the two
paths are done by the task itself.

\[axboe: add code comment and also put an explanation in the commit msg\]

## Affected and fixed versions

- Linux: \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< f895511de9d27fff71dad2c234ad53b4afd2b06c; \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< d91edca1943453aaaba4f380f6f364346222e5cf; \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< 998b30c3948e4d0b1097e639918c5cff332acac5 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-48983.md
Affected: Linux >= d56d938b4bef3e1421a42023cdcd6e13c1f50831, < f895511de9d27fff71dad2c234ad53b4afd2b06c; >= d56d938b4bef3e1421a42023cdcd6e13c1f50831, < d91edca1943453aaaba4f380f6f364346222e5cf; >= d56d938b4bef3e1421a42023cdcd6e13c1f50831, < 998b30c3948e4d0b1097e639918c5cff332acac5; Linux 5.12
Fixed in: Linux 998b30c3948e4d0b1097e639918c5cff332acac5

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

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

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

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

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

Linux \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< f895511de9d27fff71dad2c234ad53b4afd2b06c; \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< d91edca1943453aaaba4f380f6f364346222e5cf; \>= d56d938b4bef3e1421a42023cdcd6e13c1f50831, \< 998b30c3948e4d0b1097e639918c5cff332acac5; Linux 5.12.

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

Yes. Fixed in Linux 998b30c3948e4d0b1097e639918c5cff332acac5. Upgrade Linux to 998b30c3948e4d0b1097e639918c5cff332acac5 or later.

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

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/f895511de9d27fff71dad2c234ad53b4afd2b06c>
- patch: <https://git.kernel.org/stable/c/d91edca1943453aaaba4f380f6f364346222e5cf>
- patch: <https://git.kernel.org/stable/c/998b30c3948e4d0b1097e639918c5cff332acac5>

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

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