Deadlock between ioctl and mmap in Linux kernel gntdev driver
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel xen gntdev driver holds a lock while copying data to user memory in the map ioctl, which can deadlock against mmap. A page fault during that copy takes the mmap lock, while mmap takes the same driver lock, so the two threads block each other. Affected Linux kernel versions include from 5.10.261 before 5.10.276, from 5.15.212 before 5.15.227, and from 6.12.97 before 6.12.120.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.10.261 to before 5.10.276; 5.15.212 to before 5.15.227; 6.12.97 to before 6.12.120; 6.18.40 to before 6.18.66; 6.1.178 to before 6.2; 6.6.145 to before 6.7; 7.1.5 to before 7.2 | 5.10.276, 5.15.227, 6.12.120, 6.18.66, 6.2, 6.7, 7.2 | Patch available | CNA |
| Linux | Linux | 7.2 and later | 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc3 | Patch available | CNA |
- Linux VendorLinux Affected 5.10.261 to before 5.10.276; 5.15.212 to before 5.15.227; 6.12.97 to before 6.12.120; 6.18.40 to before 6.18.66; 6.1.178 to before 6.2; 6.6.145 to before 6.7; 7.1.5 to before 7.2 Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 6.2, 6.7, 7.2 Patch available CNA
- Linux VendorLinux Affected 7.2 and later Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc3 Patch available CNA
Remediation
Upgrade the Linux kernel to a fixed version: 5.10.276, 5.15.227, 6.12.120, 6.18.66, 6.2, 6.7, 7.2, 7.3.7 or 7.4-rc3, depending on your branch.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA Linux (Linux) Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 6.2, 6.7, 7.2
- Fix · CNA Linux (Linux) Fixed in 5.10.276, 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc3
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-12-03 Threatist record created from CVE-2026-143092
- 2026-12-03 Alias added: GHSA-ghrg-qq23-3ghj
- 2026-12-03 Affected versions changed · Red Hat
- 2026-12-03 CVSS score added · Red Hat
References
Other 6
- https://git.kernel.org/stable/c/4a872dabc1ee3a4d1085ecad2c42211b3ebcf88a
- https://git.kernel.org/stable/c/813fe8ddcb0847db3dde8b8821550235418df272
- https://git.kernel.org/stable/c/df42e7afdb02f2adea17a6e2732502481bda73f5
- https://git.kernel.org/stable/c/59b664d7553390a0ca5b7d78cfdb89086eec4933
- https://git.kernel.org/stable/c/7b73a22b4a3055f96877c609d253711de32e106a
- https://git.kernel.org/stable/c/7620a997e4854c94eacebf0c2d453fbd78ccdb46
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-143092 · CVE Program
- CVE-2026-143092 · NVD
- FIRST EPSS
- GHSA-ghrg-qq23-3ghj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-143092 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences