# CVE-2023-53490: mptcp: fix disconnect vs accept race

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-10-01T11:45:42.182Z
- **Modified:** 2026-08-05T09:14:22.176Z

## Who should check

- Anyone running Linux \>= b45d8f5375eda3ddc89fe529b58bb643917bd87b, \< ded9f5551ce5cafa3c41c794428c27a0d0a00542; \>= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, \< b2b4c84eb7149f34c0f25f17042d095ba5357d68; \>= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, \< 511b90e39250135a7f900f1c3afbce25543018a2; 64b66601308dae6105fbde964a339462a29c2a73; \>= 6.1.27, \< 6.1.46; \>= 6.2.13, \< 6.3
- Anyone running Linux 6.3

## Description

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

mptcp: fix disconnect vs accept race

Despite commit 0ad529d9fd2b ("mptcp: fix possible divide by zero in
recvmsg()"), the mptcp protocol is still prone to a race between
disconnect() (or shutdown) and accept.

The root cause is that the mentioned commit checks the msk-level
flag, but mptcp\_stream\_accept() does acquire the msk-level lock,
as it can rely directly on the first subflow lock.

As reported by Christoph than can lead to a race where an msk
socket is accepted after that mptcp\_subflow\_queue\_clean() releases
the listener socket lock and just before it takes destructive
actions leading to the following splat:

BUG: kernel NULL pointer dereference, address: 0000000000000012
PGD 5a4ca067 P4D 5a4ca067 PUD 37d4c067 PMD 0
Oops: 0000 \[\#1\] PREEMPT SMP
CPU: 2 PID: 10955 Comm: syz-executor.5 Not tainted 6.5.0-rc1-gdc7b257ee5dd \#37
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2.el7 04/01/2014
RIP: 0010:mptcp\_stream\_accept+0x1ee/0x2f0 include/net/inet\_sock.h:330
Code: 0a 09 00 48 8b 1b 4c 39 e3 74 07 e8 bc 7c 7f fe eb a1 e8 b5 7c 7f fe 4c 8b 6c 24 08 eb 05 e8 a9 7c 7f fe 49 8b 85 d8 09 00 00 \<0f\> b6 40 12 88 44 24 07 0f b6 6c 24 07 bf 07 00 00 00 89 ee e8 89
RSP: 0018:ffffc90000d07dc0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888037e8d020 RCX: ffff88803b093300
RDX: 0000000000000000 RSI: ffffffff833822c5 RDI: ffffffff8333896a
RBP: 0000607f82031520 R08: ffff88803b093300 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000003e83 R12: ffff888037e8d020
R13: ffff888037e8c680 R14: ffff888009af7900 R15: ffff888009af6880
FS:  00007fc26d708640(0000) GS:ffff88807dd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000012 CR3: 0000000066bc5001 CR4: 0000000000370ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 do\_accept+0x1ae/0x260 net/socket.c:1872
 \_\_sys\_accept4+0x9b/0x110 net/socket.c:1913
 \_\_do\_sys\_accept4 net/socket.c:1954 \[inline\]
 \_\_se\_sys\_accept4 net/socket.c:1951 \[inline\]
 \_\_x64\_sys\_accept4+0x20/0x30 net/socket.c:1951
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x47/0xa0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x6e/0xd8

Address the issue by temporary removing the pending request socket
from the accept queue, so that racing accept() can't touch them.

After depleting the msk - the ssk still exists, as plain TCP sockets,
re-insert them into the accept queue, so that later inet\_csk\_listen\_stop()
will complete the tcp socket disposal.

## Affected and fixed versions

- Linux: \>= b45d8f5375eda3ddc89fe529b58bb643917bd87b, \< ded9f5551ce5cafa3c41c794428c27a0d0a00542; \>= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, \< b2b4c84eb7149f34c0f25f17042d095ba5357d68; \>= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, \< 511b90e39250135a7f900f1c3afbce25543018a2; 64b66601308dae6105fbde964a339462a29c2a73; \>= 6.1.27, \< 6.1.46; \>= 6.2.13, \< 6.3 (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- Upgrade Linux to 6.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53490.md
Affected: Linux >= b45d8f5375eda3ddc89fe529b58bb643917bd87b, < ded9f5551ce5cafa3c41c794428c27a0d0a00542; >= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, < b2b4c84eb7149f34c0f25f17042d095ba5357d68; >= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, < 511b90e39250135a7f900f1c3afbce25543018a2; 64b66601308dae6105fbde964a…
Fixed in: Linux 511b90e39250135a7f900f1c3afbce25543018a2, Linux 6.1.46, Linux 6.3

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-2023-53490 being exploited?

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

### How serious is CVE-2023-53490?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53490?

Linux \>= b45d8f5375eda3ddc89fe529b58bb643917bd87b, \< ded9f5551ce5cafa3c41c794428c27a0d0a00542; \>= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, \< b2b4c84eb7149f34c0f25f17042d095ba5357d68; \>= 2a6a870e44dd88f1a6a2893c65ef756a9edfb4c7, \< 511b90e39250135a7f900f1c3afbce25543018a2; 64b66601308dae6105fbde964a339462a29c2a73; \>= 6.1.27, \< 6.1.46; \>= 6.2.13, \< 6.3; Linux 6.3.

### Is there a fix for CVE-2023-53490?

Yes. Fixed in Linux 511b90e39250135a7f900f1c3afbce25543018a2, Linux 6.1.46, Linux 6.3. Upgrade Linux to 6.3 or later.

### How do I check if I'm affected by CVE-2023-53490?

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/ded9f5551ce5cafa3c41c794428c27a0d0a00542>
- patch: <https://git.kernel.org/stable/c/b2b4c84eb7149f34c0f25f17042d095ba5357d68>
- patch: <https://git.kernel.org/stable/c/511b90e39250135a7f900f1c3afbce25543018a2>

## 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-2023-53490>

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