Linux kernelのdevmapで、XDPのフラグメント解放の誤りによりメモリ破損や不安定化のおそれがある脆弱性
Summary
Linux kernelのBPFでdevmapのegress XDPプログラムがフレームを解放するとき、メモリの種類を見ずに解放してしまう脆弱性です。ページプールの参照が正しく戻らず、デバイスを外したあとにページが戻らなくなるおそれがあります。修正版はLinux kernel 5.16、6.2、6.7、6.12.120、6.18.65、7.3.6以降で、影響を受ける版は速やかに更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Linux kernelのBPFでdevmapのegress XDPプログラムがフレームを解放するとき、メモリの種類を見ずに解放してしまう脆弱性です。ページプールの参照が正しく戻らず、デバイスを外したあとにページが戻らなくなるおそれがあります。修正版はLinux kernel 5.16、6.2、6.7、6.12.120、6.18.65、7.3.6以降で、影響を受ける版は速やかに更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 5.15.170, < 5.16→ 5.16 ≥ 6.1.115, < 6.2→ 6.2 ≥ 6.6.59, < 6.7→ 6.7 ≥ 6.11.6, < 6.12→ 6.12 ≥ 6.12.0, < 6.12.120→ 6.12.120 ≥ 6.13.0, < 6.18.65→ 6.18.65 ≥ 6.19.0, < 7.3.6→ 7.3.6 |
5.16 6.2 6.7 6.12 6.12.120 6.18.65 7.3.6 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-139326 linux Fix available
- Ubuntu UBUNTU-CVE-2026-139326 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +166 more No fixed version in this record
Original description The description as published by the source.
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 stil…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com