<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T18:58:51.567721+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-143122</id>
    <title>CVE-2026-143122 — perf/core: Do not resurrect cpuctx-&gt;cgrp after last cgroup event exit</title>
    <updated>2026-12-04T18:58:51.569482+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>perf/core: Do not resurrect cpuctx-&gt;cgrp after last cgroup event exit</p>
<p>perf_cgroup_switch() relies on:</p>
<p>/*
     * cpuctx-&gt;cgrp is set when the first cgroup event enabled,
     * and is cleared when the last cgroup event disabled.
     */</p>
<p>It computes the next task's cgroup, schedules out the CPU context and
then assigns cpuctx-&gt;cgrp unconditionally:</p>
<p>ctx_sched_out(&amp;cpuctx-&gt;ctx, NULL, EVENT_ALL|EVENT_CGROUP);
    /*
     * must not be done before ctxswout due
     * to update_cgrp_time_from_cpuctx() in
     * ctx_sched_out()
     */
    cpuctx-&gt;cgrp = cgrp;</p>
<p>However, ctx_sched_out() can disable events itself. If a cgroup event
has a pending disable from perf_event_disable_inatomic() (e.g. its
PERF_EVENT_IOC_REFRESH limit ran out) that the irq_work has not
handled yet, event_sched_out() consumes it inline:</p>
<p>if (event-&gt;pending_disable) {
        event-&gt;pending_disable = 0;
        perf_cgroup_event_disable(event, ctx);
        state = PERF_EVENT_STATE_OFF;
    }</p>
<p>If that was the last cgroup event, perf_cgroup_event_disable() clears
cpuctx-&gt;cgrp:</p>
<p>if (--ctx-&gt;nr_cgroups)
        return;</p>
<p>cpuctx-&gt;cgrp = NULL;</p>
<p>and perf_cgroup_switch() then sets it again. cpuctx-&gt;cgrp is left
non-NULL with ctx.nr_cgroups == 0, so the NULL check in
perf_cgroup_switch() no longer catches it and the next switch trips:</p>
<p>WARN_ON_ONCE(cpuctx-&gt;ctx.nr_cgroups == 0);</p>
<p>cpuctx-&gt;cgrp does not hold a reference on the cg…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-143122"/>
  </entry>
</feed>
