GHSA-PW93-CJFQ-PMW5
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-12-01 06:31In the Linux kernel, the following vulnerability has been resolved:
bpf: Use the frame mem type in devmap egress XDP
A devmap egress program that removes a whole fragment of a redirected xdp_frame with bpf_xdp_adjust_tail() or bpf_xdp_pull_data() frees it with page_frag_free() whatever the frame's memory type is. For a MEM_TYPE_PAGE_POOL frame from a page_pool based driver this drops the page reference owned by the pool while the pool still accounts the fragment ("page_pool leak" bad page, leaked pp reference).
kernel/bpf/devmap.c:dev_map_bpf_prog_run() points xdp.rxq at an on-stack
struct xdp_rxq_info rxq = { .dev = rx_dev };
whose mem.type is 0, i.e. MEM_TYPE_PAGE_SHARED, and net/core/filter.c:bpf_xdp_shrink_data() releases frags according to rxq->mem.type. cpumap, which runs programs on xdp_frames the same way, already copies xdpf->mem_type into its private rxq for each frame.
With 9000 byte frames from virtio_net and an egress program that cuts the fragments off:
BUG: Bad page state in process swapper/3 pfn:10660b page dumped because: page_pool leak bad_page+0xbd/0x190 __free_frozen_pages+0x5c7/0x900 bpf_xdp_adjust_tail+0x3be/0x480 bpf_prog_dad43f894a3faff7_egress+0x15c/0x1cd dev_map_bpf_prog_run+0x288/0x610
The pool waits for these pages for ever when its device is gone. That is the harmless case. A page of the pool can hold more than one fragment while its refcount is 1: the first page_frag_free() frees it under the fragment which is still in use, and the second one runs into
page dumped because: VM_BUG_ON_PAGE(page_ref_count(page) == 0) kernel BUG at include/linux/mm.h:1846!
veth is not affected. It takes references of its own on the pages and redirects the frame as MEM_TYPE_PAGE_SHARED.
Fix by setting rxq.mem.type from each frame before running the devmap program, as cpu_map_bpf_prog_run_xdp() does.
{
"affected": [],
"aliases": [
"CVE-2026-139326"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:18:57Z",
"severity": "HIGH"
},
"details": "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\u0027s 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-\u003emem.type. cpumap, which runs programs on xdp_frames the same way,\nalready copies xdpf-\u003emem_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.",
"id": "GHSA-pw93-cjfq-pmw5",
"modified": "2026-12-01T06:31:22Z",
"published": "2026-11-30T15:32:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139326"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/42a02f01ec4fb8716ce747c3934d925638ff5c44"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/55a5ecf8531f57f714925b28c1a1bb4601b224c6"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b3ca872947ef322c475ceaa7a76a9ebb3356152e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f014c65f9de79122e818a977af7261127ee0e98c"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.