Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-139326

bpf: Use the frame mem type in devmap egress XDP

No exploitation reported by the sources we read.

  • Published2026-11-30
  • Fixed in7.3.6 · 6.18.65 · 6.12.120 · 6.12 · 6.7 · 6.2

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

In 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.

Timeline

dates in UTC
  1. 2026-11-3013:33CVE publishedCNA

Versions per branch

OSV
Linux kernel
BranchAffectedFixed in
7.3≥ 6.19.0, < 7.3.67.3.6
6.x≥ 6.13.0, < 6.18.656.18.65
6.12≥ 6.12.0, < 6.12.1206.12.120
6.x≥ 6.11.6, < 6.126.12
6.x≥ 6.6.59, < 6.76.7
6.x≥ 6.1.115, < 6.26.2
5.x≥ 5.15.170, < 5.165.16

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Linuxother versions: not affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • ≥ ca9984c5f0ab3690d98b13937b2485a978c8dd73, < 55a5ecf8531f57f714925b28c1a1bb4601b224c6fixed in 55a5ecf8531f57f714925b28c1a1bb4601b224c6git
    • ≥ ca9984c5f0ab3690d98b13937b2485a978c8dd73, < 42a02f01ec4fb8716ce747c3934d925638ff5c44fixed in 42a02f01ec4fb8716ce747c3934d925638ff5c44git
    • ≥ ca9984c5f0ab3690d98b13937b2485a978c8dd73, < f014c65f9de79122e818a977af7261127ee0e98cfixed in f014c65f9de79122e818a977af7261127ee0e98cgit
    • ≥ ca9984c5f0ab3690d98b13937b2485a978c8dd73, < b3ca872947ef322c475ceaa7a76a9ebb3356152efixed in b3ca872947ef322c475ceaa7a76a9ebb3356152egit
    • = fe068afb868660fe683a8391c6c17ecbe2254922no fix statedgit
    • = a778fbe087c19f4ece5f5fc14173328f070c3803no fix statedgit
    • = 49454f09936a9a96edfb047156889879cb4001ebno fix statedgit
    • = 9167d1c274a336e4763eeb3f3f9cb763c55df5aano fix statedgit

    4 more version lines in the CVE record.

  • Linuxother versions: affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • = 6.12no fix stated

    Not affected < 6.12 · ≥ 6.12.120, ≤ 6.12.* · ≥ 6.18.65, ≤ 6.18.* · ≥ 7.3.6, ≤ 7.3.* · ≥ 7.4-rc1

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-30

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • linuxDebian:14all versions · fixed in 7.3.6-1
  • linuxDebian:13all versions · no fixed version listed
  • linuxDebian:12all versions · no fixed version listed

Full record on NVD

Fix

  1. Update Linux kernel to 7.3.6 · 6.18.65 · 6.12.120 · 6.12 · 6.7 · 6.2 · 5.16

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2026-11-30
Last modified
2026-11-30
NVD status
Received
GitHub advisory
GHSA-pw93-cjfq-pmw5

Frequently asked questions

What is CVE-2026-139326?

In 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.

Is CVE-2026-139326 actively exploited?

Active exploitation of CVE-2026-139326 has not been confirmed.

What is the CVSS score for CVE-2026-139326?

CVE-2026-139326 has a CVSS v3 base score of 8.1 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record