# CVE-2024-35894: mptcp: prevent BPF accessing lowat from a subflow socket.

> 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.33% (percentile 18, 2026-11-26)
- **Published:** 2024-05-19T08:34:49.504Z
- **Modified:** 2026-08-05T11:30:46.642Z

## Who should check

- Anyone running Linux \>= 124a4885b55f3039c697feb53edc5ad88bf21161, \< ee3c845787b621cfe82c2e52c513024a9d7a78f5; \>= 5684ab1a0effbfeb706f47d85785f653005b97b1, \< 3ffb1ab698376f09cc33101c07c1be229389fe29; \>= 5684ab1a0effbfeb706f47d85785f653005b97b1, \< fcf4692fa39e86a590c14a4af2de704e1d20a3b5
- Anyone running Linux 6.7

## Description

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

mptcp: prevent BPF accessing lowat from a subflow socket.

Alexei reported the following splat:

 WARNING: CPU: 32 PID: 3276 at net/mptcp/subflow.c:1430 subflow\_data\_ready+0x147/0x1c0
 Modules linked in: dummy bpf\_testmod(O) \[last unloaded: bpf\_test\_no\_cfi(O)\]
 CPU: 32 PID: 3276 Comm: test\_progs Tainted: GO       6.8.0-12873-g2c43c33bfd23
 Call Trace:
  \<TASK\>
  mptcp\_set\_rcvlowat+0x79/0x1d0
  sk\_setsockopt+0x6c0/0x1540
  \_\_bpf\_setsockopt+0x6f/0x90
  bpf\_sock\_ops\_setsockopt+0x3c/0x90
  bpf\_prog\_509ce5db2c7f9981\_bpf\_test\_sockopt\_int+0xb4/0x11b
  bpf\_prog\_dce07e362d941d2b\_bpf\_test\_socket\_sockopt+0x12b/0x132
  bpf\_prog\_348c9b5faaf10092\_skops\_sockopt+0x954/0xe86
  \_\_cgroup\_bpf\_run\_filter\_sock\_ops+0xbc/0x250
  tcp\_connect+0x879/0x1160
  tcp\_v6\_connect+0x50c/0x870
  mptcp\_connect+0x129/0x280
  \_\_inet\_stream\_connect+0xce/0x370
  inet\_stream\_connect+0x36/0x50
  bpf\_trampoline\_6442491565+0x49/0xef
  inet\_stream\_connect+0x5/0x50
  \_\_sys\_connect+0x63/0x90
  \_\_x64\_sys\_connect+0x14/0x20

The root cause of the issue is that bpf allows accessing mptcp-level
proto\_ops from a tcp subflow scope.

Fix the issue detecting the problematic call and preventing any action.

## Affected and fixed versions

- Linux: \>= 124a4885b55f3039c697feb53edc5ad88bf21161, \< ee3c845787b621cfe82c2e52c513024a9d7a78f5; \>= 5684ab1a0effbfeb706f47d85785f653005b97b1, \< 3ffb1ab698376f09cc33101c07c1be229389fe29; \>= 5684ab1a0effbfeb706f47d85785f653005b97b1, \< fcf4692fa39e86a590c14a4af2de704e1d20a3b5 (cvelist)
- Linux: 6.7 (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-2024-35894. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35894.md
Affected: Linux >= 124a4885b55f3039c697feb53edc5ad88bf21161, < ee3c845787b621cfe82c2e52c513024a9d7a78f5; >= 5684ab1a0effbfeb706f47d85785f653005b97b1, < 3ffb1ab698376f09cc33101c07c1be229389fe29; >= 5684ab1a0effbfeb706f47d85785f653005b97b1, < fcf4692fa39e86a590c14a4af2de704e1d20a3b5; Linux 6.7
Fixed in: Linux 3ffb1ab698376f09cc33101c07c1be229389fe29

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

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

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

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

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

Linux \>= 124a4885b55f3039c697feb53edc5ad88bf21161, \< ee3c845787b621cfe82c2e52c513024a9d7a78f5; \>= 5684ab1a0effbfeb706f47d85785f653005b97b1, \< 3ffb1ab698376f09cc33101c07c1be229389fe29; \>= 5684ab1a0effbfeb706f47d85785f653005b97b1, \< fcf4692fa39e86a590c14a4af2de704e1d20a3b5; Linux 6.7.

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

Yes. Fixed in Linux 3ffb1ab698376f09cc33101c07c1be229389fe29. No fix listed yet: follow the vendor advisory.

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

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/ee3c845787b621cfe82c2e52c513024a9d7a78f5>
- patch: <https://git.kernel.org/stable/c/3ffb1ab698376f09cc33101c07c1be229389fe29>
- patch: <https://git.kernel.org/stable/c/fcf4692fa39e86a590c14a4af2de704e1d20a3b5>
- other: <https://security.netapp.com/advisory/ntap-20250321-0002/>

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

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