* [PATCH 1/1] io_uring/zcrx: fix user_struct uaf
@ 2026-04-21 8:47 Pavel Begunkov
2026-04-21 13:58 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Begunkov @ 2026-04-21 8:47 UTC (permalink / raw)
To: io-uring; +Cc: asml.silence, axboe, netdev
io_free_rbuf_ring() usees a struct user_struct, which
io_zcrx_ifq_free() puts it down before destroying the ring.
Cc: stable@vger.kernel.org
Fixes: 5c686456a4e83 ("io_uring/zcrx: add user_struct and mm_struct to io_zcrx_ifq")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
io_uring/zcrx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index 9a83d7eb4210..fab3693ecb0d 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -579,13 +579,13 @@ static void io_zcrx_ifq_free(struct io_zcrx_ifq *ifq)
if (ifq->area)
io_zcrx_free_area(ifq, ifq->area);
- free_uid(ifq->user);
if (ifq->mm_account)
mmdrop(ifq->mm_account);
if (ifq->dev)
put_device(ifq->dev);
io_free_rbuf_ring(ifq);
+ free_uid(ifq->user);
mutex_destroy(&ifq->pp_lock);
kfree(ifq);
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] io_uring/zcrx: fix user_struct uaf
2026-04-21 8:47 [PATCH 1/1] io_uring/zcrx: fix user_struct uaf Pavel Begunkov
@ 2026-04-21 13:58 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2026-04-21 13:58 UTC (permalink / raw)
To: io-uring, Pavel Begunkov; +Cc: netdev
On Tue, 21 Apr 2026 09:47:04 +0100, Pavel Begunkov wrote:
> io_free_rbuf_ring() usees a struct user_struct, which
> io_zcrx_ifq_free() puts it down before destroying the ring.
Applied, thanks!
[1/1] io_uring/zcrx: fix user_struct uaf
commit: 17a2407de81bf3ef450fddb89230ac10141be110
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-21 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-21 8:47 [PATCH 1/1] io_uring/zcrx: fix user_struct uaf Pavel Begunkov
2026-04-21 13:58 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox