CVE-2021-47152 mptcp: fix data stream corruption
A memory corruption flaw in the Linux kernel MPTCP implementation allows attackers to corrupt data streams, potentially leading to code execution or system crashes.
- 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-47152?
CVE-2021-47152 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:
mptcp: fix data stream corruption
Maxim reported several issues when forcing a TCP transparent proxy to use the MPTCP protocol for the inbound connections. He also provided a clean reproducer.
The problem boils down to 'mptcp_frag_can_collapse_to()' assuming that only MPTCP will use the given page_frag.
If others - e.g. the plain TCP protocol - allocate page fragments, we can end-up re-using already allocated memory for mptcp_data_frag.
Fix the issue ensuring that the to-be-expanded data fragment is located at the current page frag end.
v1 -> v2: - added missing fixes tag (Mat)
Weakness: CWE-787
Which versions are affected by CVE-2021-47152?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47152?
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-47152 being exploited?
There is no known exploitation of CVE-2021-47152 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47152, GHSA-ffg6-3wfr-47xc, UBUNTU-CVE-2021-47152.