PT-2026-166947
CVE-2026-143092
·
Publicado
2026-12-03
·
Atualizado
2026-12-03
Descrição por
Pontuação
N/A
Não disponívelNã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:
xen/gntdev: fix deadlock between map ioctl and mmap
Commit 45ca1afe2fd1 ("xen/gntdev: fix error handling in ioctl") moved
copy to user() in gntdev ioctl map grant ref() under priv->lock. A
fault in copy to user() takes mmap lock, while gntdev mmap() is called
with mmap lock held and takes priv->lock:
ioctl thread mmap thread
mutex lock(&priv->lock)
mmap write lock(mm)
gntdev mmap()
mutex lock(&priv->lock)
copy to user() faults
mmap read lock(mm)
Reproduced on Debian 6.12.111 in a Xen guest, with the ioctl argument
on a MAP PRIVATE file page that has not been written yet. sysrq-w:
task:repro state:D stack:0 pid:4479 tgid:4477 ppid:1 flags:0x00000000
rwsem down read slowpath+0x25c/0x480
down read killable+0x48/0xc0
lock mm and find vma+0x96/0x250
do user addr fault+0x12d/0x620
exc page fault+0x7e/0x180
asm exc page fault+0x26/0x30
copy to user+0x36/0x50
gntdev ioctl+0x3b9/0xa00 [xen gntdev]
x64 sys ioctl+0x97/0xc0
task:repro state:D stack:0 pid:4480 tgid:4477 ppid:1 flags:0x00000000
mutex lock.constprop.0+0x41b/0x720
gntdev mmap+0x4d/0x330 [xen gntdev]
mmap region+0x697/0xb10
mmap region+0x78/0xa0
do mmap+0x45d/0x630
vm mmap pgoff+0xf8/0x1c0
Drop priv->lock before copy to user() again. On failure, re-take it
and remove the map by index, as IOCTL GNTDEV UNMAP GRANT REF does,
since another thread may have unmapped it meanwhile.
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