mptcp: fix uninitialized local_id in syncookie MP_JOIN reconstruction
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel bf19d166337c6488b39cb03eeeffb30a941d6326, Kernel 4534e0eead692bb069ad1e6a5a245fc2e2078300, Kernel 51887ccd88791ddaa8755a7c614fda031ecf7982 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: mptcp: fix uninitialized local_id in syncookie MP_JOIN reconstruction mptcp_token_join_cookie_init_state() restores remote_nonce, local_nonce, backup, join_id, token and msk from the saved cookie entry when rebuilding the request socket for a MP_JOIN 4th-ACK handled under SYN cookies, but it does not restore local_id, even though the SYN path saved it. subflow_ulp_clone() then reads that uninitialized field and stores it as the joined subflow's address-ID. Because the request-sock slab is SLAB_TYPESAFE_BY_RCU and not zeroed on allocation, the value is the stale byte of a previously freed request socket, which an off-path peer can influence by sending concurrent MP_JOIN SYNs. This corrupts the path manager's id-based subflow bookkeeping for the connection. Restore subflow_req->local_id from the cookie entry, as done for the other fields.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <bf19d166337c6488b39cb03eeeffb30a941d6326, >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <4534e0eead692bb069ad1e6a5a245fc2e2078300, >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <51887ccd88791ddaa8755a7c614fda031ecf7982, >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <63cacb05e51a1c6e1349d2e593d00fd6ef43def4, >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <64f2c5dd49b956a542c8c02b8dad5d262a462bba, >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <954b5ea836eb118d188975ced803448537ab8479, >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <9df36a4846375a9b75bf42d77bfed216b0f366f9, >=9466a1ccebbe54ac57fb8a89c2b4b854826546a8 <b878dfdd12d7a5b8722a78d35e313506140ca3d9, =5.9 | bf19d166337c6488b39cb03eeeffb30a941d6326, 4534e0eead692bb069ad1e6a5a245fc2e2078300, 51887ccd88791ddaa8755a7c614fda031ecf7982, 63cacb05e51a1c6e1349d2e593d00fd6ef43def4, 64f2c5dd49b956a542c8c02b8dad5d262a462bba, 954b5ea836eb118d188975ced803448537ab8479, 9df36a4846375a9b75bf42d77bfed216b0f366f9, b878dfdd12d7a5b8722a78d35e313506140ca3d9 |
| linux-kernel: Kernel | >=5.16.0 <6.1.188, >=5.9.0 <5.10.270, >=6.13.0 <6.18.50, >=6.19.0 <7.2.4, >=6.2.0 <6.6.157, >=6.7.0 <6.12.109, >=5.11.0 <5.15.221 | 6.1.188, 5.10.270, 6.18.50, 7.2.4, 6.6.157, 6.12.109, 5.15.221 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket