# CVE-2022-49322: tracing: Fix sleeping function called from invalid context on RT kernel

> 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, CNA) `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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-02-26T02:10:46.658Z
- **Modified:** 2026-06-17T05:17:42.783Z

## Who should check

- Anyone running Linux \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< be1f323fb9d9b14a505ca22d742d321769454de1; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 40f9fde06b25884baa0c4bd138b909a9b67218b4; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 48c6ee7d6c614f09b2c8553a95eefef6ecf196e0; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 1788e6dbb61286215442b1af99e51405a6206762; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 9b534640a2c6a8d88168febc82ec6d161184f2ec; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 43bfc4dccc416c964b53cbdc430e814f8b6f770b; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 9abf3db8bdb63ab545034148ef2118f4d088ca59; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 12025abdc8539ed9d5014e2d647a3fd1bd3de5cd
- Anyone running Linux 3.19

## Description

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

tracing: Fix sleeping function called from invalid context on RT kernel

When setting bootparams="trace\_event=initcall:initcall\_start tp\_printk=1" in the
cmdline, the output\_printk() was called, and the spin\_lock\_irqsave() was called in the
atomic and irq disable interrupt context suitation. On the PREEMPT\_RT kernel,
these locks are replaced with sleepable rt-spinlock, so the stack calltrace will
be triggered.
Fix it by raw\_spin\_lock\_irqsave when PREEMPT\_RT and "trace\_event=initcall:initcall\_start
tp\_printk=1" enabled.

 BUG: sleeping function called from invalid context at kernel/locking/spinlock\_rt.c:46
 in\_atomic(): 1, irqs\_disabled(): 0, non\_block: 0, pid: 1, name: swapper/0
 preempt\_count: 2, expected: 0
 RCU nest depth: 0, expected: 0
 Preemption disabled at:
 \[\<ffffffff8992303e\>\] try\_to\_wake\_up+0x7e/0xba0
 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.1-rt17+ \#19 34c5812404187a875f32bee7977f7367f9679ea7
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x60/0x8c
  dump\_stack+0x10/0x12
  \_\_might\_resched.cold+0x11d/0x155
  rt\_spin\_lock+0x40/0x70
  trace\_event\_buffer\_commit+0x2fa/0x4c0
  ? map\_vsyscall+0x93/0x93
  trace\_event\_raw\_event\_initcall\_start+0xbe/0x110
  ? perf\_trace\_initcall\_finish+0x210/0x210
  ? probe\_sched\_wakeup+0x34/0x40
  ? ttwu\_do\_wakeup+0xda/0x310
  ? trace\_hardirqs\_on+0x35/0x170
  ? map\_vsyscall+0x93/0x93
  do\_one\_initcall+0x217/0x3c0
  ? trace\_event\_raw\_event\_initcall\_level+0x170/0x170
  ? push\_cpu\_stop+0x400/0x400
  ? cblist\_init\_generic+0x241/0x290
  kernel\_init\_freeable+0x1ac/0x347
  ? \_raw\_spin\_unlock\_irq+0x65/0x80
  ? rest\_init+0xf0/0xf0
  kernel\_init+0x1e/0x150
  ret\_from\_fork+0x22/0x30
  \</TASK\>

## Affected and fixed versions

- Linux: \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< be1f323fb9d9b14a505ca22d742d321769454de1; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 40f9fde06b25884baa0c4bd138b909a9b67218b4; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 48c6ee7d6c614f09b2c8553a95eefef6ecf196e0; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 1788e6dbb61286215442b1af99e51405a6206762; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 9b534640a2c6a8d88168febc82ec6d161184f2ec; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 43bfc4dccc416c964b53cbdc430e814f8b6f770b; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 9abf3db8bdb63ab545034148ef2118f4d088ca59; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 12025abdc8539ed9d5014e2d647a3fd1bd3de5cd (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49322.md
Affected: Linux >= 0daa2302968c13b657118d6ac92471f8fd2f3f28, < be1f323fb9d9b14a505ca22d742d321769454de1; >= 0daa2302968c13b657118d6ac92471f8fd2f3f28, < 40f9fde06b25884baa0c4bd138b909a9b67218b4; >= 0daa2302968c13b657118d6ac92471f8fd2f3f28, < 48c6ee7d6c614f09b2c8553a95eefef6ecf196e0; >= 0daa2302968c13b657118d6…
Fixed in: Linux 40f9fde06b25884baa0c4bd138b909a9b67218b4, Linux 48c6ee7d6c614f09b2c8553a95eefef6ecf196e0, Linux 1788e6dbb61286215442b1af99e51405a6206762, Linux 9b534640a2c6a8d88168febc82ec6d161184f2ec, Linux 43bfc4dccc416c964b53cbdc430e814f8b6f770b, Linux 9abf3db8bdb63ab545034148ef2118f4d088ca59, Linux 12025…

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

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

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

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

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

Linux \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< be1f323fb9d9b14a505ca22d742d321769454de1; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 40f9fde06b25884baa0c4bd138b909a9b67218b4; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 48c6ee7d6c614f09b2c8553a95eefef6ecf196e0; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 1788e6dbb61286215442b1af99e51405a6206762; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 9b534640a2c6a8d88168febc82ec6d161184f2ec; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 43bfc4dccc416c964b53cbdc430e814f8b6f770b; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 9abf3db8bdb63ab545034148ef2118f4d088ca59; \>= 0daa2302968c13b657118d6ac92471f8fd2f3f28, \< 12025abdc8539ed9d5014e2d647a3fd1bd3de5cd; Linux 3.19.

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

Yes. Fixed in Linux 40f9fde06b25884baa0c4bd138b909a9b67218b4, Linux 48c6ee7d6c614f09b2c8553a95eefef6ecf196e0, Linux 1788e6dbb61286215442b1af99e51405a6206762, Linux 9b534640a2c6a8d88168febc82ec6d161184f2ec, Linux 43bfc4dccc416c964b53cbdc430e814f8b6f770b, Linux 9abf3db8bdb63ab545034148ef2118f4d088ca59, Linux 12025abdc8539ed9d5014e2d647a3fd1bd3de5cd. Upgrade Linux to 12025abdc8539ed9d5014e2d647a3fd1bd3de5cd or later.

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

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/be1f323fb9d9b14a505ca22d742d321769454de1>
- patch: <https://git.kernel.org/stable/c/40f9fde06b25884baa0c4bd138b909a9b67218b4>
- patch: <https://git.kernel.org/stable/c/48c6ee7d6c614f09b2c8553a95eefef6ecf196e0>
- patch: <https://git.kernel.org/stable/c/1788e6dbb61286215442b1af99e51405a6206762>
- patch: <https://git.kernel.org/stable/c/9b534640a2c6a8d88168febc82ec6d161184f2ec>
- patch: <https://git.kernel.org/stable/c/43bfc4dccc416c964b53cbdc430e814f8b6f770b>
- patch: <https://git.kernel.org/stable/c/9abf3db8bdb63ab545034148ef2118f4d088ca59>
- patch: <https://git.kernel.org/stable/c/12025abdc8539ed9d5014e2d647a3fd1bd3de5cd>

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

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