{"api_version":"1","generated_at":"2026-12-01T13:19:08+00:00","cve":"CVE-2026-139326","urls":{"html":"https://cve.report/CVE-2026-139326","api":"https://cve.report/api/cve/CVE-2026-139326.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139326","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139326"},"summary":{"title":"bpf: Use the frame mem type in devmap egress XDP","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use the frame mem type in devmap egress XDP\n\nA devmap egress program that removes a whole fragment of a redirected\nxdp_frame with bpf_xdp_adjust_tail() or bpf_xdp_pull_data() frees it\nwith page_frag_free() whatever the frame's memory type is. For a\nMEM_TYPE_PAGE_POOL frame from a page_pool based driver this drops the\npage reference owned by the pool while the pool still accounts the\nfragment (\"page_pool leak\" bad page, leaked pp reference).\n\nkernel/bpf/devmap.c:dev_map_bpf_prog_run() points xdp.rxq at an\non-stack\n\n    struct xdp_rxq_info rxq = { .dev = rx_dev };\n\nwhose mem.type is 0, i.e. MEM_TYPE_PAGE_SHARED, and\nnet/core/filter.c:bpf_xdp_shrink_data() releases frags according to\nrxq->mem.type. cpumap, which runs programs on xdp_frames the same way,\nalready copies xdpf->mem_type into its private rxq for each frame.\n\nWith 9000 byte frames from virtio_net and an egress program that cuts the\nfragments off:\n\n  BUG: Bad page state in process swapper/3  pfn:10660b\n  page dumped because: page_pool leak\n   bad_page+0xbd/0x190\n   __free_frozen_pages+0x5c7/0x900\n   bpf_xdp_adjust_tail+0x3be/0x480\n   bpf_prog_dad43f894a3faff7_egress+0x15c/0x1cd\n   dev_map_bpf_prog_run+0x288/0x610\n\nThe pool waits for these pages for ever when its device is gone. That is\nthe harmless case. A page of the pool can hold more than one fragment\nwhile its refcount is 1: the first page_frag_free() frees it under the\nfragment which is still in use, and the second one runs into\n\n  page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0)\n  kernel BUG at include/linux/mm.h:1846!\n\nveth is not affected. It takes references of its own on the pages and\nredirects the frame as MEM_TYPE_PAGE_SHARED.\n\nFix by setting rxq.mem.type from each frame before running the devmap\nprogram, as cpu_map_bpf_prog_run_xdp() does.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:57","updated_at":"2026-12-01 06:17:42"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"8.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":8.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/f014c65f9de79122e818a977af7261127ee0e98c","name":"https://git.kernel.org/stable/c/f014c65f9de79122e818a977af7261127ee0e98c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b3ca872947ef322c475ceaa7a76a9ebb3356152e","name":"https://git.kernel.org/stable/c/b3ca872947ef322c475ceaa7a76a9ebb3356152e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/55a5ecf8531f57f714925b28c1a1bb4601b224c6","name":"https://git.kernel.org/stable/c/55a5ecf8531f57f714925b28c1a1bb4601b224c6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/42a02f01ec4fb8716ce747c3934d925638ff5c44","name":"https://git.kernel.org/stable/c/42a02f01ec4fb8716ce747c3934d925638ff5c44","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139326","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139326","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ca9984c5f0ab3690d98b13937b2485a978c8dd73 55a5ecf8531f57f714925b28c1a1bb4601b224c6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ca9984c5f0ab3690d98b13937b2485a978c8dd73 42a02f01ec4fb8716ce747c3934d925638ff5c44 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ca9984c5f0ab3690d98b13937b2485a978c8dd73 f014c65f9de79122e818a977af7261127ee0e98c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ca9984c5f0ab3690d98b13937b2485a978c8dd73 b3ca872947ef322c475ceaa7a76a9ebb3356152e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe068afb868660fe683a8391c6c17ecbe2254922 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a778fbe087c19f4ece5f5fc14173328f070c3803 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 49454f09936a9a96edfb047156889879cb4001eb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9167d1c274a336e4763eeb3f3f9cb763c55df5aa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.170 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.115 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.59 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.11.6 6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/devmap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"55a5ecf8531f57f714925b28c1a1bb4601b224c6","status":"affected","version":"ca9984c5f0ab3690d98b13937b2485a978c8dd73","versionType":"git"},{"lessThan":"42a02f01ec4fb8716ce747c3934d925638ff5c44","status":"affected","version":"ca9984c5f0ab3690d98b13937b2485a978c8dd73","versionType":"git"},{"lessThan":"f014c65f9de79122e818a977af7261127ee0e98c","status":"affected","version":"ca9984c5f0ab3690d98b13937b2485a978c8dd73","versionType":"git"},{"lessThan":"b3ca872947ef322c475ceaa7a76a9ebb3356152e","status":"affected","version":"ca9984c5f0ab3690d98b13937b2485a978c8dd73","versionType":"git"},{"status":"affected","version":"fe068afb868660fe683a8391c6c17ecbe2254922","versionType":"git"},{"status":"affected","version":"a778fbe087c19f4ece5f5fc14173328f070c3803","versionType":"git"},{"status":"affected","version":"49454f09936a9a96edfb047156889879cb4001eb","versionType":"git"},{"status":"affected","version":"9167d1c274a336e4763eeb3f3f9cb763c55df5aa","versionType":"git"},{"lessThan":"5.16","status":"affected","version":"5.15.170","versionType":"semver"},{"lessThan":"6.2","status":"affected","version":"6.1.115","versionType":"semver"},{"lessThan":"6.7","status":"affected","version":"6.6.59","versionType":"semver"},{"lessThan":"6.12","status":"affected","version":"6.11.6","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/devmap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.12"},{"lessThan":"6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.170","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.115","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.59","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use the frame mem type in devmap egress XDP\n\nA devmap egress program that removes a whole fragment of a redirected\nxdp_frame with bpf_xdp_adjust_tail() or bpf_xdp_pull_data() frees it\nwith page_frag_free() whatever the frame's memory type is. For a\nMEM_TYPE_PAGE_POOL frame from a page_pool based driver this drops the\npage reference owned by the pool while the pool still accounts the\nfragment (\"page_pool leak\" bad page, leaked pp reference).\n\nkernel/bpf/devmap.c:dev_map_bpf_prog_run() points xdp.rxq at an\non-stack\n\n    struct xdp_rxq_info rxq = { .dev = rx_dev };\n\nwhose mem.type is 0, i.e. MEM_TYPE_PAGE_SHARED, and\nnet/core/filter.c:bpf_xdp_shrink_data() releases frags according to\nrxq->mem.type. cpumap, which runs programs on xdp_frames the same way,\nalready copies xdpf->mem_type into its private rxq for each frame.\n\nWith 9000 byte frames from virtio_net and an egress program that cuts the\nfragments off:\n\n  BUG: Bad page state in process swapper/3  pfn:10660b\n  page dumped because: page_pool leak\n   bad_page+0xbd/0x190\n   __free_frozen_pages+0x5c7/0x900\n   bpf_xdp_adjust_tail+0x3be/0x480\n   bpf_prog_dad43f894a3faff7_egress+0x15c/0x1cd\n   dev_map_bpf_prog_run+0x288/0x610\n\nThe pool waits for these pages for ever when its device is gone. That is\nthe harmless case. A page of the pool can hold more than one fragment\nwhile its refcount is 1: the first page_frag_free() frees it under the\nfragment which is still in use, and the second one runs into\n\n  page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0)\n  kernel BUG at include/linux/mm.h:1846!\n\nveth is not affected. It takes references of its own on the pages and\nredirects the frame as MEM_TYPE_PAGE_SHARED.\n\nFix by setting rxq.mem.type from each frame before running the devmap\nprogram, as cpu_map_bpf_prog_run_xdp() does."}],"metrics":[{"cvssV3_1":{"baseScore":8.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:N - The trigger is an ordinary jumbo frame received on a page_pool NIC (mlx5, ice, virtio_net). A frags XDP program redirects it through a devmap. The egress program's bpf_xdp_adjust_tail() shrink then reaches bpf_xdp_shrink_data(). The remote sender picks the frame length so the last fragment is no bigger than the trim, and it gets released.\nAC:H - The attacker can't create the needed setup. An admin must have deployed a devmap egress program that trims frames (bpf_xdp_adjust_tail or bpf_xdp_pull_data) on a jumbo-MTU multi-buffer XDP forwarding path, with a target that supports NDO_XMIT_SG. Once that exists, frame length alone fires the bug.\nPR:N - The sender needs no account. Loading the XDP programs and creating the devmap require init-namespace CAP_BPF and CAP_NET_ADMIN (bpf_prog_load, map_create), but that is the operator's deployment, not attacker privilege. The cost of needing that deployment is counted in AC:H.\nUI:N - No user action is needed. bq_xmit_all() runs dev_map_bpf_prog_run() in softirq for every redirected frame.\nS:U - The page is freed and corrupted inside the same kernel, through page_frag_free() and page_pool recycling. No VM or IOMMU boundary is crossed.\nC:H - page_frag_free() drops the only page reference of a page_pool page while sibling fragments on it are still in flight. Without check_pages the page goes back to the allocator and is reused while frames and skbs still read it, a page-level use-after-free.\nI:H - When a sibling fragment is returned, page->pp (which shares space with the free-list pointers) is used as a wild page_pool pointer. If the page was reallocated with refcount 1, it is instead recycled into the pool and the NIC DMAs received packet data into another subsystem's page.\nA:H - Bad page state taints the kernel. A second free of a refcount-0 page hits VM_BUG_ON_PAGE(page_ref_count==0) (kernel BUG). On teardown the pool waits forever for pages it will never get back."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:17.492Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/55a5ecf8531f57f714925b28c1a1bb4601b224c6"},{"url":"https://git.kernel.org/stable/c/42a02f01ec4fb8716ce747c3934d925638ff5c44"},{"url":"https://git.kernel.org/stable/c/f014c65f9de79122e818a977af7261127ee0e98c"},{"url":"https://git.kernel.org/stable/c/b3ca872947ef322c475ceaa7a76a9ebb3356152e"}],"title":"bpf: Use the frame mem type in devmap egress XDP","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139326","datePublished":"2026-11-30T13:33:43.705Z","dateReserved":"2026-11-30T13:22:15.927Z","dateUpdated":"2026-12-01T05:42:17.492Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:57","lastModifiedDate":"2026-12-01 06:17:42","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139326","Ordinal":"1","Title":"bpf: Use the frame mem type in devmap egress XDP","CVE":"CVE-2026-139326","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139326","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Use the frame mem type in devmap egress XDP\n\nA devmap egress program that removes a whole fragment of a redirected\nxdp_frame with bpf_xdp_adjust_tail() or bpf_xdp_pull_data() frees it\nwith page_frag_free() whatever the frame's memory type is. For a\nMEM_TYPE_PAGE_POOL frame from a page_pool based driver this drops the\npage reference owned by the pool while the pool still accounts the\nfragment (\"page_pool leak\" bad page, leaked pp reference).\n\nkernel/bpf/devmap.c:dev_map_bpf_prog_run() points xdp.rxq at an\non-stack\n\n    struct xdp_rxq_info rxq = { .dev = rx_dev };\n\nwhose mem.type is 0, i.e. MEM_TYPE_PAGE_SHARED, and\nnet/core/filter.c:bpf_xdp_shrink_data() releases frags according to\nrxq->mem.type. cpumap, which runs programs on xdp_frames the same way,\nalready copies xdpf->mem_type into its private rxq for each frame.\n\nWith 9000 byte frames from virtio_net and an egress program that cuts the\nfragments off:\n\n  BUG: Bad page state in process swapper/3  pfn:10660b\n  page dumped because: page_pool leak\n   bad_page+0xbd/0x190\n   __free_frozen_pages+0x5c7/0x900\n   bpf_xdp_adjust_tail+0x3be/0x480\n   bpf_prog_dad43f894a3faff7_egress+0x15c/0x1cd\n   dev_map_bpf_prog_run+0x288/0x610\n\nThe pool waits for these pages for ever when its device is gone. That is\nthe harmless case. A page of the pool can hold more than one fragment\nwhile its refcount is 1: the first page_frag_free() frees it under the\nfragment which is still in use, and the second one runs into\n\n  page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0)\n  kernel BUG at include/linux/mm.h:1846!\n\nveth is not affected. It takes references of its own on the pages and\nredirects the frame as MEM_TYPE_PAGE_SHARED.\n\nFix by setting rxq.mem.type from each frame before running the devmap\nprogram, as cpu_map_bpf_prog_run_xdp() does.","Type":"Description","Title":"bpf: Use the frame mem type in devmap egress XDP"}]}}}