<?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>Sun, 04 Oct 2026 16:39:14 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-26981 — nilfs2: fix OOB in nilfs_set_de_type</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-26981</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;nilfs2: fix OOB in nilfs_set_de_type&lt;/p&gt;
&lt;p&gt;The size of the nilfs_type_by_mode array in the fs/nilfs2/dir.c file is
defined as &amp;#34;S_IFMT &amp;gt;&amp;gt; S_SHIFT&amp;#34;, but the nilfs_set_de_type() function,
which uses this array, specifies the index to read from the array in the
same way as &amp;#34;(mode &amp;amp; S_IFMT) &amp;gt;&amp;gt; S_SHIFT&amp;#34;.&lt;/p&gt;
&lt;p&gt;static void nilfs_set_de_type(struct nilfs_dir_entry *de, struct inode
 *inode)
{
	umode_t mode = inode-&amp;gt;i_mode;&lt;/p&gt;
&lt;p&gt;de-&amp;gt;file_type = nilfs_type_by_mode[(mode &amp;amp; S_IFMT)&amp;gt;&amp;gt;S_SHIFT]; // oob
}&lt;/p&gt;
&lt;p&gt;However, when the index is determined this way, an out-of-bounds (OOB)
error occurs by referring to an index that is 1 larger than the array size
when the condition &amp;#34;mode &amp;amp; S_IFMT == S_IFMT&amp;#34; is satisfied.  Therefore, a
patch to resize the nilfs_type_by_mode array should be applied to prevent
OOB errors.&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;nilfs2: fix OOB in nilfs_set_de_type&lt;/p&gt;
&lt;p&gt;The size of the nilfs_type_by_mode array in the fs/nilfs2/dir.c file is
defined as &amp;#34;S_IFMT &amp;gt;&amp;gt; S_SHIFT&amp;#34;, but the nilfs_set_de_type() function,
which uses this array, specifies the index to read from the array in the
same way as &amp;#34;(mode &amp;amp; S_IFMT) &amp;gt;&amp;gt; S_SHIFT&amp;#34;.&lt;/p&gt;
&lt;p&gt;static void nilfs_set_de_type(struct nilfs_dir_entry *de, struct inode
 *inode)
{
	umode_t mode = inode-&amp;gt;i_mode;&lt;/p&gt;
&lt;p&gt;de-&amp;gt;file_type = nilfs_type_by_mode[(mode &amp;amp; S_IFMT)&amp;gt;&amp;gt;S_SHIFT]; // oob
}&lt;/p&gt;
&lt;p&gt;However, when the index is determined this way, an out-of-bounds (OOB)
error occurs by referring to an index that is 1 larger than the array size
when the condition &amp;#34;mode &amp;amp; S_IFMT == S_IFMT&amp;#34; is satisfied.  Therefore, a
patch to resize the nilfs_type_by_mode array should be applied to prevent
OOB errors.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-26981</guid>
    </item>
  </channel>
</rss>
