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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-03-25T09:07:47.235Z
- Modified: 2026-08-05T08:46:20.724Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 18b683bff89d46ace55f12d00c0440d44d6160c4 before 3267a061096efc91eda52c2a0c61ba76e46e4b34; from 18b683bff89d46ace55f12d00c0440d44d6160c4 before 18e7f0580da15cac1e79d73683ada5a9e70980f8; from 18b683bff89d46ace55f12d00c0440d44d6160c4 before 29249eac5225429b898f278230a6ca2baa1ae154; 5.7 (not affected: before 5.7; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.7 before 5.10.42; from 5.11 before 5.12.9; 5.13

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2021-47152](https://www.cve.org/CVERecord?id=CVE-2021-47152), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47152](https://nvd.nist.gov/vuln/detail/CVE-2021-47152), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47152 · Whole record: https://cve.day/CVE-2021-47152.json · Rebuilt by cve.day 2026-11-25T22:58:08.690Z
