]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/vmwgfx: Fix Use-after-free in validation
authorIan Forbes <ian.forbes@broadcom.com>
Fri, 26 Sep 2025 19:54:25 +0000 (14:54 -0500)
committerZack Rusin <zack.rusin@broadcom.com>
Mon, 6 Oct 2025 15:57:38 +0000 (11:57 -0400)
commitdfe1323ab3c8a4dd5625ebfdba44dc47df84512a
tree0db0bf017dbdccd24b094d691ce280030c33c7eb
parent5ac2c0279053a2c5265d46903432fb26ae2d0da2
drm/vmwgfx: Fix Use-after-free in validation

Nodes stored in the validation duplicates hashtable come from an arena
allocator that is cleared at the end of vmw_execbuf_process. All nodes
are expected to be cleared in vmw_validation_drop_ht but this node escaped
because its resource was destroyed prematurely.

Fixes: 64ad2abfe9a6 ("drm/vmwgfx: Adapt validation code for reference-free lookups")
Reported-by: Kuzey Arda Bulut <kuzeyardabulut@gmail.com>
Signed-off-by: Ian Forbes <ian.forbes@broadcom.com>
Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/r/20250926195427.1405237-1-ian.forbes@broadcom.com
drivers/gpu/drm/vmwgfx/vmwgfx_validation.c