# CVE-2021-47448: mptcp: fix possible stall on recvmsg()

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2024-05-22T06:19:40.141Z
- **Modified:** 2026-08-05T08:47:51.948Z

## Who should check

- Anyone running Linux \>= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, \< 1a4554e94f0deff9fc1dc5addf93fa579cc29711; \>= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, \< 612f71d7328c14369924384ad2170aae2a6abd92
- Anyone running Linux 5.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

mptcp: fix possible stall on recvmsg()

recvmsg() can enter an infinite loop if the caller provides the
MSG\_WAITALL, the data present in the receive queue is not sufficient to
fulfill the request, and no more data is received by the peer.

When the above happens, mptcp\_wait\_data() will always return with
no wait, as the MPTCP\_DATA\_READY flag checked by such function is
set and never cleared in such code path.

Leveraging the above syzbot was able to trigger an RCU stall:

rcu: INFO: rcu\_preempt self-detected stall on CPU
rcu:    0-...!: (10499 ticks this GP) idle=0af/1/0x4000000000000000 softirq=10678/10678 fqs=1
        (t=10500 jiffies g=13089 q=109)
rcu: rcu\_preempt kthread starved for 10497 jiffies! g13089 f0x0 RCU\_GP\_WAIT\_FQS(5) -\>state=0x0 -\>cpu=1
rcu:    Unless rcu\_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu\_preempt     state:R  running task     stack:28696 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context\_switch kernel/sched/core.c:4955 \[inline\]
 \_\_schedule+0x940/0x26f0 kernel/sched/core.c:6236
 schedule+0xd3/0x270 kernel/sched/core.c:6315
 schedule\_timeout+0x14a/0x2a0 kernel/time/timer.c:1881
 rcu\_gp\_fqs\_loop+0x186/0x810 kernel/rcu/tree.c:1955
 rcu\_gp\_kthread+0x1de/0x320 kernel/rcu/tree.c:2128
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret\_from\_fork+0x1f/0x30 arch/x86/entry/entry\_64.S:295
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8510 Comm: syz-executor827 Not tainted 5.15.0-rc2-next-20210920-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bytes\_is\_nonzero mm/kasan/generic.c:84 \[inline\]
RIP: 0010:memory\_is\_nonzero mm/kasan/generic.c:102 \[inline\]
RIP: 0010:memory\_is\_poisoned\_n mm/kasan/generic.c:128 \[inline\]
RIP: 0010:memory\_is\_poisoned mm/kasan/generic.c:159 \[inline\]
RIP: 0010:check\_region\_inline mm/kasan/generic.c:180 \[inline\]
RIP: 0010:kasan\_check\_range+0xc8/0x180 mm/kasan/generic.c:189
Code: 38 00 74 ed 48 8d 50 08 eb 09 48 83 c0 01 48 39 d0 74 7a 80 38 00 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 75 56 5b 5d 41 5c c3 \<48\> 85 d2 74 5e 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 50 80 38 00
RSP: 0018:ffffc9000cd676c8 EFLAGS: 00000283
RAX: ffffed100e9a110e RBX: ffffed100e9a110f RCX: ffffffff88ea062a
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888074d08870
RBP: ffffed100e9a110e R08: 0000000000000001 R09: ffff888074d08877
R10: ffffed100e9a110e R11: 0000000000000000 R12: ffff888074d08000
R13: ffff888074d08000 R14: ffff888074d08088 R15: ffff888074d08000
FS:  0000555556d8e300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
S:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 0000000068909000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 instrument\_atomic\_read\_write include/linux/instrumented.h:101 \[inline\]
 test\_and\_clear\_bit include/asm-generic/bitops/instrumented-atomic.h:83 \[inline\]
 mptcp\_release\_cb+0x14a/0x210 net/mptcp/protocol.c:3016
 release\_sock+0xb4/0x1b0 net/core/sock.c:3204
 mptcp\_wait\_data net/mptcp/protocol.c:1770 \[inline\]
 mptcp\_recvmsg+0xfd1/0x27b0 net/mptcp/protocol.c:2080
 inet6\_recvmsg+0x11b/0x5e0 net/ipv6/af\_inet6.c:659
 sock\_recvmsg\_nosec net/socket.c:944 \[inline\]
 \_\_\_\_sys\_recvmsg+0x527/0x600 net/socket.c:2626
 \_\_\_sys\_recvmsg+0x127/0x200 net/socket.c:2670
 do\_recvmmsg+0x24d/0x6d0 net/socket.c:2764
 \_\_sys\_recvmmsg net/socket.c:2843 \[inline\]
 \_\_do\_sys\_recvmmsg net/socket.c:2866 \[inline\]
 \_\_se\_sys\_recvmmsg net/socket.c:2859 \[inline\]
 \_\_x64\_sys\_recvmmsg+0x20b/0x260 net/socket.c:2859
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
RIP: 0033:0x7fc200d2
---truncated---

## Affected and fixed versions

- Linux: \>= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, \< 1a4554e94f0deff9fc1dc5addf93fa579cc29711; \>= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, \< 612f71d7328c14369924384ad2170aae2a6abd92 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 612f71d7328c14369924384ad2170aae2a6abd92 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-47448. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47448.md
Affected: Linux >= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, < 1a4554e94f0deff9fc1dc5addf93fa579cc29711; >= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, < 612f71d7328c14369924384ad2170aae2a6abd92; Linux 5.6
Fixed in: Linux 1a4554e94f0deff9fc1dc5addf93fa579cc29711, Linux 612f71d7328c14369924384ad2170aae2a6abd92

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-47448 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, \< 1a4554e94f0deff9fc1dc5addf93fa579cc29711; \>= 7a6a6cbc3e592e339ad23e4e8ede9a3f6160bda8, \< 612f71d7328c14369924384ad2170aae2a6abd92; Linux 5.6.

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

Yes. Fixed in Linux 1a4554e94f0deff9fc1dc5addf93fa579cc29711, Linux 612f71d7328c14369924384ad2170aae2a6abd92. Upgrade Linux to 612f71d7328c14369924384ad2170aae2a6abd92 or later.

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

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/1a4554e94f0deff9fc1dc5addf93fa579cc29711>
- patch: <https://git.kernel.org/stable/c/612f71d7328c14369924384ad2170aae2a6abd92>

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

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