7.5high
mptcp: fix sk_forward_memory corruption on retransmission
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mptcp: fix sk_forward_memory corruption on retransmission MPTCP sk_forward_memory handling is a bit special, as such field is protected by the msk socket spin_lock, instead of the plain socket lock. Currently we have a code path updating such field without handling the relevant lock: __mptcp_retrans() -> __mptcp_clean_una_wakeup() Several helpers in __mptcp_clean_una_wakeup() will update sk_forward_alloc, possibly causing such field corruption, as reported by Matthieu. Address the issue providing and using a new variant of blamed function which explicitly acquires the msk spin lock.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 64b9cea7a0afe579dd2682f1f1c04f2e4e72fd25 before b9c78b1a95966a7bd2ddae05b73eafc0cda4fba3, from 64b9cea7a0afe579dd2682f1f1c04f2e4e72fd25 before b5941f066b4ca331db225a976dae1d6ca8cf0ae3, 96db8ffef07516a6d7414b6988f2a4298a839977, from 5.11.4 before 5.12, 5.12 Not affected: before 5.12, from 5.12.10 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | from 5.12 before 5.12.10, 5.13 | NVD |
All scores
| Linux | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mptcp: fix sk_forward_memory corruption on retransmission MPTCP sk_forward_memory handling is a bit special, as such field is protected by the msk socket spin_lock, instead of the plain socket lock. Currently we have a code path updating such field without handling the relevant lock: __mptcp_retrans() -> __mptcp_clean_una_wakeup() Several helpers in __mptcp_clean_una_wakeup() will update sk_forward_alloc, possibly causing such field corruption, as reported by Matthieu. Address the issue providing and using a new variant of blamed function which explicitly acquires the msk spin lock.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mptcp: corrige la corrupción de sk_forward_memory en la retransmisión El manejo de MPTCP sk_forward_memory es un poco especial, ya que dicho campo está protegido por el socket msk spin_lock, en lugar del bloqueo de socket simple. Actualmente tenemos una ruta de código que actualiza dicho campo sin manejar el bloqueo relevante: __mptcp_retrans() -> __mptcp_clean_una_wakeup() Varios ayudantes en __mptcp_clean_una_wakeup() actualizarán sk_forward_alloc, posiblemente causando dicha corrupción de campo, según lo informado por Matthieu. Solucione el problema proporcionando y utilizando una nueva variante de la función culpada que adquiere explícitamente el bloqueo de giro msk.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47132 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2021-47132 changed 2026-08-04 | Public domain |