Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-47299

5.5 · MEDIUM
Published May 21, 2024 linux CWE-416 EPSS 0.23% (13th pctl)

Overview

CVE-2021-47299 is a medium-severity vulnerability affecting linux linux_kernel. It was published on May 21, 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:

xdp, net: Fix use-after-free in bpf_xdp_link_release

The problem occurs between dev_get_by_index() and dev_xdp_attach_link().

At this point, dev_xdp_uninstall() is called. Then xdp link will not be

detached automatically when dev is released. But link->dev already

points to dev, when xdp link is released, dev will still be accessed,

but dev has been released.

dev_get_by_index() |

link->dev = dev |

| rtnl_lock()

| unregister_netdevice_many()

| dev_xdp_uninstall()

| rtnl_unlock()

rtnl_lock(); |

dev_xdp_attach_link() |

rtnl_unlock(); |

| netdev_run_todo() // dev released

bpf_xdp_link_release() |

/* access dev. |

use-after-free */ |

[ 45.966867] BUG: KASAN: use-after-free in bpf_xdp_link_release

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.9, < 5.10.54 Affected

Frequently Asked Questions

What is CVE-2021-47299?

CVE-2021-47299 is a medium-severity vulnerability affecting linux linux_kernel. It was published on May 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47299?

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

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. 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-47299?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-47299 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.