<?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://vulnerability.circl.lu</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>Tue, 29 Sep 2026 04:54:19 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38339 — powerpc/bpf: fix JIT code size calculation of bpf trampoline</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38339</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;powerpc/bpf: fix JIT code size calculation of bpf trampoline&lt;/p&gt;
&lt;p&gt;arch_bpf_trampoline_size() provides JIT size of the BPF trampoline
before the buffer for JIT&amp;#39;ing it is allocated. The total number of
instructions emitted for BPF trampoline JIT code depends on where
the final image is located. So, the size arrived at with the dummy
pass in arch_bpf_trampoline_size() can vary from the actual size
needed in  arch_prepare_bpf_trampoline().  When the instructions
accounted in  arch_bpf_trampoline_size() is less than the number of
instructions emitted during the actual JIT compile of the trampoline,
the below warning is produced:&lt;/p&gt;
&lt;p&gt;WARNING: CPU: 8 PID: 204190 at arch/powerpc/net/bpf_jit_comp.c:981 __arch_prepare_bpf_trampoline.isra.0+0xd2c/0xdcc&lt;/p&gt;
&lt;p&gt;which is:&lt;/p&gt;
&lt;p&gt;/* Make sure the trampoline generation logic doesn&amp;#39;t overflow */
  if (image &amp;amp;&amp;amp; WARN_ON_ONCE(&amp;amp;image[ctx-&amp;gt;idx] &amp;gt;
  			(u32 *)rw_image_end - BPF_INSN_SAFETY)) {&lt;/p&gt;
&lt;p&gt;So, during the dummy pass, instead of providing some arbitrary image
location, account for maximum possible instructions if and when there
is a dependency with image location for JIT&amp;#39;ing.&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;powerpc/bpf: fix JIT code size calculation of bpf trampoline&lt;/p&gt;
&lt;p&gt;arch_bpf_trampoline_size() provides JIT size of the BPF trampoline
before the buffer for JIT&amp;#39;ing it is allocated. The total number of
instructions emitted for BPF trampoline JIT code depends on where
the final image is located. So, the size arrived at with the dummy
pass in arch_bpf_trampoline_size() can vary from the actual size
needed in  arch_prepare_bpf_trampoline().  When the instructions
accounted in  arch_bpf_trampoline_size() is less than the number of
instructions emitted during the actual JIT compile of the trampoline,
the below warning is produced:&lt;/p&gt;
&lt;p&gt;WARNING: CPU: 8 PID: 204190 at arch/powerpc/net/bpf_jit_comp.c:981 __arch_prepare_bpf_trampoline.isra.0+0xd2c/0xdcc&lt;/p&gt;
&lt;p&gt;which is:&lt;/p&gt;
&lt;p&gt;/* Make sure the trampoline generation logic doesn&amp;#39;t overflow */
  if (image &amp;amp;&amp;amp; WARN_ON_ONCE(&amp;amp;image[ctx-&amp;gt;idx] &amp;gt;
  			(u32 *)rw_image_end - BPF_INSN_SAFETY)) {&lt;/p&gt;
&lt;p&gt;So, during the dummy pass, instead of providing some arbitrary image
location, account for maximum possible instructions if and when there
is a dependency with image location for JIT&amp;#39;ing.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38339</guid>
    </item>
  </channel>
</rss>
