{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143092",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.348Z",
        "datePublished": "2026-12-03T09:19:14.121Z",
        "dateUpdated": "2026-12-03T09:19:14.121Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:19:14.121Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxen/gntdev: fix deadlock between map ioctl and mmap\n\nCommit 45ca1afe2fd1 (\"xen/gntdev: fix error handling in ioctl\") moved\ncopy_to_user() in gntdev_ioctl_map_grant_ref() under priv->lock. A\nfault in copy_to_user() takes mmap_lock, while gntdev_mmap() is called\nwith mmap_lock held and takes priv->lock:\n\n  ioctl thread                        mmap thread\n  mutex_lock(&priv->lock)\n                                      mmap_write_lock(mm)\n                                      gntdev_mmap()\n                                        mutex_lock(&priv->lock)\n  copy_to_user() faults\n    mmap_read_lock(mm)\n\nReproduced on Debian 6.12.111 in a Xen guest, with the ioctl argument\non a MAP_PRIVATE file page that has not been written yet. sysrq-w:\n\n  task:repro state:D stack:0 pid:4479 tgid:4477 ppid:1 flags:0x00000000\n   rwsem_down_read_slowpath+0x25c/0x480\n   down_read_killable+0x48/0xc0\n   lock_mm_and_find_vma+0x96/0x250\n   do_user_addr_fault+0x12d/0x620\n   exc_page_fault+0x7e/0x180\n   asm_exc_page_fault+0x26/0x30\n   _copy_to_user+0x36/0x50\n   gntdev_ioctl+0x3b9/0xa00 [xen_gntdev]\n   __x64_sys_ioctl+0x97/0xc0\n  task:repro state:D stack:0 pid:4480 tgid:4477 ppid:1 flags:0x00000000\n   __mutex_lock.constprop.0+0x41b/0x720\n   gntdev_mmap+0x4d/0x330 [xen_gntdev]\n   __mmap_region+0x697/0xb10\n   mmap_region+0x78/0xa0\n   do_mmap+0x45d/0x630\n   vm_mmap_pgoff+0xf8/0x1c0\n\nDrop priv->lock before copy_to_user() again. On failure, re-take it\nand remove the map by index, as IOCTL_GNTDEV_UNMAP_GRANT_REF does,\nsince another thread may have unmapped it meanwhile."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/xen/gntdev.c"
                    ],
                    "versions": [
                        {
                            "version": "52dc40ef0cfee6ae89b7524967e73f0ba37906d7",
                            "lessThan": "4a872dabc1ee3a4d1085ecad2c42211b3ebcf88a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1dd9cb98fe228e017fff9efb33862ff38c741b65",
                            "lessThan": "813fe8ddcb0847db3dde8b8821550235418df272",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "18a693733f7ad004e1ab0466693121ca70cd95dd",
                            "lessThan": "df42e7afdb02f2adea17a6e2732502481bda73f5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454",
                            "lessThan": "59b664d7553390a0ca5b7d78cfdb89086eec4933",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "45ca1afe2fd14c04e37227e79d3f8455831d8408",
                            "lessThan": "7b73a22b4a3055f96877c609d253711de32e106a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "45ca1afe2fd14c04e37227e79d3f8455831d8408",
                            "lessThan": "7620a997e4854c94eacebf0c2d453fbd78ccdb46",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6df926130aee6cab9b5d2e5b7862e49ccac348dc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "311011f8cc206c5af2877b03e3f627ee1b8fe024",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6883269a323609f68f6faa903f8f8ff3d191cec8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.10.261",
                            "lessThan": "5.10.276",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.212",
                            "lessThan": "5.15.227",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.97",
                            "lessThan": "6.12.120",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.40",
                            "lessThan": "6.18.66",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.178",
                            "lessThan": "6.2",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.145",
                            "lessThan": "6.7",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1.5",
                            "lessThan": "7.2",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/xen/gntdev.c"
                    ],
                    "versions": [
                        {
                            "version": "7.2",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.2",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.276",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.227",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10.261",
                                    "versionEndExcluding": "5.10.276"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15.212",
                                    "versionEndExcluding": "5.15.227"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12.97",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.18.40",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.2",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.2",
                                    "versionEndExcluding": "7.4-rc3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.178"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.145"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.1.5"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/4a872dabc1ee3a4d1085ecad2c42211b3ebcf88a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/813fe8ddcb0847db3dde8b8821550235418df272"
                },
                {
                    "url": "https://git.kernel.org/stable/c/df42e7afdb02f2adea17a6e2732502481bda73f5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/59b664d7553390a0ca5b7d78cfdb89086eec4933"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7b73a22b4a3055f96877c609d253711de32e106a"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7620a997e4854c94eacebf0c2d453fbd78ccdb46"
                }
            ],
            "title": "xen/gntdev: fix deadlock between map ioctl and mmap",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}