mptcp: Use __sk_dst_get() and dst_dev_rcu() in mptcp_active_enable().
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.556.17.36.18In the Linux kernel, the following vulnerability has been resolved:
mptcp: Use __sk_dst_get() and dst_dev_rcu() in mptcp_active_enable().
mptcp_active_enable() is called from subflow_finish_connect(), which is icsk->icsk_af_ops->sk_rx_dst_set() and it's not always under RCU.
Using sk_dst_get(sk)->dev could trigger UAF.
Let's use __sk_dst_get() and dst_dev_rcu().
From the CVE record · Linux
The Linux kernel's mptcp_active_enable() can access a destination device without RCU protection, potentially triggering a use-after-free. The input does not establish how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with MPTCP should check their versions; affected versions are not specified.