Menu

Star on GitHub · 3.2k

CVE-2021-47303

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: bpf: Track subprog poke descriptors correctly and fix use-after-free Subprograms are calling map_poke_track(), but on program r…

Published May 21, 2024CWE-416EPSS 0.24%

Overview

CVE-2021-47303 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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:

bpf: Track subprog poke descriptors correctly and fix use-after-free

Subprograms are calling map_poke_track(), but on program release there is no

hook to call map_poke_untrack(). However, on program release, the aux memory

(and poke descriptor table) is freed even though we still have a reference to

it in the element list of the map aux data. When we run map_poke_run(), we then

end up accessing free'd memory, triggering KASAN in prog_array_map_poke_run():

[...]

[ 402.824689] BUG: KASAN: use-after-free in prog_array_map_poke_run+0xc2/0x34e

[ 402.824698] Read of size 4 at addr ffff8881905a7940 by task hubble-fgs/4337

[ 402.824705] CPU: 1 PID: 4337 Comm: hubble-fgs Tainted: G I 5.12.0+ #399

[ 402.824715] Call Trace:

[ 402.824719] dump_stack+0x93/0xc2

[ 402.824727] print_address_description.constprop.0+0x1a/0x140

[ 402.824736] ? prog_array_map_poke_run+0xc2/0x34e

[ 402.824740]

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-47303?

CVE-2021-47303 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2021-47303?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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-47303?

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-47303?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47303 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 HIGH CVEs from 2021

View all