CVE-2022-48788: nvme-rdma: fix possible use-after-free in transport error_recovery work
In the Linux kernel, the following vulnerability has been resolved:
nvme-rdma: fix possible use-after-free in transport errorrecovery work
While nvmerdmasubmitasynceventwork is checking the ctrl and queue state before preparing the AER command and scheduling iowork, in order to fully prevent a race where this check is not reliable the error recovery work must flush asynceventwork before continuing to destroy the admin queue after setting the ctrl state to RESETTING such that there is no race .submitasyncevent and the error recovery handler itself changing the ctrl state.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in - - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.15.32.1-3 - Compensating control
Ensure nvme-rdma recovery work flushes async_event_work before continuing to destroy state and before preparing the AER command and scheduling io_work, after setting the controller state to RESETTING, so there is no race between .submit_async_event and the error recovery handler.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-48788?
CVE-2022-48788 has been classified as a moderate severity vulnerability.
How do I fix CVE-2022-48788?
To mitigate CVE-2022-48788, upgrade to a patched version of the Linux kernel that addresses this vulnerability.
Which versions of the Linux Kernel are affected by CVE-2022-48788?
CVE-2022-48788 affects multiple versions of Linux Kernel between 4.19.231 and 5.17-rc2.
What kind of vulnerability is CVE-2022-48788?
CVE-2022-48788 is a use-after-free vulnerability that can occur in the NVMe over RDMA subsystem.
Is CVE-2022-48788 actively exploited?
As of the latest information, there are no public reports indicating active exploitation of CVE-2022-48788.