CVE-2021-47295 net: sched: fix memory leak in tcindex_partial_destroy_work
A memory leak in the Linux kernel's traffic control subsystem allows attackers to cause a denial of service by exhausting system memory.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47295?
CVE-2021-47295 is a high-severity denial of service vulnerability in Linux kernel, published on 21 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
net: sched: fix memory leak in tcindex_partial_destroy_work
Syzbot reported memory leak in tcindex_set_parms(). The problem was in non-freed perfect hash in tcindex_partial_destroy_work().
In tcindex_set_parms() new tcindex_data is allocated and some fields from old one are copied to new one, but not the perfect hash. Since tcindex_partial_destroy_work() is the destroy function for old tcindex_data, we need to free perfect hash to avoid memory leak.
Weakness: CWE-400
Which versions are affected by CVE-2021-47295?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47295?
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-47295 being exploited?
There is no known exploitation of CVE-2021-47295 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47295, GHSA-cv8j-wfmq-4fjv, UBUNTU-CVE-2021-47295.