CVE-2021-47132

mptcp: fix sk_forward_memory corruption on retransmission

State
Published
Severity
7.5 High
Published
Mar 15, 2024
Updated
Aug 5, 2026
Reserved
Mar 4, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 64b9cea7a0afe579dd2682f1f1c04f2e4e72fd25 to before b9c78b1a95966a7bd2ddae05b73eafc0cda4fba3Affected
  • 64b9cea7a0afe579dd2682f1f1c04f2e4e72fd25 to before b5941f066b4ca331db225a976dae1d6ca8cf0ae3Affected
  • 96db8ffef07516a6d7414b6988f2a4298a839977Affected
  • 5.11.4 to before 5.12Affected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 5.12.10 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.