# CVE-2021-47127: ice: track AF\_XDP ZC enabled queues in bitmap

> 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.20% (percentile 5, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-03-15T20:14:31.658Z
- **Modified:** 2026-06-17T04:16:35.460Z

## Who should check

- Anyone running Linux \>= c7a219048e459cf99c6fec0f7c1e42414e9e6202, \< 1d34fa4fcf06649036ba0c97854fcf7a741ee18c; \>= c7a219048e459cf99c6fec0f7c1e42414e9e6202, \< e102db780e1c14f10c70dafa7684af22a745b51d
- Anyone running Linux 5.12

## Description

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

ice: track AF\_XDP ZC enabled queues in bitmap

Commit c7a219048e45 ("ice: Remove xsk\_buff\_pool from VSI structure")
silently introduced a regression and broke the Tx side of AF\_XDP in copy
mode. xsk\_pool on ice\_ring is set only based on the existence of the XDP
prog on the VSI which in turn picks ice\_clean\_tx\_irq\_zc to be executed.
That is not something that should happen for copy mode as it should use
the regular data path ice\_clean\_tx\_irq.

This results in a following splat when xdpsock is run in txonly or l2fwd
scenarios in copy mode:

\<snip\>
\[  106.050195\] BUG: kernel NULL pointer dereference, address: 0000000000000030
\[  106.057269\] \#PF: supervisor read access in kernel mode
\[  106.062493\] \#PF: error\_code(0x0000) - not-present page
\[  106.067709\] PGD 0 P4D 0
\[  106.070293\] Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\[  106.074721\] CPU: 61 PID: 0 Comm: swapper/61 Not tainted 5.12.0-rc2+ \#45
\[  106.081436\] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0008.031920191559 03/19/2019
\[  106.092027\] RIP: 0010:xp\_raw\_get\_dma+0x36/0x50
\[  106.096551\] Code: 74 14 48 b8 ff ff ff ff ff ff 00 00 48 21 f0 48 c1 ee 30 48 01 c6 48 8b 87 90 00 00 00 48 89 f2 81 e6 ff 0f 00 00 48 c1 ea 0c \<48\> 8b 04 d0 48 83 e0 fe 48 01 f0 c3 66 66 2e 0f 1f 84 00 00 00 00
\[  106.115588\] RSP: 0018:ffffc9000d694e50 EFLAGS: 00010206
\[  106.120893\] RAX: 0000000000000000 RBX: ffff88984b8c8a00 RCX: ffff889852581800
\[  106.128137\] RDX: 0000000000000006 RSI: 0000000000000000 RDI: ffff88984cd8b800
\[  106.135383\] RBP: ffff888123b50001 R08: ffff889896800000 R09: 0000000000000800
\[  106.142628\] R10: 0000000000000000 R11: ffffffff826060c0 R12: 00000000000000ff
\[  106.149872\] R13: 0000000000000000 R14: 0000000000000040 R15: ffff888123b50018
\[  106.157117\] FS:  0000000000000000(0000) GS:ffff8897e0f40000(0000) knlGS:0000000000000000
\[  106.165332\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  106.171163\] CR2: 0000000000000030 CR3: 000000000560a004 CR4: 00000000007706e0
\[  106.178408\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[  106.185653\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[  106.192898\] PKRU: 55555554
\[  106.195653\] Call Trace:
\[  106.198143\]  \<IRQ\>
\[  106.200196\]  ice\_clean\_tx\_irq\_zc+0x183/0x2a0 \[ice\]
\[  106.205087\]  ice\_napi\_poll+0x3e/0x590 \[ice\]
\[  106.209356\]  \_\_napi\_poll+0x2a/0x160
\[  106.212911\]  net\_rx\_action+0xd6/0x200
\[  106.216634\]  \_\_do\_softirq+0xbf/0x29b
\[  106.220274\]  irq\_exit\_rcu+0x88/0xc0
\[  106.223819\]  common\_interrupt+0x7b/0xa0
\[  106.227719\]  \</IRQ\>
\[  106.229857\]  asm\_common\_interrupt+0x1e/0x40
\</snip\>

Fix this by introducing the bitmap of queues that are zero-copy enabled,
where each bit, corresponding to a queue id that xsk pool is being
configured on, will be set/cleared within ice\_xsk\_pool\_{en,dis}able and
checked within ice\_xsk\_pool(). The latter is a function used for
deciding which napi poll routine is executed.
Idea is being taken from our other drivers such as i40e and ixgbe.

## Affected and fixed versions

- Linux: \>= c7a219048e459cf99c6fec0f7c1e42414e9e6202, \< 1d34fa4fcf06649036ba0c97854fcf7a741ee18c; \>= c7a219048e459cf99c6fec0f7c1e42414e9e6202, \< e102db780e1c14f10c70dafa7684af22a745b51d (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47127.md
Affected: Linux >= c7a219048e459cf99c6fec0f7c1e42414e9e6202, < 1d34fa4fcf06649036ba0c97854fcf7a741ee18c; >= c7a219048e459cf99c6fec0f7c1e42414e9e6202, < e102db780e1c14f10c70dafa7684af22a745b51d; Linux 5.12
Fixed in: Linux 1d34fa4fcf06649036ba0c97854fcf7a741ee18c

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-47127 being exploited?

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

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

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

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

Linux \>= c7a219048e459cf99c6fec0f7c1e42414e9e6202, \< 1d34fa4fcf06649036ba0c97854fcf7a741ee18c; \>= c7a219048e459cf99c6fec0f7c1e42414e9e6202, \< e102db780e1c14f10c70dafa7684af22a745b51d; Linux 5.12.

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

Yes. Fixed in Linux 1d34fa4fcf06649036ba0c97854fcf7a741ee18c. No fix listed yet: follow the vendor advisory.

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

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/1d34fa4fcf06649036ba0c97854fcf7a741ee18c>
- patch: <https://git.kernel.org/stable/c/e102db780e1c14f10c70dafa7684af22a745b51d>

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

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