# CVE-2022-49146: virtio: use virtio\_device\_ready() in virtio\_device\_restore()

> 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-26T01:55:14.849Z
- **Modified:** 2026-06-17T05:17:12.700Z

## Who should check

- Anyone running Linux \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 94e9f5da39ee5f8ea31be1585de31c54f10dedce; \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 4ae431113179d72c668b61df320af0c06d1aa5c5; \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18
- Anyone running Linux 5.16

## Description

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

virtio: use virtio\_device\_ready() in virtio\_device\_restore()

After waking up a suspended VM, the kernel prints the following trace
for virtio drivers which do not directly call virtio\_device\_ready() in
the .restore:

    PM: suspend exit
    irq 22: nobody cared (try booting with the "irqpoll" option)
    Call Trace:
     \<IRQ\>
     dump\_stack\_lvl+0x38/0x49
     dump\_stack+0x10/0x12
     \_\_report\_bad\_irq+0x3a/0xaf
     note\_interrupt.cold+0xb/0x60
     handle\_irq\_event+0x71/0x80
     handle\_fasteoi\_irq+0x95/0x1e0
     \_\_common\_interrupt+0x6b/0x110
     common\_interrupt+0x63/0xe0
     asm\_common\_interrupt+0x1e/0x40
     ? \_\_do\_softirq+0x75/0x2f3
     irq\_exit\_rcu+0x93/0xe0
     sysvec\_apic\_timer\_interrupt+0xac/0xd0
     \</IRQ\>
     \<TASK\>
     asm\_sysvec\_apic\_timer\_interrupt+0x12/0x20
     arch\_cpu\_idle+0x12/0x20
     default\_idle\_call+0x39/0xf0
     do\_idle+0x1b5/0x210
     cpu\_startup\_entry+0x20/0x30
     start\_secondary+0xf3/0x100
     secondary\_startup\_64\_no\_verify+0xc3/0xcb
     \</TASK\>
    handlers:
    \[\<000000008f9bac49\>\] vp\_interrupt
    \[\<000000008f9bac49\>\] vp\_interrupt
    Disabling IRQ \#22

This happens because we don't invoke .enable\_cbs callback in
virtio\_device\_restore(). That callback is used by some transports
(e.g. virtio-pci) to enable interrupts.

Let's fix it, by calling virtio\_device\_ready() as we do in
virtio\_dev\_probe(). This function calls .enable\_cts callback and sets
DRIVER\_OK status bit.

This fix also avoids setting DRIVER\_OK twice for those drivers that
call virtio\_device\_ready() in the .restore.

## Affected and fixed versions

- Linux: \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 94e9f5da39ee5f8ea31be1585de31c54f10dedce; \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 4ae431113179d72c668b61df320af0c06d1aa5c5; \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-49146.md
Affected: Linux >= d50497eb4e554e1f0351e1836ee7241c059592e6, < 94e9f5da39ee5f8ea31be1585de31c54f10dedce; >= d50497eb4e554e1f0351e1836ee7241c059592e6, < 4ae431113179d72c668b61df320af0c06d1aa5c5; >= d50497eb4e554e1f0351e1836ee7241c059592e6, < 8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18; Linux 5.16
Fixed in: Linux 94e9f5da39ee5f8ea31be1585de31c54f10dedce, Linux 4ae431113179d72c668b61df320af0c06d1aa5c5, Linux 8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18

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

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

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

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

Linux \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 94e9f5da39ee5f8ea31be1585de31c54f10dedce; \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 4ae431113179d72c668b61df320af0c06d1aa5c5; \>= d50497eb4e554e1f0351e1836ee7241c059592e6, \< 8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18; Linux 5.16.

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

Yes. Fixed in Linux 94e9f5da39ee5f8ea31be1585de31c54f10dedce, Linux 4ae431113179d72c668b61df320af0c06d1aa5c5, Linux 8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18. Upgrade Linux to 8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18 or later.

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

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/94e9f5da39ee5f8ea31be1585de31c54f10dedce>
- patch: <https://git.kernel.org/stable/c/4ae431113179d72c668b61df320af0c06d1aa5c5>
- patch: <https://git.kernel.org/stable/c/8d65bc9a5be3f23c5e2ab36b6b8ef40095165b18>

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

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