# CVE-2021-47562: ice: fix vsi-\>txq\_map sizing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-24T15:12:50.733Z
- **Modified:** 2026-06-17T04:17:46.397Z

## Who should check

- Anyone running Linux \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 1eb5395add786613c7c5579d3947aa0b8f0ec241; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 992ba40a67638dfe2772b84dfc8168dc328d5c4c; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 792b2086584f25d84081a526beee80d103c2a913
- Anyone running Linux 5.5

## Description

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

ice: fix vsi-\>txq\_map sizing

The approach of having XDP queue per CPU regardless of user's setting
exposed a hidden bug that could occur in case when Rx queue count differ
from Tx queue count. Currently vsi-\>txq\_map's size is equal to the
doubled vsi-\>alloc\_txq, which is not correct due to the fact that XDP
rings were previously based on the Rx queue count. Below splat can be
seen when ethtool -L is used and XDP rings are configured:

\[  682.875339\] BUG: kernel NULL pointer dereference, address: 000000000000000f
\[  682.883403\] \#PF: supervisor read access in kernel mode
\[  682.889345\] \#PF: error\_code(0x0000) - not-present page
\[  682.895289\] PGD 0 P4D 0
\[  682.898218\] Oops: 0000 \[\#1\] PREEMPT SMP PTI
\[  682.903055\] CPU: 42 PID: 2878 Comm: ethtool Tainted: G           OE     5.15.0-rc5+ \#1
\[  682.912214\] Hardware name: Intel Corp. GRANTLEY/GRANTLEY, BIOS GRRFCRB1.86B.0276.D07.1605190235 05/19/2016
\[  682.923380\] RIP: 0010:devres\_remove+0x44/0x130
\[  682.928527\] Code: 49 89 f4 55 48 89 fd 4c 89 ff 53 48 83 ec 10 e8 92 b9 49 00 48 8b 9d a8 02 00 00 48 8d 8d a0 02 00 00 49 89 c2 48 39 cb 74 0f \<4c\> 3b 63 10 74 25 48 8b 5b 08 48 39 cb 75 f1 4c 89 ff 4c 89 d6 e8
\[  682.950237\] RSP: 0018:ffffc90006a679f0 EFLAGS: 00010002
\[  682.956285\] RAX: 0000000000000286 RBX: ffffffffffffffff RCX: ffff88908343a370
\[  682.964538\] RDX: 0000000000000001 RSI: ffffffff81690d60 RDI: 0000000000000000
\[  682.972789\] RBP: ffff88908343a0d0 R08: 0000000000000000 R09: 0000000000000000
\[  682.981040\] R10: 0000000000000286 R11: 3fffffffffffffff R12: ffffffff81690d60
\[  682.989282\] R13: ffffffff81690a00 R14: ffff8890819807a8 R15: ffff88908343a36c
\[  682.997535\] FS:  00007f08c7bfa740(0000) GS:ffff88a03fd00000(0000) knlGS:0000000000000000
\[  683.006910\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  683.013557\] CR2: 000000000000000f CR3: 0000001080a66003 CR4: 00000000003706e0
\[  683.021819\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[  683.030075\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[  683.038336\] Call Trace:
\[  683.041167\]  devm\_kfree+0x33/0x50
\[  683.045004\]  ice\_vsi\_free\_arrays+0x5e/0xc0 \[ice\]
\[  683.050380\]  ice\_vsi\_rebuild+0x4c8/0x750 \[ice\]
\[  683.055543\]  ice\_vsi\_recfg\_qs+0x9a/0x110 \[ice\]
\[  683.060697\]  ice\_set\_channels+0x14f/0x290 \[ice\]
\[  683.065962\]  ethnl\_set\_channels+0x333/0x3f0
\[  683.070807\]  genl\_family\_rcv\_msg\_doit+0xea/0x150
\[  683.076152\]  genl\_rcv\_msg+0xde/0x1d0
\[  683.080289\]  ? channels\_prepare\_data+0x60/0x60
\[  683.085432\]  ? genl\_get\_cmd+0xd0/0xd0
\[  683.089667\]  netlink\_rcv\_skb+0x50/0xf0
\[  683.094006\]  genl\_rcv+0x24/0x40
\[  683.097638\]  netlink\_unicast+0x239/0x340
\[  683.102177\]  netlink\_sendmsg+0x22e/0x470
\[  683.106717\]  sock\_sendmsg+0x5e/0x60
\[  683.110756\]  \_\_sys\_sendto+0xee/0x150
\[  683.114894\]  ? handle\_mm\_fault+0xd0/0x2a0
\[  683.119535\]  ? do\_user\_addr\_fault+0x1f3/0x690
\[  683.134173\]  \_\_x64\_sys\_sendto+0x25/0x30
\[  683.148231\]  do\_syscall\_64+0x3b/0xc0
\[  683.161992\]  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

Fix this by taking into account the value that num\_possible\_cpus()
yields in addition to vsi-\>alloc\_txq instead of doubling the latter.

## Affected and fixed versions

- Linux: \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 1eb5395add786613c7c5579d3947aa0b8f0ec241; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 992ba40a67638dfe2772b84dfc8168dc328d5c4c; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 792b2086584f25d84081a526beee80d103c2a913 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 792b2086584f25d84081a526beee80d103c2a913 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47562. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47562.md
Affected: Linux >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 1eb5395add786613c7c5579d3947aa0b8f0ec241; >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 992ba40a67638dfe2772b84dfc8168dc328d5c4c; >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 792b2086584f25d84081a526beee80d103c2a913; Linux 5.5
Fixed in: Linux 1eb5395add786613c7c5579d3947aa0b8f0ec241, Linux 992ba40a67638dfe2772b84dfc8168dc328d5c4c, Linux 792b2086584f25d84081a526beee80d103c2a913

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47562 being exploited?

There is no confirmed exploitation: CVE-2021-47562 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47562?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47562?

Linux \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 1eb5395add786613c7c5579d3947aa0b8f0ec241; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 992ba40a67638dfe2772b84dfc8168dc328d5c4c; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 792b2086584f25d84081a526beee80d103c2a913; Linux 5.5.

### Is there a fix for CVE-2021-47562?

Yes. Fixed in Linux 1eb5395add786613c7c5579d3947aa0b8f0ec241, Linux 992ba40a67638dfe2772b84dfc8168dc328d5c4c, Linux 792b2086584f25d84081a526beee80d103c2a913. Upgrade Linux to 792b2086584f25d84081a526beee80d103c2a913 or later.

### How do I check if I'm affected by CVE-2021-47562?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/1eb5395add786613c7c5579d3947aa0b8f0ec241>
- patch: <https://git.kernel.org/stable/c/992ba40a67638dfe2772b84dfc8168dc328d5c4c>
- patch: <https://git.kernel.org/stable/c/792b2086584f25d84081a526beee80d103c2a913>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47562>

HTML: <https://flawdb.com/CVE-2021-47562> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47562>
