# CVE-2021-47152: mptcp: fix data stream corruption

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-03-25T09:07:47.235Z
- **Modified:** 2026-08-05T08:46:20.724Z

## Who should check

- Anyone running Linux \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 3267a061096efc91eda52c2a0c61ba76e46e4b34; \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 18e7f0580da15cac1e79d73683ada5a9e70980f8; \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 29249eac5225429b898f278230a6ca2baa1ae154
- Anyone running Linux 5.7

## 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)

## Affected and fixed versions

- Linux: \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 3267a061096efc91eda52c2a0c61ba76e46e4b34; \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 18e7f0580da15cac1e79d73683ada5a9e70980f8; \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 29249eac5225429b898f278230a6ca2baa1ae154 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 29249eac5225429b898f278230a6ca2baa1ae154 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47152. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47152.md
Affected: Linux >= 18b683bff89d46ace55f12d00c0440d44d6160c4, < 3267a061096efc91eda52c2a0c61ba76e46e4b34; >= 18b683bff89d46ace55f12d00c0440d44d6160c4, < 18e7f0580da15cac1e79d73683ada5a9e70980f8; >= 18b683bff89d46ace55f12d00c0440d44d6160c4, < 29249eac5225429b898f278230a6ca2baa1ae154; Linux 5.7
Fixed in: Linux 3267a061096efc91eda52c2a0c61ba76e46e4b34, Linux 18e7f0580da15cac1e79d73683ada5a9e70980f8, Linux 29249eac5225429b898f278230a6ca2baa1ae154

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47152 being exploited?

There is no confirmed exploitation: CVE-2021-47152 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47152?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47152?

Linux \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 3267a061096efc91eda52c2a0c61ba76e46e4b34; \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 18e7f0580da15cac1e79d73683ada5a9e70980f8; \>= 18b683bff89d46ace55f12d00c0440d44d6160c4, \< 29249eac5225429b898f278230a6ca2baa1ae154; Linux 5.7.

### Is there a fix for CVE-2021-47152?

Yes. Fixed in Linux 3267a061096efc91eda52c2a0c61ba76e46e4b34, Linux 18e7f0580da15cac1e79d73683ada5a9e70980f8, Linux 29249eac5225429b898f278230a6ca2baa1ae154. Upgrade Linux to 29249eac5225429b898f278230a6ca2baa1ae154 or later.

### How do I check if I'm affected by CVE-2021-47152?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3267a061096efc91eda52c2a0c61ba76e46e4b34>
- patch: <https://git.kernel.org/stable/c/18e7f0580da15cac1e79d73683ada5a9e70980f8>
- patch: <https://git.kernel.org/stable/c/29249eac5225429b898f278230a6ca2baa1ae154>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47152>

HTML: <https://flawdb.com/CVE-2021-47152> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47152>
