# CVE-2024-26781: mptcp: fix possible deadlock in subflow diag

> 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.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-04-04T08:20:15.775Z
- **Modified:** 2026-06-17T07:18:19.830Z

## Who should check

- Anyone running Linux \>= 8affdbb3e2ef6b6a3a467b87dc336dc601dc2ed9, \< 70e5b013538d5e4cb421afed431a5fcd2a5d49ee; \>= 7d6e8d7ee13b876e762b11f4ec210876ab7aec84, \< cc32ba2fdf3f8b136619fff551f166ba51ec856d; \>= 71787c665d09a970b9280c285181d3a2d1bf3bb0, \< f27d319df055629480b84b9288a502337b6f2a2e; \>= e074c8297ee421e7ff352404262fe0e042954ab7, \< fa8c776f4c323a9fbc8ddf25edcb962083391430; \>= 298ac00da8e6bc2dcd690b45108acbd944c347d3, \< d487e7ba1bc7444d5f062c4930ef8436c47c7e63; \>= b8adb69a7d29c2d33eb327bca66476fb6066516b, \< d6a9608af9a75d13243d217f6ce1e30e57d56ffe
- Anyone running Linux \>= 5.10.211, \< 5.10.212; \>= 5.15.150, \< 5.15.151; \>= 6.1.80, \< 6.1.81; \>= 6.6.19, \< 6.6.21; \>= 6.7.7, \< 6.7.9

## Description

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

mptcp: fix possible deadlock in subflow diag

