CVE-2021-47593

mptcp: clear 'kern' flag from fallback sockets

published June 19, 2024

CVSS
—
EPSS
0%
Percentile
15.0
In the wild
Unconfirmed
What it is

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

mptcp: clear 'kern' flag from fallback sockets

The mptcp ULP extension relies on sk->sk_sock_kern being set correctly:

It prevents setsockopt(fd, IPPROTO_TCP, TCP_ULP, "mptcp", 6); from

working for plain tcp sockets (any userspace-exposed socket).

But in case of fallback, accept() can return a plain tcp sk.

In such case, sk is still tagged as 'kernel' and setsockopt will work.

This will crash the kernel, The subflow extension has a NULL ctx->conn

mptcp socket:

BUG: KASAN: null-ptr-deref in subflow_data_ready+0x181/0x2b0

Call Trace:

tcp_data_ready+0xf8/0x370

[..]

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00246 · 15.0th percentile
Published
2024-06-19T14:53Z
EPSS history
Timeline
  • 19 JUN 14:53Z
    mptcp: clear 'kern' flag from fallback sockets
    cvelistv5