{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-138861",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.899Z",
        "datePublished": "2026-11-30T13:25:40.247Z",
        "dateUpdated": "2026-11-30T13:25:40.247Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:25:40.247Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxen/gntdev: prevent private mappings from becoming writable\n\ngntdev_mmap() rejects writable private (non-shared) mappings of foreign\ngrant pages, because a private writable mapping takes the COW path on\npages that have no proper struct-page backing.  However, VM_MAYWRITE is\nleft set, so userspace can map the grant read-only and then upgrade the\nmapping to writable with mprotect(), hitting the same COW path the\ncheck was written to prevent.\n\nClear VM_MAYWRITE for private mappings, as i915 does for its read-only\nobjects and as fixed in drm/vc4 (CVE-2026-68445) and drm/panthor\n(CVE-2024-53071) and ptp: vmclock (commit\na5edadbae57e2298a56cf7a4e774a027905a331f)."
                }
            ],
            "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": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "a327701804bb7d806da6764f7662f5290c4a929e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "7ff2ed2ffde048b17697cf5fa019aa1409a293c1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "4f6a4856d5cbf42610cca5d7ac24a7768591bfe1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "021d9c95a79b55cd21ae085a8e919b251a329b3d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "a0e83ac1d99e923a01a00fbe6cd000ee9646e62d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "f4a35345d97e9007028693ee32058c956dc3b09f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ab31523c2fcac557226bac72cbdf5fafe01f9a26",
                            "lessThan": "2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "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": "2.6.38",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.38",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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": "2.6.38",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.38",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.38",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.38",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.38",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.38",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.38",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.38",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a327701804bb7d806da6764f7662f5290c4a929e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7ff2ed2ffde048b17697cf5fa019aa1409a293c1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4f6a4856d5cbf42610cca5d7ac24a7768591bfe1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/021d9c95a79b55cd21ae085a8e919b251a329b3d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a0e83ac1d99e923a01a00fbe6cd000ee9646e62d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f4a35345d97e9007028693ee32058c956dc3b09f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a"
                }
            ],
            "title": "xen/gntdev: prevent private mappings from becoming writable",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}