Re: [PATCH] Drivers: hv: vmbus: Use after free in __vmbus_open()

From
Wei Liu <wei.liu@kernel.org>
Date
2021-04-16 10:37:31
Also in
kernel-janitors, lkml
Reply to
Andrea Parri, 2021-04-13
On Tue, Apr 13, 2021 at 05:42:21PM +0200, Andrea Parri wrote:
On Tue, Apr 13, 2021 at 01:50:04PM +0300, Dan Carpenter wrote:
quoted
The "open_info" variable is added to the &vmbus_connection.chn_msg_list,
but the error handling frees "open_info" without removing it from the
list.  This will result in a use after free.  First remove it from the
list, and then free it.

Fixes: 6f3d791f3006 ("Drivers: hv: vmbus: Fix rescind handling issues")
Signed-off-by: Dan Carpenter <redacted>
I had this 'queued' in my list,

Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Applied. Thanks.
Thread (4 messages) 4 messages, 3 authors, last reply 2021-04-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help