<?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:29:10 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143122 — perf/core: Do not resurrect cpuctx-&gt;cgrp after last cgroup event exit</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143122</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;perf/core: Do not resurrect cpuctx-&amp;gt;cgrp after last cgroup event exit&lt;/p&gt;
&lt;p&gt;perf_cgroup_switch() relies on:&lt;/p&gt;
&lt;p&gt;/*
     * cpuctx-&amp;gt;cgrp is set when the first cgroup event enabled,
     * and is cleared when the last cgroup event disabled.
     */&lt;/p&gt;
&lt;p&gt;It computes the next task&amp;#39;s cgroup, schedules out the CPU context and
then assigns cpuctx-&amp;gt;cgrp unconditionally:&lt;/p&gt;
&lt;p&gt;ctx_sched_out(&amp;amp;cpuctx-&amp;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-&amp;gt;cgrp = cgrp;&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;if (event-&amp;gt;pending_disable) {
        event-&amp;gt;pending_disable = 0;
        perf_cgroup_event_disable(event, ctx);
        state = PERF_EVENT_STATE_OFF;
    }&lt;/p&gt;
&lt;p&gt;If that was the last cgroup event, perf_cgroup_event_disable() clears
cpuctx-&amp;gt;cgrp:&lt;/p&gt;
&lt;p&gt;if (--ctx-&amp;gt;nr_cgroups)
        return;&lt;/p&gt;
&lt;p&gt;cpuctx-&amp;gt;cgrp = NULL;&lt;/p&gt;
&lt;p&gt;and perf_cgroup_switch() then sets it again. cpuctx-&amp;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:&lt;/p&gt;
&lt;p&gt;WARN_ON_ONCE(cpuctx-&amp;gt;ctx.nr_cgroups == 0);&lt;/p&gt;
&lt;p&gt;cpuctx-&amp;gt;cgrp does not hold a reference on the cg…&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;perf/core: Do not resurrect cpuctx-&amp;gt;cgrp after last cgroup event exit&lt;/p&gt;
&lt;p&gt;perf_cgroup_switch() relies on:&lt;/p&gt;
&lt;p&gt;/*
     * cpuctx-&amp;gt;cgrp is set when the first cgroup event enabled,
     * and is cleared when the last cgroup event disabled.
     */&lt;/p&gt;
&lt;p&gt;It computes the next task&amp;#39;s cgroup, schedules out the CPU context and
then assigns cpuctx-&amp;gt;cgrp unconditionally:&lt;/p&gt;
&lt;p&gt;ctx_sched_out(&amp;amp;cpuctx-&amp;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-&amp;gt;cgrp = cgrp;&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;if (event-&amp;gt;pending_disable) {
        event-&amp;gt;pending_disable = 0;
        perf_cgroup_event_disable(event, ctx);
        state = PERF_EVENT_STATE_OFF;
    }&lt;/p&gt;
&lt;p&gt;If that was the last cgroup event, perf_cgroup_event_disable() clears
cpuctx-&amp;gt;cgrp:&lt;/p&gt;
&lt;p&gt;if (--ctx-&amp;gt;nr_cgroups)
        return;&lt;/p&gt;
&lt;p&gt;cpuctx-&amp;gt;cgrp = NULL;&lt;/p&gt;
&lt;p&gt;and perf_cgroup_switch() then sets it again. cpuctx-&amp;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:&lt;/p&gt;
&lt;p&gt;WARN_ON_ONCE(cpuctx-&amp;gt;ctx.nr_cgroups == 0);&lt;/p&gt;
&lt;p&gt;cpuctx-&amp;gt;cgrp does not hold a reference on the cg…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143122</guid>
    </item>
  </channel>
</rss>
