# CVE-2025-21938: mptcp: fix 'scheduling while atomic' in mptcp\_pm\_nl\_append\_new\_local\_addr

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.55% (percentile 40, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2025-04-01T15:41:04.886Z
- **Modified:** 2026-11-10T13:17:39.797Z

## Who should check

- Anyone running Linux \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< f1404f368c40fc6a068dad72e4ee0824ee6a78ee; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< f3fcdb2de9fdbed9d8c6a8eb2c5fbd7d6f54a4d8; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 4b228dae3d2cc6d9dce167449cd8fa9f028e9376; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 125ccafe6dd062901b5a0c31ee9038740fc8859e; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 022bfe24aad8937705704ff2e414b100cf0f2e1a
- Anyone running Linux 5.18

## Description

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

mptcp: fix 'scheduling while atomic' in mptcp\_pm\_nl\_append\_new\_local\_addr

If multiple connection requests attempt to create an implicit mptcp
endpoint in parallel, more than one caller may end up in
mptcp\_pm\_nl\_append\_new\_local\_addr because none found the address in
local\_addr\_list during their call to mptcp\_pm\_nl\_get\_local\_id.  In this
case, the concurrent new\_local\_addr calls may delete the address entry
created by the previous caller.  These deletes use synchronize\_rcu, but
this is not permitted in some of the contexts where this function may be
called.  During packet recv, the caller may be in a rcu read critical
section and have preemption disabled.

An example stack:

   BUG: scheduling while atomic: swapper/2/0/0x00000302

   Call Trace:
   \<IRQ\>
   dump\_stack\_lvl (lib/dump\_stack.c:117 (discriminator 1))
   dump\_stack (lib/dump\_stack.c:124)
   \_\_schedule\_bug (kernel/sched/core.c:5943)
   schedule\_debug.constprop.0 (arch/x86/include/asm/preempt.h:33 kernel/sched/core.c:5970)
   \_\_schedule (arch/x86/include/asm/jump\_label.h:27 include/linux/jump\_label.h:207 kernel/sched/features.h:29 kernel/sched/core.c:6621)
   schedule (arch/x86/include/asm/preempt.h:84 kernel/sched/core.c:6804 kernel/sched/core.c:6818)
   schedule\_timeout (kernel/time/timer.c:2160)
   wait\_for\_completion (kernel/sched/completion.c:96 kernel/sched/completion.c:116 kernel/sched/completion.c:127 kernel/sched/completion.c:148)
   \_\_wait\_rcu\_gp (include/linux/rcupdate.h:311 kernel/rcu/update.c:444)
   synchronize\_rcu (kernel/rcu/tree.c:3609)
   mptcp\_pm\_nl\_append\_new\_local\_addr (net/mptcp/pm\_netlink.c:966 net/mptcp/pm\_netlink.c:1061)
   mptcp\_pm\_nl\_get\_local\_id (net/mptcp/pm\_netlink.c:1164)
   mptcp\_pm\_get\_local\_id (net/mptcp/pm.c:420)
   subflow\_check\_req (net/mptcp/subflow.c:98 net/mptcp/subflow.c:213)
   subflow\_v4\_route\_req (net/mptcp/subflow.c:305)
   tcp\_conn\_request (net/ipv4/tcp\_input.c:7216)
   subflow\_v4\_conn\_request (net/mptcp/subflow.c:651)
   tcp\_rcv\_state\_process (net/ipv4/tcp\_input.c:6709)
   tcp\_v4\_do\_rcv (net/ipv4/tcp\_ipv4.c:1934)
   tcp\_v4\_rcv (net/ipv4/tcp\_ipv4.c:2334)
   ip\_protocol\_deliver\_rcu (net/ipv4/ip\_input.c:205 (discriminator 1))
   ip\_local\_deliver\_finish (include/linux/rcupdate.h:813 net/ipv4/ip\_input.c:234)
   ip\_local\_deliver (include/linux/netfilter.h:314 include/linux/netfilter.h:308 net/ipv4/ip\_input.c:254)
   ip\_sublist\_rcv\_finish (include/net/dst.h:461 net/ipv4/ip\_input.c:580)
   ip\_sublist\_rcv (net/ipv4/ip\_input.c:640)
   ip\_list\_rcv (net/ipv4/ip\_input.c:675)
   \_\_netif\_receive\_skb\_list\_core (net/core/dev.c:5583 net/core/dev.c:5631)
   netif\_receive\_skb\_list\_internal (net/core/dev.c:5685 net/core/dev.c:5774)
   napi\_complete\_done (include/linux/list.h:37 include/net/gro.h:449 include/net/gro.h:444 net/core/dev.c:6114)
   igb\_poll (drivers/net/ethernet/intel/igb/igb\_main.c:8244) igb
   \_\_napi\_poll (net/core/dev.c:6582)
   net\_rx\_action (net/core/dev.c:6653 net/core/dev.c:6787)
   handle\_softirqs (kernel/softirq.c:553)
   \_\_irq\_exit\_rcu (kernel/softirq.c:588 kernel/softirq.c:427 kernel/softirq.c:636)
   irq\_exit\_rcu (kernel/softirq.c:651)
   common\_interrupt (arch/x86/kernel/irq.c:247 (discriminator 14))
   \</IRQ\>

This problem seems particularly prevalent if the user advertises an
endpoint that has a different external vs internal address.  In the case
where the external address is advertised and multiple connections
already exist, multiple subflow SYNs arrive in parallel which tends to
trigger the race during creation of the first local\_addr\_list entries
which have the internal address instead.

Fix by skipping the replacement of an existing implicit local address if
called via mptcp\_pm\_nl\_get\_local\_id.

## Affected and fixed versions

- Linux: \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< f1404f368c40fc6a068dad72e4ee0824ee6a78ee; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< f3fcdb2de9fdbed9d8c6a8eb2c5fbd7d6f54a4d8; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 4b228dae3d2cc6d9dce167449cd8fa9f028e9376; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 125ccafe6dd062901b5a0c31ee9038740fc8859e; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 022bfe24aad8937705704ff2e414b100cf0f2e1a (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 022bfe24aad8937705704ff2e414b100cf0f2e1a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-21938.md
Affected: Linux >= d045b9eb95a9b611c483897a69e7285aefdc66d7, < f1404f368c40fc6a068dad72e4ee0824ee6a78ee; >= d045b9eb95a9b611c483897a69e7285aefdc66d7, < f3fcdb2de9fdbed9d8c6a8eb2c5fbd7d6f54a4d8; >= d045b9eb95a9b611c483897a69e7285aefdc66d7, < 4b228dae3d2cc6d9dce167449cd8fa9f028e9376; >= d045b9eb95a9b611c483897…
Fixed in: Linux 4b228dae3d2cc6d9dce167449cd8fa9f028e9376, Linux 125ccafe6dd062901b5a0c31ee9038740fc8859e, Linux 022bfe24aad8937705704ff2e414b100cf0f2e1a

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< f1404f368c40fc6a068dad72e4ee0824ee6a78ee; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< f3fcdb2de9fdbed9d8c6a8eb2c5fbd7d6f54a4d8; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 4b228dae3d2cc6d9dce167449cd8fa9f028e9376; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 125ccafe6dd062901b5a0c31ee9038740fc8859e; \>= d045b9eb95a9b611c483897a69e7285aefdc66d7, \< 022bfe24aad8937705704ff2e414b100cf0f2e1a; Linux 5.18.

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

Yes. Fixed in Linux 4b228dae3d2cc6d9dce167449cd8fa9f028e9376, Linux 125ccafe6dd062901b5a0c31ee9038740fc8859e, Linux 022bfe24aad8937705704ff2e414b100cf0f2e1a. Upgrade Linux to 022bfe24aad8937705704ff2e414b100cf0f2e1a or later.

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

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/f1404f368c40fc6a068dad72e4ee0824ee6a78ee>
- patch: <https://git.kernel.org/stable/c/f3fcdb2de9fdbed9d8c6a8eb2c5fbd7d6f54a4d8>
- patch: <https://git.kernel.org/stable/c/4b228dae3d2cc6d9dce167449cd8fa9f028e9376>
- patch: <https://git.kernel.org/stable/c/125ccafe6dd062901b5a0c31ee9038740fc8859e>
- patch: <https://git.kernel.org/stable/c/022bfe24aad8937705704ff2e414b100cf0f2e1a>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.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-21938>

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