CVE-2021-47148 octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context()
A buffer overflow in the OcteonTX2 network driver allows local attackers to corrupt memory, potentially leading to code execution or privilege escalation.
- 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-47148?
CVE-2021-47148 is a high-severity memory corruption vulnerability in Linux kernel, published on 25 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:
octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context()
This function is called from ethtool_set_rxfh() and "*rss_context" comes from the user. Add some bounds checking to prevent memory corruption.
Weakness: CWE-787
Which versions are affected by CVE-2021-47148?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47148?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-47148 being exploited?
There is no known exploitation of CVE-2021-47148 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47148, GHSA-6x4q-xmhw-jmpw, UBUNTU-CVE-2021-47148.