<?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:59:43 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139177 — sched_ext: Reject rq-lock-taking kfuncs in tracing programs</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139177</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;sched_ext: Reject rq-lock-taking kfuncs in tracing programs&lt;/p&gt;
&lt;p&gt;scx_bpf_cpuperf_set() and scx_bpf_cidperf_set() are members of
scx_kfunc_ids_any, which is registered for BPF_PROG_TYPE_TRACING.
A tracing program can run in a context which already holds the target
rq lock, in which case scx_cpuperf_set() attempts to acquire the same
lock again:&lt;/p&gt;
&lt;p&gt;__schedule()
    rq_lock(rq);                          /* rq-&amp;gt;__lock is held */
    trace_sched_switch();
      BPF tracing program
        scx_bpf_cpuperf_set(smp_processor_id(), 1024);
          scx_cpuperf_set();
            locked_rq = scx_locked_rq(); /* NULL */
            rq_lock_irqsave(rq, &amp;amp;rf);    /* same lock */&lt;/p&gt;
&lt;p&gt;scx_locked_rq() only tracks rq locks held during SCX callback
invocations, so it cannot detect an rq lock held by the surrounding
kernel code.&lt;/p&gt;
&lt;p&gt;The deadlock can be reproduced with two BPF programs. The first is a
minimal SCX scheduler, which only needs to be registered and enabled:&lt;/p&gt;
&lt;p&gt;SEC(&amp;#34;.struct_ops.link&amp;#34;)
  struct sched_ext_ops minimal_ops = {
          .name = &amp;#34;minimal&amp;#34;,
  };&lt;/p&gt;
&lt;p&gt;The second is a tracing program attached to tp_btf/sched_switch,
which fires from __schedule() with rq-&amp;gt;__lock already held:&lt;/p&gt;
&lt;p&gt;SEC(&amp;#34;tp_btf/sched_switch&amp;#34;)
  int BPF_PROG(on_sched_switch, bool preempt, struct task_struct *prev,
               struct task_struct *next, unsigned int prev_state)
  {
          scx_bpf_cpuperf_set(bpf_get_smp_processor_id(), 1024);
          ret…&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;sched_ext: Reject rq-lock-taking kfuncs in tracing programs&lt;/p&gt;
&lt;p&gt;scx_bpf_cpuperf_set() and scx_bpf_cidperf_set() are members of
scx_kfunc_ids_any, which is registered for BPF_PROG_TYPE_TRACING.
A tracing program can run in a context which already holds the target
rq lock, in which case scx_cpuperf_set() attempts to acquire the same
lock again:&lt;/p&gt;
&lt;p&gt;__schedule()
    rq_lock(rq);                          /* rq-&amp;gt;__lock is held */
    trace_sched_switch();
      BPF tracing program
        scx_bpf_cpuperf_set(smp_processor_id(), 1024);
          scx_cpuperf_set();
            locked_rq = scx_locked_rq(); /* NULL */
            rq_lock_irqsave(rq, &amp;amp;rf);    /* same lock */&lt;/p&gt;
&lt;p&gt;scx_locked_rq() only tracks rq locks held during SCX callback
invocations, so it cannot detect an rq lock held by the surrounding
kernel code.&lt;/p&gt;
&lt;p&gt;The deadlock can be reproduced with two BPF programs. The first is a
minimal SCX scheduler, which only needs to be registered and enabled:&lt;/p&gt;
&lt;p&gt;SEC(&amp;#34;.struct_ops.link&amp;#34;)
  struct sched_ext_ops minimal_ops = {
          .name = &amp;#34;minimal&amp;#34;,
  };&lt;/p&gt;
&lt;p&gt;The second is a tracing program attached to tp_btf/sched_switch,
which fires from __schedule() with rq-&amp;gt;__lock already held:&lt;/p&gt;
&lt;p&gt;SEC(&amp;#34;tp_btf/sched_switch&amp;#34;)
  int BPF_PROG(on_sched_switch, bool preempt, struct task_struct *prev,
               struct task_struct *next, unsigned int prev_state)
  {
          scx_bpf_cpuperf_set(bpf_get_smp_processor_id(), 1024);
          ret…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139177</guid>
    </item>
  </channel>
</rss>
