В ядре Linux устранена следующая уязвимость: ksmbd: revert fsids on durable reconnect and replay failure На durable handle reconnect или replay запроса smb2_open() переключается на fsids пользователя SMB перед вызовом ksmbd_vfs_getattr(). Если вызов не удался, код переходит в err_out2 и пропускает ksmbd_revert_fsids() в err_out1. Затем учетные данные пользователя остаются установленными на общем рабочем столе ksmbd.
Более поздняя работа над этим рабочим, включая запросы других пользователей, работает с fsuid, fsgid и дополнительными группами первого пользователя. ksmbd_free_work_struct() также предупреждает, потому что work->saved_cred все еще установлен. Вместо этого перейдите к err_out1. На данный момент путь не удерживается, поэтому пропуск path_put() в err_out является правильным.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ksmbd: revert fsids on durable reconnect and replay failure On a durable handle reconnect or a request replay, smb2_open() switches to the SMB user's fsids before calling ksmbd_vfs_getattr(). If that call fails, the code jumps to err_out2 and skips ksmbd_revert_fsids() at err_out1. The user's credentials then stay installed on the shared ksmbd worker. Later work on that worker, including other users' requests, runs with the first user's fsuid, fsgid and supplementary groups. ksmbd_free_work_struct() also warns, because work->saved_cred is still set. Jump to err_out1 instead. No path is held at this point, so skipping the path_put() at err_out is correct.