--- y/fs/io_uring.c
+++ x/fs/io_uring.c
@@ -6046,6 +6046,7 @@ static int io_close(struct io_kiocb *req
 
 	/* No ->flush() or already async, safely close from here */
 	ret = filp_close(file, current->files);
+	file = NULL;
 err:
 	if (ret < 0)
 		req_set_fail(req);