В ядре Linux была устранена следующая уязвимость: NFSD: Prevent клиент use-after-free во время отзыва состояния экспорта nfsd4_revoke_export_states() имеет тот же use-after-free, что и nfsd4_revoke_states(): он падает nn->client_lock через revoke_one_stid() и следующее чтение clp->cl_minorversion, но ссылка на состояние, которую он держит, не привязывает клиента. Разборка, ведущая к удаленному блоку, может освободить клиента, в то время как revoke_one_stid() все еще лишает его ссылок. exportfs -u продвигает этот путь через NFSD_CMD_UNLOCK_EXPORT, поэтому администратор, удаляющий экспорт, может прогонять истечение срока действия клиента. Пропустите клиента, который уже истекает, и в противном случае прикрепите его к cl_rpc_users под client_lock, прежде чем сбрасывать замок, соответствующий nfsd4_revoke_states ().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: NFSD: Prevent client use-after-free during export state revocation nfsd4_revoke_export_states() has the same use-after-free as nfsd4_revoke_states(): it drops nn->client_lock across revoke_one_stid() and the following read of clp->cl_minorversion, but the stateid reference it holds does not pin the client. A teardown racing the dropped lock can free the client while revoke_one_stid() still dereferences it. exportfs -u drives this path through NFSD_CMD_UNLOCK_EXPORT, so an administrator removing an export can race a client expiry. Skip a client that is already expiring and otherwise pin it with cl_rpc_users under client_lock before dropping the lock, matching nfsd4_revoke_states().
Характеристики атаки
Последствия
Строка CVSS v3.1