]> www.infradead.org Git - users/dwmw2/linux.git/commit
vsock/test: Add test for UAF due to socket unbinding
authorMichal Luczaj <mhal@rbox.co>
Tue, 28 Jan 2025 13:15:31 +0000 (14:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Jan 2025 02:50:37 +0000 (18:50 -0800)
commit301a62dfb0d0dff79460ed3a54e1f8dbd8db52e9
treec0868ef61b70ad997c755265555489cb0616d8a2
parentac12b7e2912d60fceefaacc78ee8b5aec8b51c04
vsock/test: Add test for UAF due to socket unbinding

Fail the autobind, then trigger a transport reassign. Socket might get
unbound from unbound_sockets, which then leads to a reference count
underflow.

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://patch.msgid.link/20250128-vsock-transport-vs-autobind-v3-5-1cf57065b770@rbox.co
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/vsock/vsock_test.c