{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-138867",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.900Z",
        "datePublished": "2026-11-30T13:25:43.709Z",
        "dateUpdated": "2026-11-30T13:25:43.709Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:25:43.709Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memory: constrain generic_access_phys() to page boundary\n\nThis patch addresses an issue in generic_access_phys() where accessing\nmemory across page boundaries in PFNMAP VMAs assumes physical pages are\ncontiguous, which can lead to accessing unintended physical memory or\nexceeding VMA boundaries.\n\ngeneric_access_phys() improperly validates the memory access range: it\nonly validates the start address using follow_pfnmap_start() and passes\nPAGE_ALIGN(len + offset) to ioremap_prot().\n\nThis poses two problems:\n1. In PFNMAP VMAs, consecutive virtual pages are not guaranteed to be\n   physically contiguous, and individual PTEs may have different access\n   permissions or writability.\n2. The mapping may cross VMA boundaries if len extends beyond vma->vm_end.\n\nConstrain the access in generic_access_phys() to at most the current page\nboundary (PAGE_SIZE - offset) and map only a single PAGE_SIZE via\nioremap_prot().  Since the caller __access_remote_vm() already loops over\nthe requested length and handles partial transfers, it will naturally\niterate over the remaining pages.\n\nAlso add a missing (resource_size_t) cast during PFN re-validation to\navoid truncation on 32-bit PAE systems."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/memory.c"
                    ],
                    "versions": [
                        {
                            "version": "9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75",
                            "lessThan": "eb4334c7cebb4812126bc5dbb8e91c4d63b3d784",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75",
                            "lessThan": "14375f7daba0afb67c10d56e5f4af694ad18d928",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75",
                            "lessThan": "defac975e1fbd1cae022bf26657299f87105fd9e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75",
                            "lessThan": "f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75",
                            "lessThan": "61b405ef3e35b5890365090ab6a377855e9a9b71",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75",
                            "lessThan": "94a138ce5baed8233c0d541fd14ac6d58bf1da8c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75",
                            "lessThan": "ae0298a5fbeff32951c0d31398ccec97ec6aa0ea",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c8d452410c798d28ac96c3716b011d3d6b5d3ade",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "601391cbb6334533d6fde4e81f40b53b5f85d73b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9113c468b621ddb74f2395564720862faa3a083d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "970970dcb4fca4fdcbb1b9bf4d7cd686796dc9d6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9db79db105f2316229803a85eec7db665f7d276c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "463fb5a2cc7013f50763ee2322fa724553150842",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6f5468a717c8f18e721dc9bc7f8d7ce41f22eb1a",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3.2.69",
                            "lessThan": "3.3",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "3.4.108",
                            "lessThan": "3.5",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "3.10.72",
                            "lessThan": "3.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "3.12.39",
                            "lessThan": "3.13",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "3.14.36",
                            "lessThan": "3.15",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "3.18.10",
                            "lessThan": "3.19",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "3.19.2",
                            "lessThan": "3.20",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/memory.c"
                    ],
                    "versions": [
                        {
                            "version": "4.0",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.0",
                            "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.118",
                            "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": "4.0",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.0",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.0",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.0",
                                    "versionEndExcluding": "6.12.118"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.0",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.0",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.0",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.2.69"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.4.108"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.10.72"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.12.39"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.14.36"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.18.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.19.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/eb4334c7cebb4812126bc5dbb8e91c4d63b3d784"
                },
                {
                    "url": "https://git.kernel.org/stable/c/14375f7daba0afb67c10d56e5f4af694ad18d928"
                },
                {
                    "url": "https://git.kernel.org/stable/c/defac975e1fbd1cae022bf26657299f87105fd9e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba"
                },
                {
                    "url": "https://git.kernel.org/stable/c/61b405ef3e35b5890365090ab6a377855e9a9b71"
                },
                {
                    "url": "https://git.kernel.org/stable/c/94a138ce5baed8233c0d541fd14ac6d58bf1da8c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ae0298a5fbeff32951c0d31398ccec97ec6aa0ea"
                }
            ],
            "title": "mm/memory: constrain generic_access_phys() to page boundary",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}