mptcp: pm: kernel: use RCU to free endpoint listeners
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c457824f76e95e10356c35c61ffc9d79b8c54228, Kernel 2004c8fdb1b588188f6a17398782da4551f22be5, Kernel 49b09ae0bf57b4230187d4cdd0a370558e44a6e8 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: mptcp: pm: kernel: use RCU to free endpoint listeners mptcp_pm_nl_create_listen_socket() starts the TCP listener directly instead of going through mptcp_listen(). It consequently misses setting SOCK_RCU_FREE on the parent MPTCP socket. tcp_child_process() can invoke the listener's subflow_data_ready() callback without holding the MPTCP parent lock or a reference to the parent. An authenticated MP_JOIN racing with endpoint teardown can therefore access the parent after its last reference has been dropped. The ADD_ADDR error path can also close an already published listener. Set SOCK_RCU_FREE before __inet_listen_sk() publishes the TCP listener, matching mptcp_listen(). This protects the parent on every subsequent close path, including a failed endpoint addition.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1729cf186d8a5d70cf7a54e07c4763635079f015 <c457824f76e95e10356c35c61ffc9d79b8c54228, >=1729cf186d8a5d70cf7a54e07c4763635079f015 <2004c8fdb1b588188f6a17398782da4551f22be5, >=1729cf186d8a5d70cf7a54e07c4763635079f015 <49b09ae0bf57b4230187d4cdd0a370558e44a6e8, >=1729cf186d8a5d70cf7a54e07c4763635079f015 <78856ded7ec7995e8a05cdc9d08df4c5a62479aa, =5.12 | c457824f76e95e10356c35c61ffc9d79b8c54228, 2004c8fdb1b588188f6a17398782da4551f22be5, 49b09ae0bf57b4230187d4cdd0a370558e44a6e8, 78856ded7ec7995e8a05cdc9d08df4c5a62479aa |
| linux-kernel: Kernel | >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=5.12.0 <6.12.118 | 6.18.64, 7.3.5, 6.12.118 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket