Linux · Linux Kernel · CVE-2022-49265
**Name of the Vulnerable Software and Affected Versions**
Linux kernel versions prior to 5.17.0-rc4+
**Description**
A sleep-in-atomic bug has been identified in the Linux kernel, caused by the `genpd debug remove()` function being called with a spinlock held. This issue occurs when a genpd with `GENPD FLAG IRQ SAFE` gets removed. The bug can lead to a crash, as evidenced by a call trace showing the `dump backtrace` and `show stack` functions being called.
**Recommendations**
For Linux kernel versions prior to 5.17.0-rc4+, consider moving the `genpd debug remove()` function out of the locking mechanism to fix the problem. As a temporary workaround, avoid removing genpd with `GENPD FLAG IRQ SAFE` to minimize the risk of exploitation.