CVE-2021-47201 iavf: free q_vectors before queues in iavf_disable_vf

High 7.8 Published Updated

A null pointer dereference in the iavf driver causes a kernel panic when disabling and re-enabling the interface, leading to denial of service.

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-2021-47201?

CVE-2021-47201 is a high-severity vulnerability in Linux kernel, published on 10 Apr 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:

iavf: free q_vectors before queues in iavf_disable_vf

iavf_free_queues() clears adapter->num_active_queues, which iavf_free_q_vectors() relies on, so swap the order of these two function calls in iavf_disable_vf(). This resolves a panic encountered when the interface is disabled and then later brought up again after PF communication is restored.

Which versions are affected by CVE-2021-47201?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47201?

Apply the vendor's patch.

Is CVE-2021-47201 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47201, GHSA-g77r-g63q-vjf8, UBUNTU-CVE-2021-47201.

Is CVE-2021-47201 in your software?

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

Check your SBOMs for free