# CVE-2021-47242: mptcp: fix soft lookup in subflow\_error\_report()

> 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.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-05-21T14:19:41.665Z
- **Modified:** 2026-08-05T08:46:53.149Z

## Who should check

- Anyone running Linux \>= 15cc10453398c22f78f6c2b897119ecce5e5dd89, \< 27ef25c72373222aaa5fe7b5cd890ae9cfb89a8d; \>= 15cc10453398c22f78f6c2b897119ecce5e5dd89, \< 499ada5073361c631f2a3c4a8aed44d53b6f82ec; c8ad65cb5051498b8a58be40499db9e930f0092e; \>= 5.11.12, \< 5.12
- Anyone running Linux 5.12

## Description

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

mptcp: fix soft lookup in subflow\_error\_report()

Maxim reported a soft lookup in subflow\_error\_report():

 watchdog: BUG: soft lockup - CPU\#0 stuck for 22s! \[swapper/0:0\]
 RIP: 0010:native\_queued\_spin\_lock\_slowpath
 RSP: 0018:ffffa859c0003bc0 EFLAGS: 00000202
 RAX: 0000000000000101 RBX: 0000000000000001 RCX: 0000000000000000
 RDX: ffff9195c2772d88 RSI: 0000000000000000 RDI: ffff9195c2772d88
 RBP: ffff9195c2772d00 R08: 00000000000067b0 R09: c6e31da9eb1e44f4
 R10: ffff9195ef379700 R11: ffff9195edb50710 R12: ffff9195c2772d88
 R13: ffff9195f500e3d0 R14: ffff9195ef379700 R15: ffff9195ef379700
 FS:  0000000000000000(0000) GS:ffff91961f400000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 000000c000407000 CR3: 0000000002988000 CR4: 00000000000006f0
 Call Trace:
  \<IRQ\>
 \_raw\_spin\_lock\_bh
 subflow\_error\_report
 mptcp\_subflow\_data\_available
 \_\_mptcp\_move\_skbs\_from\_subflow
 mptcp\_data\_ready
 tcp\_data\_queue
 tcp\_rcv\_established
 tcp\_v4\_do\_rcv
 tcp\_v4\_rcv
 ip\_protocol\_deliver\_rcu
 ip\_local\_deliver\_finish
 \_\_netif\_receive\_skb\_one\_core
 netif\_receive\_skb
 rtl8139\_poll 8139too
 \_\_napi\_poll
 net\_rx\_action
 \_\_do\_softirq
 \_\_irq\_exit\_rcu
 common\_interrupt
  \</IRQ\>

The calling function - mptcp\_subflow\_data\_available() - can be invoked
from different contexts:
- plain ssk socket lock
- ssk socket lock + mptcp\_data\_lock
- ssk socket lock + mptcp\_data\_lock + msk socket lock.

Since subflow\_error\_report() tries to acquire the mptcp\_data\_lock, the
latter two call chains will cause soft lookup.

This change addresses the issue moving the error reporting call to
outer functions, where the held locks list is known and the we can
acquire only the needed one.

## Affected and fixed versions

- Linux: \>= 15cc10453398c22f78f6c2b897119ecce5e5dd89, \< 27ef25c72373222aaa5fe7b5cd890ae9cfb89a8d; \>= 15cc10453398c22f78f6c2b897119ecce5e5dd89, \< 499ada5073361c631f2a3c4a8aed44d53b6f82ec; c8ad65cb5051498b8a58be40499db9e930f0092e; \>= 5.11.12, \< 5.12 (cvelist)
- Linux: 5.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2021-47242.md
Affected: Linux >= 15cc10453398c22f78f6c2b897119ecce5e5dd89, < 27ef25c72373222aaa5fe7b5cd890ae9cfb89a8d; >= 15cc10453398c22f78f6c2b897119ecce5e5dd89, < 499ada5073361c631f2a3c4a8aed44d53b6f82ec; c8ad65cb5051498b8a58be40499db9e930f0092e; >= 5.11.12, < 5.12; Linux 5.12
Fixed in: Linux 27ef25c72373222aaa5fe7b5cd890ae9cfb89a8d, Linux 499ada5073361c631f2a3c4a8aed44d53b6f82ec, Linux 5.12

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

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

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

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

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

Linux \>= 15cc10453398c22f78f6c2b897119ecce5e5dd89, \< 27ef25c72373222aaa5fe7b5cd890ae9cfb89a8d; \>= 15cc10453398c22f78f6c2b897119ecce5e5dd89, \< 499ada5073361c631f2a3c4a8aed44d53b6f82ec; c8ad65cb5051498b8a58be40499db9e930f0092e; \>= 5.11.12, \< 5.12; Linux 5.12.

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

Yes. Fixed in Linux 27ef25c72373222aaa5fe7b5cd890ae9cfb89a8d, Linux 499ada5073361c631f2a3c4a8aed44d53b6f82ec, Linux 5.12. Upgrade Linux to 5.12 or later.

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

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/27ef25c72373222aaa5fe7b5cd890ae9cfb89a8d>
- patch: <https://git.kernel.org/stable/c/499ada5073361c631f2a3c4a8aed44d53b6f82ec>

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

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