CVE-2022-48788 nvme-rdma: fix possible use-after-free in transport error_recovery work

Critical 9.8 Published Updated

A race condition in the Linux kernel's NVMe RDMA driver can lead to a use-after-free, potentially allowing local attackers to execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-48788?

CVE-2022-48788 is a critical use after free vulnerability in Linux kernel, published on 16 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

nvme-rdma: fix possible use-after-free in transport error_recovery work

While nvme_rdma_submit_async_event_work is checking the ctrl and queue state before preparing the AER command and scheduling io_work, in order to fully prevent a race where this check is not reliable the error recovery work must flush async_event_work before continuing to destroy the admin queue after setting the ctrl state to RESETTING such that there is no race .submit_async_event and the error recovery handler itself changing the ctrl state.

Weakness: CWE-416

Which versions are affected by CVE-2022-48788?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-48788?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-48788 being exploited?

There is no known exploitation of CVE-2022-48788 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-47446, DEBIAN-CVE-2022-48788, GHSA-grc2-v3f8-wj3j, UBUNTU-CVE-2022-48788.

Is CVE-2022-48788 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free