{"id":"DEBIAN-CVE-2021-47516","details":"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 \tstruct nfp_cpp_area_cache *cache; 795 \tstruct nfp_cpp_area *area;  800\tarea = nfp_cpp_area_alloc(cpp, NFP_CPP_ID(7, NFP_CPP_ACTION_RW, 0), 801 \t\t\t\t  0, size); \t// #1: allocates and initializes  802 \tif (!area) 803 \t\treturn -ENOMEM;  805 \tcache = kzalloc(sizeof(*cache), GFP_KERNEL); 806 \tif (!cache) 807 \t\treturn -ENOMEM; // #2: missing free  817\treturn 0; 818 }","modified":"2026-09-15T09:02:32.116954602Z","published":"2024-05-24T15:15:13.130Z","upstream":["CVE-2021-47516"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-47516"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.15-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47516.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.15-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47516.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.15-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2021-47516.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}