Menu

Star on GitHub · 3.2k

CVE-2021-47127

5.5 · MEDIUM

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 int…

Published Mar 15, 2024CWE-476EPSS 0.20%

Overview

CVE-2021-47127 is a medium-severity vulnerability. It was published on March 15, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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: Int

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47127?

CVE-2021-47127 is a medium-severity vulnerability. It was published on March 15, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47127?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47127?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47127?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47127 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2021

View all