# CVE-2022-49383: watchdog: rzg2l\_wdt: Fix 'BUG: Invalid wait context'

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-02-26T02:11:19.768Z
- **Modified:** 2026-06-17T05:17:53.570Z

## Who should check

- Anyone running Linux \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< 6505541e5298cea2b79da68ee626f583f8e18784; \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< 0a635239cd5484d8f2e702713ccc49ec82aa7594; \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< e4cf89596c1f1e33309556699f910ced4abbaf44
- Anyone running Linux 5.17

## Description

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

watchdog: rzg2l\_wdt: Fix 'BUG: Invalid wait context'

This patch fixes the issue 'BUG: Invalid wait context' during restart()
callback by using clk\_prepare\_enable() instead of pm\_runtime\_get\_sync()
for turning on the clocks during restart.

This issue is noticed when testing with renesas\_defconfig.

\[   42.213802\] reboot: Restarting system
\[   42.217860\]
\[   42.219364\] =============================
\[   42.223368\] \[ BUG: Invalid wait context \]
\[   42.227372\] 5.17.0-rc5-arm64-renesas-00002-g10393723e35e \#522 Not tainted
\[   42.234153\] -----------------------------
\[   42.238155\] systemd-shutdow/1 is trying to lock:
\[   42.242766\] ffff00000a650828 (&genpd-\>mlock){+.+.}-{3:3}, at: genpd\_lock\_mtx+0x14/0x20
\[   42.250709\] other info that might help us debug this:
\[   42.255753\] context-{4:4}
\[   42.258368\] 2 locks held by systemd-shutdow/1:
\[   42.262806\]  \#0: ffff80000944e1c8 (system\_transition\_mutex\#2){+.+.}-{3:3}, at: \_\_do\_sys\_reboot+0xd0/0x250
\[   42.272388\]  \#1: ffff8000094c4e40 (rcu\_read\_lock){....}-{1:2}, at: atomic\_notifier\_call\_chain+0x0/0x150
\[   42.281795\] stack backtrace:
\[   42.284672\] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.17.0-rc5-arm64-renesas-00002-g10393723e35e \#522
\[   42.294577\] Hardware name: Renesas SMARC EVK based on r9a07g044c2 (DT)
\[   42.301096\] Call trace:
\[   42.303538\]  dump\_backtrace+0xcc/0xd8
\[   42.307203\]  show\_stack+0x14/0x30
\[   42.310517\]  dump\_stack\_lvl+0x88/0xb0
\[   42.314180\]  dump\_stack+0x14/0x2c
\[   42.317492\]  \_\_lock\_acquire+0x1b24/0x1b50
\[   42.321502\]  lock\_acquire+0x120/0x3a8
\[   42.325162\]  \_\_mutex\_lock+0x84/0x8f8
\[   42.328737\]  mutex\_lock\_nested+0x30/0x58
\[   42.332658\]  genpd\_lock\_mtx+0x14/0x20
\[   42.336319\]  genpd\_runtime\_resume+0xc4/0x228
\[   42.340587\]  \_\_rpm\_callback+0x44/0x170
\[   42.344337\]  rpm\_callback+0x64/0x70
\[   42.347824\]  rpm\_resume+0x4e0/0x6b8
\[   42.351310\]  \_\_pm\_runtime\_resume+0x50/0x78
\[   42.355404\]  rzg2l\_wdt\_restart+0x28/0x68
\[   42.359329\]  watchdog\_restart\_notifier+0x1c/0x30
\[   42.363943\]  atomic\_notifier\_call\_chain+0x94/0x150
\[   42.368732\]  do\_kernel\_restart+0x24/0x30
\[   42.372652\]  machine\_restart+0x44/0x70
\[   42.376399\]  kernel\_restart+0x3c/0x60
\[   42.380058\]  \_\_do\_sys\_reboot+0x228/0x250
\[   42.383977\]  \_\_arm64\_sys\_reboot+0x20/0x28
\[   42.387983\]  invoke\_syscall+0x40/0xf8

## Affected and fixed versions

- Linux: \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< 6505541e5298cea2b79da68ee626f583f8e18784; \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< 0a635239cd5484d8f2e702713ccc49ec82aa7594; \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< e4cf89596c1f1e33309556699f910ced4abbaf44 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49383. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49383.md
Affected: Linux >= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, < 6505541e5298cea2b79da68ee626f583f8e18784; >= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, < 0a635239cd5484d8f2e702713ccc49ec82aa7594; >= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, < e4cf89596c1f1e33309556699f910ced4abbaf44; Linux 5.17
Fixed in: Linux 6505541e5298cea2b79da68ee626f583f8e18784, Linux 0a635239cd5484d8f2e702713ccc49ec82aa7594

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

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

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

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

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

Linux \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< 6505541e5298cea2b79da68ee626f583f8e18784; \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< 0a635239cd5484d8f2e702713ccc49ec82aa7594; \>= 2cbc5cd0b55fa2310cc557c77b0665f5e00272de, \< e4cf89596c1f1e33309556699f910ced4abbaf44; Linux 5.17.

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

Yes. Fixed in Linux 6505541e5298cea2b79da68ee626f583f8e18784, Linux 0a635239cd5484d8f2e702713ccc49ec82aa7594. No fix listed yet: follow the vendor advisory.

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

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/6505541e5298cea2b79da68ee626f583f8e18784>
- patch: <https://git.kernel.org/stable/c/0a635239cd5484d8f2e702713ccc49ec82aa7594>
- patch: <https://git.kernel.org/stable/c/e4cf89596c1f1e33309556699f910ced4abbaf44>

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

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