5.5

CVE-2021-47516: nfp: Fix memory leak in nfp_cpp_area_cache_add()

Modified
AliasesUBUNTU-CVE-2021-47516DEBIAN-CVE-2021-47516
Published 24-05-2024Last modified 11-05-2026

Vulnerability summary

CVE-2021-47516 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 15.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.24%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 11 · Related 11

Timeline

  1. 24-05-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

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 }

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

15%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.24% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu87 products
  • linux< 4.15.0-169.177 | < 5.4.0-100.113
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 4.15.0-1121.129 | < 5.4.0-1066.69
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 4cb584e0ee7df70fd0376aee60cf701855ea8c81, < 3e93abcdcec0436fbf0b6a88ae806902426895a2 | ≥ 4cb584e0ee7df70fd0376aee60cf701855ea8c81, < eb51f639ef3fd5498b7def290ed8681b6aadd9a7 | ≥ 4cb584e0ee7df70fd0376aee60cf701855ea8c81, < 2e0e072e62fdaf7816220af08e05c020f0fcb77a | ≥ 4cb584e0ee7df70fd0376aee60cf701855ea8c81, < 484069b5de9d223cc1c64c6f80389a99cfef51f1 | ≥ 4cb584e0ee7df70fd0376aee60cf701855ea8c81, < f707820c09239d6f67699d9b2ff57863cc7905b0 | ≥ 4cb584e0ee7df70fd0376aee60cf701855ea8c81, < c56c96303e9289cc34716b1179597b6f470833de | 4.11
  • linux_kernel≥ 4.11, < 4.14.258 | ≥ 4.15, < 4.19.221 | ≥ 4.20, < 5.4.165 | ≥ 5.5, < 5.10.85 | ≥ 5.11, < 5.15.8
Debian1 product
  • linux< 5.15.15-1

3 vendors · 90 products

References

10 links