CVE-2024-41082 nvme-fabrics: use reserved tag for reg read/write command

Medium 5.5 Published Updated

A flaw in the Linux kernel NVMe fabrics driver allows local users to cause a system hang by exhausting admin queue tags during a reset.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-41082?

CVE-2024-41082 is a medium-severity denial of service vulnerability in Linux kernel, published on 29 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

nvme-fabrics: use reserved tag for reg read/write command

In some scenarios, if too many commands are issued by nvme command in the same time by user tasks, this may exhaust all tags of admin_q. If a reset (nvme reset or IO timeout) occurs before these commands finish, reconnect routine may fail to update nvme regs due to insufficient tags, which will cause kernel hang forever. In order to workaround this issue, maybe we can let reg_read32()/reg_read64()/reg_write32() use reserved tags. This maybe safe for nvmf:

1. For the disable ctrl path, we will not issue connect command 2. For the enable ctrl / fw activate path, since connect and reg_xx() are called serially.

So the reserved tags may still be enough while reg_xx() use reserved tags.

Which versions are affected by CVE-2024-41082?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-41082?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-41082 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-62550, AZL-68343, BELL-CVE-2024-41082, DEBIAN-CVE-2024-41082, GHSA-5mx3-q822-9r57, ROOT-OS-DEBIAN-11-CVE-2024-41082 and 3 more.

Is CVE-2024-41082 in your software?

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

Check your SBOMs for free