<?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>Tue, 29 Sep 2026 05:17:55 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-48988 — memcg: fix possible use-after-free in memcg_write_event_control()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-48988</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;memcg: fix possible use-after-free in memcg_write_event_control()&lt;/p&gt;
&lt;p&gt;memcg_write_event_control() accesses the dentry-&amp;gt;d_name of the specified
control fd to route the write call.  As a cgroup interface file can&amp;#39;t be
renamed, it&amp;#39;s safe to access d_name as long as the specified file is a
regular cgroup file.  Also, as these cgroup interface files can&amp;#39;t be
removed before the directory, it&amp;#39;s safe to access the parent too.&lt;/p&gt;
&lt;p&gt;Prior to 347c4a874710 (&amp;#34;memcg: remove cgroup_event-&amp;gt;cft&amp;#34;), there was a
call to __file_cft() which verified that the specified file is a regular
cgroupfs file before further accesses.  The cftype pointer returned from
__file_cft() was no longer necessary and the commit inadvertently dropped
the file type check with it allowing any file to slip through.  With the
invarients broken, the d_name and parent accesses can now race against
renames and removals of arbitrary files and cause use-after-free&amp;#39;s.&lt;/p&gt;
&lt;p&gt;Fix the bug by resurrecting the file type check in __file_cft().  Now that
cgroupfs is implemented through kernfs, checking the file operations needs
to go through a layer of indirection.  Instead, let&amp;#39;s check the superblock
and dentry type.&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;memcg: fix possible use-after-free in memcg_write_event_control()&lt;/p&gt;
&lt;p&gt;memcg_write_event_control() accesses the dentry-&amp;gt;d_name of the specified
control fd to route the write call.  As a cgroup interface file can&amp;#39;t be
renamed, it&amp;#39;s safe to access d_name as long as the specified file is a
regular cgroup file.  Also, as these cgroup interface files can&amp;#39;t be
removed before the directory, it&amp;#39;s safe to access the parent too.&lt;/p&gt;
&lt;p&gt;Prior to 347c4a874710 (&amp;#34;memcg: remove cgroup_event-&amp;gt;cft&amp;#34;), there was a
call to __file_cft() which verified that the specified file is a regular
cgroupfs file before further accesses.  The cftype pointer returned from
__file_cft() was no longer necessary and the commit inadvertently dropped
the file type check with it allowing any file to slip through.  With the
invarients broken, the d_name and parent accesses can now race against
renames and removals of arbitrary files and cause use-after-free&amp;#39;s.&lt;/p&gt;
&lt;p&gt;Fix the bug by resurrecting the file type check in __file_cft().  Now that
cgroupfs is implemented through kernfs, checking the file operations needs
to go through a layer of indirection.  Instead, let&amp;#39;s check the superblock
and dentry type.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-48988</guid>
    </item>
  </channel>
</rss>
