PT-2026-162635

CVE-2026-100053

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

Pontuação
N/A
Não disponível

Não há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.

In the Linux kernel, the following vulnerability has been resolved:
ublk: let STOP DEV cancel the server's commands before its release
STOP DEV cancels the fetched commands after dropping ub->mutex, so START DEV and FETCH can run in between:
STOP DEV START DEV / FETCH lock ub->mutex ublk stop dev unlocked() (not started: does nothing) unlock ub->mutex START DEV goes live, schedules scan FETCH publishes a new command cancel work sync(scan) cancels the new disk's scan ublk cancel dev() takes the new command: NULL io->cmd on a queue which isn't canceling
A START DEV after STOP DEV also goes live over the canceled commands.
Hold a reference on the server's /dev/ublkcN while canceling:
STOP DEV lock ub->mutex ublk stop dev unlocked() cancel work sync(scan) server attached: take a reference on its file, set STOPPING unlock ub->mutex ublk cancel dev() drop the reference
  • STOPPING makes FETCH and PREP get UBLK IO RES ABORT and START DEV -EBUSY; a START DEV or END USER RECOVERY waiting for the device to get ready wakes up too; the reset in the server's release clears it
  • the release can't run before the reference is dropped, so no new server can attach, and the cancel only meets this server's commands
  • the cancel still runs after the unlock: io uring cmd done() may take uring lock, under which FETCH takes ub->mutex
ublk ch open() saves the file in ->ch file and ublk ch release() clears it, under cancel mutex. The release runs after the last reference is gone, so take ours with file ref get(). Drop it with fput sync(): if it is the last one, fput() would defer the release to this task, which DEL DEV then makes wait for the device to be freed.
A server which opened the device but hasn't fetched is stopped too. Document what a server sees after STOP DEV in ublk.rst.
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