CVE-2026-143092

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143093In the Linux kernel, the following vulnerability has been resolved: x86/mm: Ensure write visibility during LDT installation During LDT insCVE-2026-143094In the Linux kernel, the following vulnerability has been resolved: spi: tegra210-quad: Unmap DMA buffers on transfer timeout tegra_qspi_sCVE-2026-143095In the Linux kernel, the following vulnerability has been resolved: spi: tegra210-quad: Track DMA mapping state tegra_qspi_dma_unmap_xfer(CVE-2026-143096In the Linux kernel, the following vulnerability has been resolved: spi: axi-spi-engine: Start the program length at zero spi_engine_optimCVE-2026-143097In the Linux kernel, the following vulnerability has been resolved: tpm: flush timeout work outside buffer_mutex to avoid deadlock tpm_comCVE-2026-143098In the Linux kernel, the following vulnerability has been resolved: tpm: eventlog: check the payload size before reading tag events The EVCVE-2026-143099In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Fix TCP-with-TLS transport class identification xs_setup_tcp_tCVE-2026-14315.3The Booking Calendar plugin for WordPress is vulnerable to unauthorized access of data due to a missing capability check on the wpbc_ajax_WPCVE-2026-143105.4The Tutor LMS WordPress plugin before 4.0.0 does not properly verify that a user has access to the course a Q&A thread belongs to before reCVE-2026-143100In the Linux kernel, the following vulnerability has been resolved: software node: only let the owner release a managed node device_createCVE-2026-143101In the Linux kernel, the following vulnerability has been resolved: arm64: suspend: Save GCS state over suspend GCSCRE0_EL1 and GCSPR_EL0 CVE-2026-143102In the Linux kernel, the following vulnerability has been resolved: arm64: kexec_file: Do not use CMA for images with a non-zero text_offse
CVE-2026-143092: Unscored | Vulnix