# CVE-2025-21875: mptcp: always handle address removal under msk socket lock

> 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.32% (percentile 18, 2026-11-26)
- **Published:** 2025-03-27T14:57:06.154Z
- **Modified:** 2026-11-10T13:17:38.333Z

## Who should check

- Anyone running Linux \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 494ec285535632732eaa5786297a9ae4f731b5ff; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 7cca31035c05819643ffb5d7518e9a331b3f6651; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 8116fb4acd5d3f06cd37f84887dbe962b6703b1c; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< a05da2be18aae7e82572f8d795f41bb49f5dfc7d; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 4124b782ec2b1e2e490cf0bbf10f53dfd3479890; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 2c3de6dff4373f1036e003f49a32629359530bdb; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< f865c24bc55158313d5779fc81116023a6940ca3
- Anyone running Linux 5.10

## Description

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

mptcp: always handle address removal under msk socket lock

Syzkaller reported a lockdep splat in the PM control path:

  WARNING: CPU: 0 PID: 6693 at ./include/net/sock.h:1711 sock\_owned\_by\_me include/net/sock.h:1711 \[inline\]
  WARNING: CPU: 0 PID: 6693 at ./include/net/sock.h:1711 msk\_owned\_by\_me net/mptcp/protocol.h:363 \[inline\]
  WARNING: CPU: 0 PID: 6693 at ./include/net/sock.h:1711 mptcp\_pm\_nl\_addr\_send\_ack+0x57c/0x610 net/mptcp/pm\_netlink.c:788
  Modules linked in:
  CPU: 0 UID: 0 PID: 6693 Comm: syz.0.205 Not tainted 6.14.0-rc2-syzkaller-00303-gad1b832bf1cf \#0
  Hardware name: Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
  RIP: 0010:sock\_owned\_by\_me include/net/sock.h:1711 \[inline\]
  RIP: 0010:msk\_owned\_by\_me net/mptcp/protocol.h:363 \[inline\]
  RIP: 0010:mptcp\_pm\_nl\_addr\_send\_ack+0x57c/0x610 net/mptcp/pm\_netlink.c:788
  Code: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 ca 7b d3 f5 eb b9 e8 c3 7b d3 f5 90 0f 0b 90 e9 dd fb ff ff e8 b5 7b d3 f5 90 \<0f\> 0b 90 e9 3e fb ff ff 44 89 f1 80 e1 07 38 c1 0f 8c eb fb ff ff
  RSP: 0000:ffffc900034f6f60 EFLAGS: 00010283
  RAX: ffffffff8bee3c2b RBX: 0000000000000001 RCX: 0000000000080000
  RDX: ffffc90004d42000 RSI: 000000000000a407 RDI: 000000000000a408
  RBP: ffffc900034f7030 R08: ffffffff8bee37f6 R09: 0100000000000000
  R10: dffffc0000000000 R11: ffffed100bcc62e4 R12: ffff88805e6316e0
  R13: ffff88805e630c00 R14: dffffc0000000000 R15: ffff88805e630c00
  FS:  00007f7e9a7e96c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000001b2fd18ff8 CR3: 0000000032c24000 CR4: 00000000003526f0
  DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
  Call Trace:
   \<TASK\>
   mptcp\_pm\_remove\_addr+0x103/0x1d0 net/mptcp/pm.c:59
   mptcp\_pm\_remove\_anno\_addr+0x1f4/0x2f0 net/mptcp/pm\_netlink.c:1486
   mptcp\_nl\_remove\_subflow\_and\_signal\_addr net/mptcp/pm\_netlink.c:1518 \[inline\]
   mptcp\_pm\_nl\_del\_addr\_doit+0x118d/0x1af0 net/mptcp/pm\_netlink.c:1629
   genl\_family\_rcv\_msg\_doit net/netlink/genetlink.c:1115 \[inline\]
   genl\_family\_rcv\_msg net/netlink/genetlink.c:1195 \[inline\]
   genl\_rcv\_msg+0xb1f/0xec0 net/netlink/genetlink.c:1210
   netlink\_rcv\_skb+0x206/0x480 net/netlink/af\_netlink.c:2543
   genl\_rcv+0x28/0x40 net/netlink/genetlink.c:1219
   netlink\_unicast\_kernel net/netlink/af\_netlink.c:1322 \[inline\]
   netlink\_unicast+0x7f6/0x990 net/netlink/af\_netlink.c:1348
   netlink\_sendmsg+0x8de/0xcb0 net/netlink/af\_netlink.c:1892
   sock\_sendmsg\_nosec net/socket.c:718 \[inline\]
   \_\_sock\_sendmsg+0x221/0x270 net/socket.c:733
   \_\_\_\_sys\_sendmsg+0x53a/0x860 net/socket.c:2573
   \_\_\_sys\_sendmsg net/socket.c:2627 \[inline\]
   \_\_sys\_sendmsg+0x269/0x350 net/socket.c:2659
   do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
   do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
   entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
  RIP: 0033:0x7f7e9998cde9
  Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
  RSP: 002b:00007f7e9a7e9038 EFLAGS: 00000246 ORIG\_RAX: 000000000000002e
  RAX: ffffffffffffffda RBX: 00007f7e99ba5fa0 RCX: 00007f7e9998cde9
  RDX: 000000002000c094 RSI: 0000400000000000 RDI: 0000000000000007
  RBP: 00007f7e99a0e2a0 R08: 0000000000000000 R09: 0000000000000000
  R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
  R13: 0000000000000000 R14: 00007f7e99ba5fa0 R15: 00007fff49231088

