# CVE-2022-49709: cfi: Fix __cfi_slowpath_diag RCU usage with cpuidle

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Published: 2025-02-26T02:24:26.817Z
- Modified: 2026-06-17T05:18:55.847Z
- Assigned by: Linux

## Description

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

cfi: Fix __cfi_slowpath_diag RCU usage with cpuidle

RCU_NONIDLE usage during __cfi_slowpath_diag can result in an invalid
RCU state in the cpuidle code path:

  WARNING: CPU: 1 PID: 0 at kernel/rcu/tree.c:613 rcu_eqs_enter+0xe4/0x138
  ...
  Call trace:
    rcu_eqs_enter+0xe4/0x138
    rcu_idle_enter+0xa8/0x100
    cpuidle_enter_state+0x154/0x3a8
    cpuidle_enter+0x3c/0x58
    do_idle.llvm.6590768638138871020+0x1f4/0x2ec
    cpu_startup_entry+0x28/0x2c
    secondary_start_kernel+0x1b8/0x220
    __secondary_switched+0x94/0x98

Instead, call rcu_irq_enter/exit to wake up RCU only when needed and
disable interrupts for the entire CFI shadow/module check when we do.

(As written by CVE List.)

## Affected

- Linux Linux: from cf68fffb66d60d96209446bfc4a15291dc5a5d41 before 75f3a5fa2ad049c85ab5d5ee1ed9cfaa7e62c5ed; from cf68fffb66d60d96209446bfc4a15291dc5a5d41 before ca3897f2ac02ceae5e6fa794f83c36f9885b93da; from cf68fffb66d60d96209446bfc4a15291dc5a5d41 before 57cd6d157eb479f0a8e820fd36b7240845c8a937; 5.13 (not affected: before 5.13; from 5.15.49 up to 5.15.*; from 5.18.6 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.13 before 5.15.49; from 5.16 before 5.18.6; 5.19

## References

- <https://git.kernel.org/stable/c/75f3a5fa2ad049c85ab5d5ee1ed9cfaa7e62c5ed> (patch)
- <https://git.kernel.org/stable/c/ca3897f2ac02ceae5e6fa794f83c36f9885b93da> (patch)
- <https://git.kernel.org/stable/c/57cd6d157eb479f0a8e820fd36b7240845c8a937> (patch)

## Sources

- CVE List: [CVE-2022-49709](https://www.cve.org/CVERecord?id=CVE-2022-49709), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49709](https://nvd.nist.gov/vuln/detail/CVE-2022-49709), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49709 · Whole record: https://cve.day/CVE-2022-49709.json · Rebuilt by cve.day 2026-11-25T22:58:20.819Z
