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-47516

5.5 · MEDIUM
Published May 24, 2024 linux CWE-401 EPSS 0.24% (15th pctl)

Overview

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

nfp: Fix memory leak in nfp_cpp_area_cache_add()

In line 800 (#1), nfp_cpp_area_alloc() allocates and initializes a

CPP area structure. But in line 807 (#2), when the cache is allocated

failed, this CPP area structure is not freed, which will result in

memory leak.

We can fix it by freeing the CPP area when the cache is allocated

failed (#2).

792 int nfp_cpp_area_cache_add(struct nfp_cpp *cpp, size_t size)

793 {

794 struct nfp_cpp_area_cache *cache;

795 struct nfp_cpp_area *area;

800 area = nfp_cpp_area_alloc(cpp, NFP_CPP_ID(7, NFP_CPP_ACTION_RW, 0),

801 0, size);

// #1: allocates and initializes

802 if (!area)

803 return -ENOMEM;

805 cache = kzalloc(sizeof(*cache), GFP_KERNEL);

806 if (!cache)

807 return -ENOMEM; // #2: missing free

817 return 0;

818 }

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 >= 4.11, < 4.14.258 Affected

Frequently Asked Questions

What is CVE-2021-47516?

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

How severe is CVE-2021-47516?

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

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

CyberStrike's AI-powered security agents can automatically detect CVE-2021-47516 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.