Syzbot and Eric reported a lockdep splat in the subflow diag:

   WARNING: possible circular locking dependency detected
   6.8.0-rc4-syzkaller-00212-g40b9385dd8e6 \#0 Not tainted

   syz-executor.2/24141 is trying to acquire lock:
   ffff888045870130 (k-sk\_lock-AF\_INET6){+.+.}-{0:0}, at:
   tcp\_diag\_put\_ulp net/ipv4/tcp\_diag.c:100 \[inline\]
   ffff888045870130 (k-sk\_lock-AF\_INET6){+.+.}-{0:0}, at:
   tcp\_diag\_get\_aux+0x738/0x830 net/ipv4/tcp\_diag.c:137

   but task is already holding lock:
   ffffc9000135e488 (&h-\>lhash2\[i\].lock){+.+.}-{2:2}, at: spin\_lock
   include/linux/spinlock.h:351 \[inline\]
   ffffc9000135e488 (&h-\>lhash2\[i\].lock){+.+.}-{2:2}, at:
   inet\_diag\_dump\_icsk+0x39f/0x1f80 net/ipv4/inet\_diag.c:1038

   which lock already depends on the new lock.

   the existing dependency chain (in reverse order) is:

   -\> \#1 (&h-\>lhash2\[i\].lock){+.+.}-{2:2}:
   lock\_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754
   \_\_raw\_spin\_lock include/linux/spinlock\_api\_smp.h:133 \[inline\]
   \_raw\_spin\_lock+0x2e/0x40 kernel/locking/spinlock.c:154
   spin\_lock include/linux/spinlock.h:351 \[inline\]
   \_\_inet\_hash+0x335/0xbe0 net/ipv4/inet\_hashtables.c:743
   inet\_csk\_listen\_start+0x23a/0x320 net/ipv4/inet\_connection\_sock.c:1261
   \_\_inet\_listen\_sk+0x2a2/0x770 net/ipv4/af\_inet.c:217
   inet\_listen+0xa3/0x110 net/ipv4/af\_inet.c:239
   rds\_tcp\_listen\_init+0x3fd/0x5a0 net/rds/tcp\_listen.c:316
   rds\_tcp\_init\_net+0x141/0x320 net/rds/tcp.c:577
   ops\_init+0x352/0x610 net/core/net\_namespace.c:136
   \_\_register\_pernet\_operations net/core/net\_namespace.c:1214 \[inline\]
   register\_pernet\_operations+0x2cb/0x660 net/core/net\_namespace.c:1283
   register\_pernet\_device+0x33/0x80 net/core/net\_namespace.c:1370
   rds\_tcp\_init+0x62/0xd0 net/rds/tcp.c:735
   do\_one\_initcall+0x238/0x830 init/main.c:1236
   do\_initcall\_level+0x157/0x210 init/main.c:1298
   do\_initcalls+0x3f/0x80 init/main.c:1314
   kernel\_init\_freeable+0x42f/0x5d0 init/main.c:1551
   kernel\_init+0x1d/0x2a0 init/main.c:1441
   ret\_from\_fork+0x4b/0x80 arch/x86/kernel/process.c:147
   ret\_from\_fork\_asm+0x1b/0x30 arch/x86/entry/entry\_64.S:242

   -\> \#0 (k-sk\_lock-AF\_INET6){+.+.}-{0:0}:
   check\_prev\_add kernel/locking/lockdep.c:3134 \[inline\]
   check\_prevs\_add kernel/locking/lockdep.c:3253 \[inline\]
   validate\_chain+0x18ca/0x58e0 kernel/locking/lockdep.c:3869
   \_\_lock\_acquire+0x1345/0x1fd0 kernel/locking/lockdep.c:5137
   lock\_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754
   lock\_sock\_fast include/net/sock.h:1723 \[inline\]
   subflow\_get\_info+0x166/0xd20 net/mptcp/diag.c:28
   tcp\_diag\_put\_ulp net/ipv4/tcp\_diag.c:100 \[inline\]
   tcp\_diag\_get\_aux+0x738/0x830 net/ipv4/tcp\_diag.c:137
   inet\_sk\_diag\_fill+0x10ed/0x1e00 net/ipv4/inet\_diag.c:345
   inet\_diag\_dump\_icsk+0x55b/0x1f80 net/ipv4/inet\_diag.c:1061
   \_\_inet\_diag\_dump+0x211/0x3a0 net/ipv4/inet\_diag.c:1263
   inet\_diag\_dump\_compat+0x1c1/0x2d0 net/ipv4/inet\_diag.c:1371
   netlink\_dump+0x59b/0xc80 net/netlink/af\_netlink.c:2264
   \_\_netlink\_dump\_start+0x5df/0x790 net/netlink/af\_netlink.c:2370
   netlink\_dump\_start include/linux/netlink.h:338 \[inline\]
   inet\_diag\_rcv\_msg\_compat+0x209/0x4c0 net/ipv4/inet\_diag.c:1405
   sock\_diag\_rcv\_msg+0xe7/0x410
   netlink\_rcv\_skb+0x1e3/0x430 net/netlink/af\_netlink.c:2543
   sock\_diag\_rcv+0x2a/0x40 net/core/sock\_diag.c:280
   netlink\_unicast\_kernel net/netlink/af\_netlink.c:1341 \[inline\]
   netlink\_unicast+0x7ea/0x980 net/netlink/af\_netlink.c:1367
   netlink\_sendmsg+0xa3b/0xd70 net/netlink/af\_netlink.c:1908
   sock\_sendmsg\_nosec net/socket.c:730 \[inline\]
   \_\_sock\_sendmsg+0x221/0x270 net/socket.c:745
   \_\_\_\_sys\_sendmsg+0x525/0x7d0 net/socket.c:2584
   \_\_\_sys\_sendmsg net/socket.c:2638 \[inline\]
   \_\_sys\_sendmsg+0x2b0/0x3a0 net/socket.c:2667
   do\_syscall\_64+0xf9/0x240
   entry\_SYSCALL\_64\_after\_hwframe+0x6f/0x77

As noted by Eric we can break the lock dependency chain avoid
dumping 
---truncated---

## Affected and fixed versions

