<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 19:53:58 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139326 — bpf: Use the frame mem type in devmap egress XDP</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139326</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;bpf: Use the frame mem type in devmap egress XDP&lt;/p&gt;
&lt;p&gt;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&amp;#39;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 (&amp;#34;page_pool leak&amp;#34; bad page, leaked pp reference).&lt;/p&gt;
&lt;p&gt;kernel/bpf/devmap.c:dev_map_bpf_prog_run() points xdp.rxq at an
on-stack&lt;/p&gt;
&lt;p&gt;struct xdp_rxq_info rxq = { .dev = rx_dev };&lt;/p&gt;
&lt;p&gt;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-&amp;gt;mem.type. cpumap, which runs programs on xdp_frames the same way,
already copies xdpf-&amp;gt;mem_type into its private rxq for each frame.&lt;/p&gt;
&lt;p&gt;With 9000 byte frames from virtio_net and an egress program that cuts the
fragments off:&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;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 sti…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;bpf: Use the frame mem type in devmap egress XDP&lt;/p&gt;
&lt;p&gt;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&amp;#39;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 (&amp;#34;page_pool leak&amp;#34; bad page, leaked pp reference).&lt;/p&gt;
&lt;p&gt;kernel/bpf/devmap.c:dev_map_bpf_prog_run() points xdp.rxq at an
on-stack&lt;/p&gt;
&lt;p&gt;struct xdp_rxq_info rxq = { .dev = rx_dev };&lt;/p&gt;
&lt;p&gt;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-&amp;gt;mem.type. cpumap, which runs programs on xdp_frames the same way,
already copies xdpf-&amp;gt;mem_type into its private rxq for each frame.&lt;/p&gt;
&lt;p&gt;With 9000 byte frames from virtio_net and an egress program that cuts the
fragments off:&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;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 sti…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139326</guid>
    </item>
  </channel>
</rss>
