Re: [PATCH] accel/rocket: fix UAF of rocket_file_priv in rocket_gem_bo_free()
From: Sidong Yang
Date: Sun Nov 29 2026 - 01:05:34 EST
Hi Bilal,
On Sat, Nov 28, 2026 at 10:03:53PM +0800, Bilal Hashim wrote:
> Move `mm` and `mm_lock` from `struct rocket_file_priv` into the
> already-refcounted `struct rocket_iommu_domain` (which is held by every
> `rocket_gem_object` until `rocket_gem_bo_free()` finishes unmapping and
> removing the node), drop `bo->driver_priv`, and release `rkt_obj->domain`
> on the `rocket_ioctl_create_bo()` error path.
Both issues have already been fixed in drm-misc-fixes:
- commit c3fe8795ecd8 ("accel/rocket: Fix drm_mm UAF on close vs in-flight job")
https://patch.msgid.link/20261101073700.1261966-1-gye976@xxxxxxxxx
- commit 90035d3f26e0 ("accel/rocket: put IOMMU domain on BO creation failure")
https://patch.msgid.link/20260708114354.753817-1-lgs201920130244@xxxxxxxxx
Thanks,
Sidong