-
Notifications
You must be signed in to change notification settings - Fork 336
A memory leak vulnerability in mptcp #475
Comments
Hi @eackkk, Thank you for the bug report.
I'm not sure to understand your comment: if Can you easily reproduce this issue? Are you sure the MPTCP connection linked to the subflow that was closed was also closed when kmemleak emitted its report? I wonder if kmemleak is not confused here: we are in a situation where the initial subflow is being closed while the MPTCP connection is still alive. Some memory is reserved: not in the subflow data but in the MPTCP connection data. Maybe kmemleak thinks it is attached to the subflow level and not to the MPTCP level? |
Hi @matttbe, Thanks for your prompt reply. Yes, I made a small mistake, I posted the wrong code, you can see the backtrace in report.txt, the vulnerability is in flow_info is not released, which eventually leads to a memory leak. Apologize again for my mistake. |
Which version are you using? Here is what we can see on Lines 1515 to 1521 in 08c571d
Are you sure it is not released when all MPTCP connections are closed? |
I cannot find this code in mptcp_ctrl.c in v0.94.7 version: https://github.com/multipath-tcp/mptcp/blob/v0.94.7/net/mptcp/mptcp_ctrl.c |
Hi, I found a memory leak in mptcp that causes a kernel panic, my test version is v0.94 and the kernel architecture is aarch64.
See the attachment for report.txt. The details of the vulnerability are as follows:
If you have any questions, please contact me, best wishes!
The text was updated successfully, but these errors were encountered: