<?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://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-03T21:38:48.573982+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" 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://vulnerability.circl.lu/vuln/cve-2026-23127</id>
    <title>CVE-2026-23127 — perf: Fix refcount warning on event-&gt;mmap_count increment</title>
    <updated>2026-10-03T21:38:48.593665+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: Fix refcount warning on event-&gt;mmap_count increment</p>
<p>When calling refcount_inc(&amp;event-&gt;mmap_count) inside perf_mmap_rb(), the
following warning is triggered:</p>
<p>refcount_t: addition on 0; use-after-free.
        WARNING: lib/refcount.c:25</p>
<p>PoC:</p>
<p>struct perf_event_attr attr = {0};
    int fd = syscall(__NR_perf_event_open, &amp;attr, 0, -1, -1, 0);
    mmap(NULL, 0x3000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
    int victim = syscall(__NR_perf_event_open, &amp;attr, 0, -1, fd,
                         PERF_FLAG_FD_OUTPUT);
    mmap(NULL, 0x3000, PROT_READ | PROT_WRITE, MAP_SHARED, victim, 0);</p>
<p>This occurs when creating a group member event with the flag
PERF_FLAG_FD_OUTPUT. The group leader should be mmap-ed and then mmap-ing
the event triggers the warning.</p>
<p>Since the event has copied the output_event in perf_event_set_output(),
event-&gt;rb is set. As a result, perf_mmap_rb() calls
refcount_inc(&amp;event-&gt;mmap_count) when event-&gt;mmap_count = 0.</p>
<p>Disallow the case when event-&gt;mmap_count = 0. This also prevents two
events from updating the same user_page.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-23127"/>
  </entry>
</feed>
