CVE-2021-47105 ice: xsk: return xsk buffers back to pool when cleaning the ring

Medium 5.5 Published Updated

A memory leak in the Linux kernel ice driver allows attackers to exhaust buffer pools, causing denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47105?

CVE-2021-47105 is a medium-severity denial of service vulnerability in Linux kernel, published on 4 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

ice: xsk: return xsk buffers back to pool when cleaning the ring

Currently we only NULL the xdp_buff pointer in the internal SW ring but we never give it back to the xsk buffer pool. This means that buffers can be leaked out of the buff pool and never be used again.

Add missing xsk_buff_free() call to the routine that is supposed to clean the entries that are left in the ring so that these buffers in the umem can be used by other sockets.

Also, only go through the space that is actually left to be cleaned instead of a whole ring.

Weakness: CWE-401

Which versions are affected by CVE-2021-47105?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47105?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-47105 being exploited?

There is no known exploitation of CVE-2021-47105 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47105, GHSA-477j-vcp2-hh67, ROOT-OS-DEBIAN-11-CVE-2021-47105, UBUNTU-CVE-2021-47105.

Is CVE-2021-47105 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free