<?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>Mon, 28 Sep 2026 19:59:08 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52828 — bpf: Detect IP == ksym.end as part of BPF program</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52828</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: Detect IP == ksym.end as part of BPF program&lt;/p&gt;
&lt;p&gt;Now that bpf_throw kfunc is the first such call instruction that has
noreturn semantics within the verifier, this also kicks in dead code
elimination in unprecedented ways. For one, any instruction following
a bpf_throw call will never be marked as seen. Moreover, if a callchain
ends up throwing, any instructions after the call instruction to the
eventually throwing subprog in callers will also never be marked as
seen.&lt;/p&gt;
&lt;p&gt;The tempting way to fix this would be to emit extra &amp;#39;int3&amp;#39; instructions
which bump the jited_len of a program, and ensure that during runtime
when a program throws, we can discover its boundaries even if the call
instruction to bpf_throw (or to subprogs that always throw) is emitted
as the final instruction in the program.&lt;/p&gt;
&lt;p&gt;An example of such a program would be this:&lt;/p&gt;
&lt;p&gt;do_something():
	...
	r0 = 0
	exit&lt;/p&gt;
&lt;p&gt;foo():
	r1 = 0
	call bpf_throw
	r0 = 0
	exit&lt;/p&gt;
&lt;p&gt;bar(cond):
	if r1 != 0 goto pc+2
	call do_something
	exit
	call foo
	r0 = 0  // Never seen by verifier
	exit	//&lt;/p&gt;
&lt;p&gt;main(ctx):
	r1 = ...
	call bar
	r0 = 0
	exit&lt;/p&gt;
&lt;p&gt;Here, if we do end up throwing, the stacktrace would be the following:&lt;/p&gt;
&lt;p&gt;bpf_throw
foo
bar
main&lt;/p&gt;
&lt;p&gt;In bar, the final instruction emitted will be the call to foo, as such,
the return address will be the subsequent instruction (which the JIT
emits as int3 on x86). This will end up lying outside the jited_len of
the program, thus, when unwinding,…&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: Detect IP == ksym.end as part of BPF program&lt;/p&gt;
&lt;p&gt;Now that bpf_throw kfunc is the first such call instruction that has
noreturn semantics within the verifier, this also kicks in dead code
elimination in unprecedented ways. For one, any instruction following
a bpf_throw call will never be marked as seen. Moreover, if a callchain
ends up throwing, any instructions after the call instruction to the
eventually throwing subprog in callers will also never be marked as
seen.&lt;/p&gt;
&lt;p&gt;The tempting way to fix this would be to emit extra &amp;#39;int3&amp;#39; instructions
which bump the jited_len of a program, and ensure that during runtime
when a program throws, we can discover its boundaries even if the call
instruction to bpf_throw (or to subprogs that always throw) is emitted
as the final instruction in the program.&lt;/p&gt;
&lt;p&gt;An example of such a program would be this:&lt;/p&gt;
&lt;p&gt;do_something():
	...
	r0 = 0
	exit&lt;/p&gt;
&lt;p&gt;foo():
	r1 = 0
	call bpf_throw
	r0 = 0
	exit&lt;/p&gt;
&lt;p&gt;bar(cond):
	if r1 != 0 goto pc+2
	call do_something
	exit
	call foo
	r0 = 0  // Never seen by verifier
	exit	//&lt;/p&gt;
&lt;p&gt;main(ctx):
	r1 = ...
	call bar
	r0 = 0
	exit&lt;/p&gt;
&lt;p&gt;Here, if we do end up throwing, the stacktrace would be the following:&lt;/p&gt;
&lt;p&gt;bpf_throw
foo
bar
main&lt;/p&gt;
&lt;p&gt;In bar, the final instruction emitted will be the call to foo, as such,
the return address will be the subsequent instruction (which the JIT
emits as int3 on x86). This will end up lying outside the jited_len of
the program, thus, when unwinding,…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52828</guid>
    </item>
  </channel>
</rss>
