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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2024-04-10T18:56:35.774Z
- Modified: 2026-08-05T08:46:42.381Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 65c7006f234c9ede887d468f595f259a5c5cc552 before 926e8c83d4c1c2dac0026637eb0d492df876489e; from 65c7006f234c9ede887d468f595f259a5c5cc552 before 78638b47132244e3934dc5dc79f6372d5ce8e98c; from 65c7006f234c9ede887d468f595f259a5c5cc552 before 9ef6589cac9a8c47f5544ccdf4c498093733bb3f; from 65c7006f234c9ede887d468f595f259a5c5cc552 before 89f22f129696ab53cfbc608e0a2184d0fea46ac1; 4.13 (not affected: before 4.13; from 5.4.162 up to 5.4.*; from 5.10.82 up to 5.10.*; from 5.15.5 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 4.13 before 5.4.162; from 5.5 before 5.10.82; from 5.11 before 5.15.5; 5.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/926e8c83d4c1c2dac0026637eb0d492df876489e> (patch)
- <https://git.kernel.org/stable/c/78638b47132244e3934dc5dc79f6372d5ce8e98c> (patch)
- <https://git.kernel.org/stable/c/9ef6589cac9a8c47f5544ccdf4c498093733bb3f> (patch)
- <https://git.kernel.org/stable/c/89f22f129696ab53cfbc608e0a2184d0fea46ac1> (patch)

## Sources

- CVE List: [CVE-2021-47201](https://www.cve.org/CVERecord?id=CVE-2021-47201), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47201](https://nvd.nist.gov/vuln/detail/CVE-2021-47201), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47201 · Whole record: https://cve.day/CVE-2021-47201.json · Rebuilt by cve.day 2026-11-25T22:58:08.715Z