- Linux: \>= 8affdbb3e2ef6b6a3a467b87dc336dc601dc2ed9, \< 70e5b013538d5e4cb421afed431a5fcd2a5d49ee; \>= 7d6e8d7ee13b876e762b11f4ec210876ab7aec84, \< cc32ba2fdf3f8b136619fff551f166ba51ec856d; \>= 71787c665d09a970b9280c285181d3a2d1bf3bb0, \< f27d319df055629480b84b9288a502337b6f2a2e; \>= e074c8297ee421e7ff352404262fe0e042954ab7, \< fa8c776f4c323a9fbc8ddf25edcb962083391430; \>= 298ac00da8e6bc2dcd690b45108acbd944c347d3, \< d487e7ba1bc7444d5f062c4930ef8436c47c7e63; \>= b8adb69a7d29c2d33eb327bca66476fb6066516b, \< d6a9608af9a75d13243d217f6ce1e30e57d56ffe (cvelist)
- Linux: \>= 5.10.211, \< 5.10.212; \>= 5.15.150, \< 5.15.151; \>= 6.1.80, \< 6.1.81; \>= 6.6.19, \< 6.6.21; \>= 6.7.7, \< 6.7.9 (cvelist)

## Mitigation

- Upgrade Linux to 6.7.9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26781.md
Affected: Linux >= 8affdbb3e2ef6b6a3a467b87dc336dc601dc2ed9, < 70e5b013538d5e4cb421afed431a5fcd2a5d49ee; >= 7d6e8d7ee13b876e762b11f4ec210876ab7aec84, < cc32ba2fdf3f8b136619fff551f166ba51ec856d; >= 71787c665d09a970b9280c285181d3a2d1bf3bb0, < f27d319df055629480b84b9288a502337b6f2a2e; >= e074c8297ee421e7ff35240…
Fixed in: Linux 70e5b013538d5e4cb421afed431a5fcd2a5d49ee, Linux 5.10.212, Linux 5.15.151, Linux 6.1.81, Linux 6.6.21, Linux 6.7.9

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-2024-26781 being exploited?

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

### How serious is CVE-2024-26781?

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

### Which versions are affected by CVE-2024-26781?

Linux \>= 8affdbb3e2ef6b6a3a467b87dc336dc601dc2ed9, \< 70e5b013538d5e4cb421afed431a5fcd2a5d49ee; \>= 7d6e8d7ee13b876e762b11f4ec210876ab7aec84, \< cc32ba2fdf3f8b136619fff551f166ba51ec856d; \>= 71787c665d09a970b9280c285181d3a2d1bf3bb0, \< f27d319df055629480b84b9288a502337b6f2a2e; \>= e074c8297ee421e7ff352404262fe0e042954ab7, \< fa8c776f4c323a9fbc8ddf25edcb962083391430; \>= 298ac00da8e6bc2dcd690b45108acbd944c347d3, \< d487e7ba1bc7444d5f062c4930ef8436c47c7e63; \>= b8adb69a7d29c2d33eb327bca66476fb6066516b, \< d6a9608af9a75d13243d217f6ce1e30e57d56ffe; Linux \>= 5.10.211, \< 5.10.212; \>= 5.15.150, \< 5.15.151; \>= 6.1.80, \< 6.1.81; \>= 6.6.19, \< 6.6.21; \>= 6.7.7, \< 6.7.9.

### Is there a fix for CVE-2024-26781?

Yes. Fixed in Linux 70e5b013538d5e4cb421afed431a5fcd2a5d49ee, Linux 5.10.212, Linux 5.15.151, Linux 6.1.81, Linux 6.6.21, Linux 6.7.9. Upgrade Linux to 6.7.9 or later.

### How do I check if I'm affected by CVE-2024-26781?

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/70e5b013538d5e4cb421afed431a5fcd2a5d49ee>
- patch: <https://git.kernel.org/stable/c/cc32ba2fdf3f8b136619fff551f166ba51ec856d>
- patch: <https://git.kernel.org/stable/c/f27d319df055629480b84b9288a502337b6f2a2e>
- patch: <https://git.kernel.org/stable/c/fa8c776f4c323a9fbc8ddf25edcb962083391430>
- patch: <https://git.kernel.org/stable/c/d487e7ba1bc7444d5f062c4930ef8436c47c7e63>
- patch: <https://git.kernel.org/stable/c/d6a9608af9a75d13243d217f6ce1e30e57d56ffe>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## 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-2024-26781>

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