Indeed the PM can try to send a RM\_ADDR over a msk without acquiring
first the msk socket lock.

The bugged code-path comes from an early optimization: when there
are no subflows, the PM should (usually) not send RM\_ADDR
notifications.

The above statement is incorrect, as without locks another process
could concur
---truncated---

## Affected and fixed versions

- Linux: \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 494ec285535632732eaa5786297a9ae4f731b5ff; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 7cca31035c05819643ffb5d7518e9a331b3f6651; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 8116fb4acd5d3f06cd37f84887dbe962b6703b1c; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< a05da2be18aae7e82572f8d795f41bb49f5dfc7d; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 4124b782ec2b1e2e490cf0bbf10f53dfd3479890; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 2c3de6dff4373f1036e003f49a32629359530bdb; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< f865c24bc55158313d5779fc81116023a6940ca3 (cvelist)
- Linux: 5.10 (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-2025-21875. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21875.md
Affected: Linux >= b6c08380860b926752d57c8fa9911fa388c4b876, < 494ec285535632732eaa5786297a9ae4f731b5ff; >= b6c08380860b926752d57c8fa9911fa388c4b876, < 7cca31035c05819643ffb5d7518e9a331b3f6651; >= b6c08380860b926752d57c8fa9911fa388c4b876, < 8116fb4acd5d3f06cd37f84887dbe962b6703b1c; >= b6c08380860b926752d57c8…
Fixed in: Linux 494ec285535632732eaa5786297a9ae4f731b5ff, Linux 7cca31035c05819643ffb5d7518e9a331b3f6651, Linux 8116fb4acd5d3f06cd37f84887dbe962b6703b1c, Linux 4124b782ec2b1e2e490cf0bbf10f53dfd3479890, Linux 2c3de6dff4373f1036e003f49a32629359530bdb

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-2025-21875 being exploited?

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

### How serious is CVE-2025-21875?

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

### Which versions are affected by CVE-2025-21875?

Linux \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 494ec285535632732eaa5786297a9ae4f731b5ff; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 7cca31035c05819643ffb5d7518e9a331b3f6651; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 8116fb4acd5d3f06cd37f84887dbe962b6703b1c; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< a05da2be18aae7e82572f8d795f41bb49f5dfc7d; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 4124b782ec2b1e2e490cf0bbf10f53dfd3479890; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< 2c3de6dff4373f1036e003f49a32629359530bdb; \>= b6c08380860b926752d57c8fa9911fa388c4b876, \< f865c24bc55158313d5779fc81116023a6940ca3; Linux 5.10.

### Is there a fix for CVE-2025-21875?

Yes. Fixed in Linux 494ec285535632732eaa5786297a9ae4f731b5ff, Linux 7cca31035c05819643ffb5d7518e9a331b3f6651, Linux 8116fb4acd5d3f06cd37f84887dbe962b6703b1c, Linux 4124b782ec2b1e2e490cf0bbf10f53dfd3479890, Linux 2c3de6dff4373f1036e003f49a32629359530bdb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21875?

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/494ec285535632732eaa5786297a9ae4f731b5ff>
- patch: <https://git.kernel.org/stable/c/7cca31035c05819643ffb5d7518e9a331b3f6651>
- patch: <https://git.kernel.org/stable/c/8116fb4acd5d3f06cd37f84887dbe962b6703b1c>
- patch: <https://git.kernel.org/stable/c/a05da2be18aae7e82572f8d795f41bb49f5dfc7d>
- patch: <https://git.kernel.org/stable/c/4124b782ec2b1e2e490cf0bbf10f53dfd3479890>
- patch: <https://git.kernel.org/stable/c/2c3de6dff4373f1036e003f49a32629359530bdb>
- patch: <https://git.kernel.org/stable/c/f865c24bc55158313d5779fc81116023a6940ca3>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.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-2025-21875>

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