<?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://cve.radiocsirt.org</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, 06 Oct 2026 21:46:28 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-48801 — iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2022-48801</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;iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL&lt;/p&gt;
&lt;p&gt;If we fail to copy the just created file descriptor to userland, we
try to clean up by putting back &amp;#39;fd&amp;#39; and freeing &amp;#39;ib&amp;#39;. The code uses
put_unused_fd() for the former which is wrong, as the file descriptor
was already published by fd_install() which gets called internally by
anon_inode_getfd().&lt;/p&gt;
&lt;p&gt;This makes the error handling code leaving a half cleaned up file
descriptor table around and a partially destructed &amp;#39;file&amp;#39; object,
allowing userland to play use-after-free tricks on us, by abusing
the still usable fd and making the code operate on a dangling
&amp;#39;file-&amp;gt;private_data&amp;#39; pointer.&lt;/p&gt;
&lt;p&gt;Instead of leaving the kernel in a partially corrupted state, don&amp;#39;t
attempt to explicitly clean up and leave this to the process exit
path that&amp;#39;ll release any still valid fds, including the one created
by the previous call to anon_inode_getfd(). Simply return -EFAULT to
indicate the error.&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;iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL&lt;/p&gt;
&lt;p&gt;If we fail to copy the just created file descriptor to userland, we
try to clean up by putting back &amp;#39;fd&amp;#39; and freeing &amp;#39;ib&amp;#39;. The code uses
put_unused_fd() for the former which is wrong, as the file descriptor
was already published by fd_install() which gets called internally by
anon_inode_getfd().&lt;/p&gt;
&lt;p&gt;This makes the error handling code leaving a half cleaned up file
descriptor table around and a partially destructed &amp;#39;file&amp;#39; object,
allowing userland to play use-after-free tricks on us, by abusing
the still usable fd and making the code operate on a dangling
&amp;#39;file-&amp;gt;private_data&amp;#39; pointer.&lt;/p&gt;
&lt;p&gt;Instead of leaving the kernel in a partially corrupted state, don&amp;#39;t
attempt to explicitly clean up and leave this to the process exit
path that&amp;#39;ll release any still valid fds, including the one created
by the previous call to anon_inode_getfd(). Simply return -EFAULT to
indicate the error.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2022-48801</guid>
    </item>
  </channel>
</rss>
