CVE-2021-47132·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.12.10
- Published
- 2024-03-15
Affected versions
From: 5.12
Until: 5.12.10
Fixed in: 5.12.10
How to fix this CVE
Update your Linux kernel to version 5.12.10 or later to resolve a memory corruption vulnerability in MPTCP retransmission handling. This vulnerability affects kernel versions 5.12 through 5.12.9 and can cause sk_forward_memory field corruption due to improper lock management during retransmission operations. Applying the kernel update will ensure proper spin lock acquisition when updating memory allocation fields in the MPTCP subsystem.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check kernel version: uname -r | grep -E '^5\.12\.[0-9]' to identify if running affected kernel 5.12.0-5.12.9
- Verify MPTCP support is enabled: grep -i mptcp /boot/config-$(uname -r) to confirm if MPTCP subsystem is compiled
- Search for kernel memory corruption warnings in logs: sudo grep -i 'memory corruption\|sk_forward_memory\|mptcp' /var/log/kern.log or journalctl -k | grep -i mptcp
- Confirm patch application: grep -i 'b5941f066b4ca331db225a976dae1d6ca8cf0ae3\|b9c78b1a95966a7bd2ddae05b73eafc0cda4fba3' /proc/version_signature || verify kernel version >= 5.12.10
FAQ
What is CVE-2021-47132?
CVE-2021-47132 is a Linux kernel vulnerability in the MPTCP (Multipath TCP) subsystem where the sk_forward_memory field can become corrupted during packet retransmission because the required spin lock is not acquired when memory allocation helpers are called.
Is CVE-2021-47132 being actively exploited?
No, CVE-2021-47132 is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the vulnerability can cause system instability and memory corruption if triggered.
What versions of Kernel are affected by CVE-2021-47132?
Linux kernel versions 5.12.0 through 5.12.9 are vulnerable. The vulnerability was patched in kernel version 5.12.10 and later.
How do I check if my server is vulnerable to CVE-2021-47132?
Run 'uname -r' to check your kernel version. If it reports 5.12.0 through 5.12.9, your system is vulnerable. Additionally, confirm MPTCP is enabled with 'grep CONFIG_MPTCP /boot/config-$(uname -r)'.
Does Defensia detect CVE-2021-47132?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47132 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47132. Free for 1 server.
Get started free