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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-19T08:34:49.504Z
- Modified: 2026-08-05T11:30:46.642Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 124a4885b55f3039c697feb53edc5ad88bf21161 before ee3c845787b621cfe82c2e52c513024a9d7a78f5; from 5684ab1a0effbfeb706f47d85785f653005b97b1 before 3ffb1ab698376f09cc33101c07c1be229389fe29; from 5684ab1a0effbfeb706f47d85785f653005b97b1 before fcf4692fa39e86a590c14a4af2de704e1d20a3b5; 6.7 (not affected: before 6.7; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.7 before 6.8.5; 6.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/ee3c845787b621cfe82c2e52c513024a9d7a78f5> (patch)
- <https://git.kernel.org/stable/c/3ffb1ab698376f09cc33101c07c1be229389fe29> (patch)
- <https://git.kernel.org/stable/c/fcf4692fa39e86a590c14a4af2de704e1d20a3b5> (patch)
- <https://security.netapp.com/advisory/ntap-20250321-0002/>

## Sources

- CVE List: [CVE-2024-35894](https://www.cve.org/CVERecord?id=CVE-2024-35894), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35894](https://nvd.nist.gov/vuln/detail/CVE-2024-35894), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35894 · Whole record: https://cve.day/CVE-2024-35894.json · Rebuilt by cve.day 2026-11-25T22:58:40.588Z
