# CVE-2021-47594: mptcp: never allow the PM to close a listener subflow

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-06-19T14:53:56.899Z
- **Modified:** 2026-06-17T04:17:50.270Z

## Who should check

- Anyone running Linux \>= 740d798e8767d8a449902b1a1bbc70facfce19b5, \< 1456a0004cc54c58adb2501cb0c95dc8b3c83e9e; \>= 740d798e8767d8a449902b1a1bbc70facfce19b5, \< b0cdc5dbcf2ba0d99785da5aabf1b17943805b8a
- Anyone running Linux 5.13

## Description

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

mptcp: never allow the PM to close a listener subflow

Currently, when deleting an endpoint the netlink PM treverses
all the local MPTCP sockets, regardless of their status.

If an MPTCP listener socket is bound to the IP matching the
delete endpoint, the listener TCP socket will be closed.
That is unexpected, the PM should only affect data subflows.

Additionally, syzbot was able to trigger a NULL ptr dereference
due to the above:

general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 \[\#1\] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range \[0x0000000000000018-0x000000000000001f\]
CPU: 1 PID: 6550 Comm: syz-executor122 Not tainted 5.16.0-rc4-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:\_\_lock\_acquire+0xd7d/0x54a0 kernel/locking/lockdep.c:4897
Code: 0f 0e 41 be 01 00 00 00 0f 86 c8 00 00 00 89 05 69 cc 0f 0e e9 bd 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 \<80\> 3c 02 00 0f 85 f3 2f 00 00 48 81 3b 20 75 17 8f 0f 84 52 f3 ff
RSP: 0018:ffffc90001f2f818 EFLAGS: 00010016
RAX: dffffc0000000000 RBX: 0000000000000018 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 000000000000000a R12: 0000000000000000
R13: ffff88801b98d700 R14: 0000000000000000 R15: 0000000000000001
FS:  00007f177cd3d700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f177cd1b268 CR3: 000000001dd55000 CR4: 0000000000350ee0
Call Trace:
 \<TASK\>
 lock\_acquire kernel/locking/lockdep.c:5637 \[inline\]
 lock\_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602
 \_\_raw\_spin\_lock\_irqsave include/linux/spinlock\_api\_smp.h:110 \[inline\]
 \_raw\_spin\_lock\_irqsave+0x39/0x50 kernel/locking/spinlock.c:162
 finish\_wait+0xc0/0x270 kernel/sched/wait.c:400
 inet\_csk\_wait\_for\_connect net/ipv4/inet\_connection\_sock.c:464 \[inline\]
 inet\_csk\_accept+0x7de/0x9d0 net/ipv4/inet\_connection\_sock.c:497
 mptcp\_accept+0xe5/0x500 net/mptcp/protocol.c:2865
 inet\_accept+0xe4/0x7b0 net/ipv4/af\_inet.c:739
 mptcp\_stream\_accept+0x2e7/0x10e0 net/mptcp/protocol.c:3345
 do\_accept+0x382/0x510 net/socket.c:1773
 \_\_sys\_accept4\_file+0x7e/0xe0 net/socket.c:1816
 \_\_sys\_accept4+0xb0/0x100 net/socket.c:1846
 \_\_do\_sys\_accept net/socket.c:1864 \[inline\]
 \_\_se\_sys\_accept net/socket.c:1861 \[inline\]
 \_\_x64\_sys\_accept+0x71/0xb0 net/socket.c:1861
 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:0x7f177cd8b8e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f177cd3d308 EFLAGS: 00000246 ORIG\_RAX: 000000000000002b
RAX: ffffffffffffffda RBX: 00007f177ce13408 RCX: 00007f177cd8b8e9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f177ce13400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f177ce1340c
R13: 00007f177cde1004 R14: 6d705f706374706d R15: 0000000000022000
 \</TASK\>

Fix the issue explicitly skipping MPTCP socket in TCP\_LISTEN
status.

## Affected and fixed versions

- Linux: \>= 740d798e8767d8a449902b1a1bbc70facfce19b5, \< 1456a0004cc54c58adb2501cb0c95dc8b3c83e9e; \>= 740d798e8767d8a449902b1a1bbc70facfce19b5, \< b0cdc5dbcf2ba0d99785da5aabf1b17943805b8a (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47594. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47594.md
Affected: Linux >= 740d798e8767d8a449902b1a1bbc70facfce19b5, < 1456a0004cc54c58adb2501cb0c95dc8b3c83e9e; >= 740d798e8767d8a449902b1a1bbc70facfce19b5, < b0cdc5dbcf2ba0d99785da5aabf1b17943805b8a; Linux 5.13
Fixed in: Linux 1456a0004cc54c58adb2501cb0c95dc8b3c83e9e

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 740d798e8767d8a449902b1a1bbc70facfce19b5, \< 1456a0004cc54c58adb2501cb0c95dc8b3c83e9e; \>= 740d798e8767d8a449902b1a1bbc70facfce19b5, \< b0cdc5dbcf2ba0d99785da5aabf1b17943805b8a; Linux 5.13.

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

Yes. Fixed in Linux 1456a0004cc54c58adb2501cb0c95dc8b3c83e9e. No fix listed yet: follow the vendor advisory.

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

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/1456a0004cc54c58adb2501cb0c95dc8b3c83e9e>
- patch: <https://git.kernel.org/stable/c/b0cdc5dbcf2ba0d99785da5aabf1b17943805b8a>

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

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