mptcp: pm: avoid possible UaF when selecting endp
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 01cacb00b35cb62b139f07d5f84bcf0eeda8eff6 · < 48e50dcbcbaaf713d82bf2da5c16aeced94ad07d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mptcp: pm: avoid possible UaF when selecting endp
select_local_address() and select_signal_address() both select an endpoint entry from the list inside an RCU protected section, but return a reference to it, to be read later on. If the entry is dereferenced after the RCU unlock, reading info could cause a Use-after-Free.
A simple solution is to copy the required info while inside the RCU protected section to avoid any risk of UaF later. The address ID might need to be modified later to handle the ID0 case later, so a copy seems OK to deal with.
From the CVE record · Linux
The Linux kernel's MPTCP path manager can return an endpoint reference selected under RCU protection and read it after that protection ends, potentially causing a use-after-free. This can occur if the endpoint entry is dereferenced after the RCU unlock; the input does not specify attacker access, authentication requirements, user interaction, or a resulting exploit impact.
Engineers running the Linux kernel should check whether their kernel includes the affected MPTCP path-manager code; affected versions were not provided.