# CVE-2021-47590: mptcp: fix deadlock in \_\_mptcp\_push\_pending()

> 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.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-06-19T14:53:54.244Z
- **Modified:** 2026-06-17T04:17:49.750Z

## Who should check

- Anyone running Linux \>= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, \< 23311b92755ffa9087332d1bb8c71c0f6a10cc08; \>= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, \< 3d79e3756ca90f7a6087b77b62c1d9c0801e0820
- Anyone running Linux 5.13

## Description

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

mptcp: fix deadlock in \_\_mptcp\_push\_pending()

\_\_mptcp\_push\_pending() may call mptcp\_flush\_join\_list() with subflow
socket lock held. If such call hits mptcp\_sockopt\_sync\_all() then
subsequently \_\_mptcp\_sockopt\_sync() could try to lock the subflow
socket for itself, causing a deadlock.

sysrq: Show Blocked State
task:ss-server       state:D stack:    0 pid:  938 ppid:     1 flags:0x00000000
Call Trace:
 \<TASK\>
 \_\_schedule+0x2d6/0x10c0
 ? \_\_mod\_memcg\_state+0x4d/0x70
 ? csum\_partial+0xd/0x20
 ? \_raw\_spin\_lock\_irqsave+0x26/0x50
 schedule+0x4e/0xc0
 \_\_lock\_sock+0x69/0x90
 ? do\_wait\_intr\_irq+0xa0/0xa0
 \_\_lock\_sock\_fast+0x35/0x50
 mptcp\_sockopt\_sync\_all+0x38/0xc0
 \_\_mptcp\_push\_pending+0x105/0x200
 mptcp\_sendmsg+0x466/0x490
 sock\_sendmsg+0x57/0x60
 \_\_sys\_sendto+0xf0/0x160
 ? do\_wait\_intr\_irq+0xa0/0xa0
 ? fpregs\_restore\_userregs+0x12/0xd0
 \_\_x64\_sys\_sendto+0x20/0x30
 do\_syscall\_64+0x38/0x90
 entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
RIP: 0033:0x7f9ba546c2d0
RSP: 002b:00007ffdc3b762d8 EFLAGS: 00000246 ORIG\_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f9ba56c8060 RCX: 00007f9ba546c2d0
RDX: 000000000000077a RSI: 0000000000e5e180 RDI: 0000000000000234
RBP: 0000000000cc57f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9ba56c8060
R13: 0000000000b6ba60 R14: 0000000000cc7840 R15: 41d8685b1d7901b8
 \</TASK\>

Fix the issue by using \_\_mptcp\_flush\_join\_list() instead of plain
mptcp\_flush\_join\_list() inside \_\_mptcp\_push\_pending(), as suggested by
Florian. The sockopt sync will be deferred to the workqueue.

## Affected and fixed versions

- Linux: \>= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, \< 23311b92755ffa9087332d1bb8c71c0f6a10cc08; \>= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, \< 3d79e3756ca90f7a6087b77b62c1d9c0801e0820 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2021-47590.md
Affected: Linux >= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, < 23311b92755ffa9087332d1bb8c71c0f6a10cc08; >= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, < 3d79e3756ca90f7a6087b77b62c1d9c0801e0820; Linux 5.13
Fixed in: Linux 23311b92755ffa9087332d1bb8c71c0f6a10cc08, Linux 3d79e3756ca90f7a6087b77b62c1d9c0801e0820

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

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

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

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

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

Linux \>= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, \< 23311b92755ffa9087332d1bb8c71c0f6a10cc08; \>= 1b3e7ede1365a24db1b4fd837e58a595f52fa4ad, \< 3d79e3756ca90f7a6087b77b62c1d9c0801e0820; Linux 5.13.

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

Yes. Fixed in Linux 23311b92755ffa9087332d1bb8c71c0f6a10cc08, Linux 3d79e3756ca90f7a6087b77b62c1d9c0801e0820. Upgrade Linux to 3d79e3756ca90f7a6087b77b62c1d9c0801e0820 or later.

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

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/23311b92755ffa9087332d1bb8c71c0f6a10cc08>
- patch: <https://git.kernel.org/stable/c/3d79e3756ca90f7a6087b77b62c1d9c0801e0820>

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

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