<?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 05:48:48 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47636 — ubifs: Fix read out-of-bounds in ubifs_wbuf_write_nolock()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2021-47636</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;ubifs: Fix read out-of-bounds in ubifs_wbuf_write_nolock()&lt;/p&gt;
&lt;p&gt;Function ubifs_wbuf_write_nolock() may access buf out of bounds in
following process:&lt;/p&gt;
&lt;p&gt;ubifs_wbuf_write_nolock():
  aligned_len = ALIGN(len, 8);   // Assume len = 4089, aligned_len = 4096
  if (aligned_len &amp;lt;= wbuf-&amp;gt;avail) ... // Not satisfy
  if (wbuf-&amp;gt;used) {
    ubifs_leb_write()  // Fill some data in avail wbuf
    len -= wbuf-&amp;gt;avail;   // len is still not 8-bytes aligned
    aligned_len -= wbuf-&amp;gt;avail;
  }
  n = aligned_len &amp;gt;&amp;gt; c-&amp;gt;max_write_shift;
  if (n) {
    n &amp;lt;&amp;lt;= c-&amp;gt;max_write_shift;
    err = ubifs_leb_write(c, wbuf-&amp;gt;lnum, buf + written,
                          wbuf-&amp;gt;offs, n);
    // n &amp;gt; len, read out of bounds less than 8(n-len) bytes
  }&lt;/p&gt;
&lt;p&gt;, which can be catched by KASAN:
  =========================================================
  BUG: KASAN: slab-out-of-bounds in ecc_sw_hamming_calculate+0x1dc/0x7d0
  Read of size 4 at addr ffff888105594ff8 by task kworker/u8:4/128
  Workqueue: writeback wb_workfn (flush-ubifs_0_0)
  Call Trace:
    kasan_report.cold+0x81/0x165
    nand_write_page_swecc+0xa9/0x160
    ubifs_leb_write+0xf2/0x1b0 [ubifs]
    ubifs_wbuf_write_nolock+0x421/0x12c0 [ubifs]
    write_head+0xdc/0x1c0 [ubifs]
    ubifs_jnl_write_inode+0x627/0x960 [ubifs]
    wb_workfn+0x8af/0xb80&lt;/p&gt;
&lt;p&gt;Function ubifs_wbuf_write_nolock() accepts that parameter &amp;#39;len&amp;#39; is not 8
bytes aligned, the &amp;#39;len&amp;#39; represents the true length of buf (which is
alloca…&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;ubifs: Fix read out-of-bounds in ubifs_wbuf_write_nolock()&lt;/p&gt;
&lt;p&gt;Function ubifs_wbuf_write_nolock() may access buf out of bounds in
following process:&lt;/p&gt;
&lt;p&gt;ubifs_wbuf_write_nolock():
  aligned_len = ALIGN(len, 8);   // Assume len = 4089, aligned_len = 4096
  if (aligned_len &amp;lt;= wbuf-&amp;gt;avail) ... // Not satisfy
  if (wbuf-&amp;gt;used) {
    ubifs_leb_write()  // Fill some data in avail wbuf
    len -= wbuf-&amp;gt;avail;   // len is still not 8-bytes aligned
    aligned_len -= wbuf-&amp;gt;avail;
  }
  n = aligned_len &amp;gt;&amp;gt; c-&amp;gt;max_write_shift;
  if (n) {
    n &amp;lt;&amp;lt;= c-&amp;gt;max_write_shift;
    err = ubifs_leb_write(c, wbuf-&amp;gt;lnum, buf + written,
                          wbuf-&amp;gt;offs, n);
    // n &amp;gt; len, read out of bounds less than 8(n-len) bytes
  }&lt;/p&gt;
&lt;p&gt;, which can be catched by KASAN:
  =========================================================
  BUG: KASAN: slab-out-of-bounds in ecc_sw_hamming_calculate+0x1dc/0x7d0
  Read of size 4 at addr ffff888105594ff8 by task kworker/u8:4/128
  Workqueue: writeback wb_workfn (flush-ubifs_0_0)
  Call Trace:
    kasan_report.cold+0x81/0x165
    nand_write_page_swecc+0xa9/0x160
    ubifs_leb_write+0xf2/0x1b0 [ubifs]
    ubifs_wbuf_write_nolock+0x421/0x12c0 [ubifs]
    write_head+0xdc/0x1c0 [ubifs]
    ubifs_jnl_write_inode+0x627/0x960 [ubifs]
    wb_workfn+0x8af/0xb80&lt;/p&gt;
&lt;p&gt;Function ubifs_wbuf_write_nolock() accepts that parameter &amp;#39;len&amp;#39; is not 8
bytes aligned, the &amp;#39;len&amp;#39; represents the true length of buf (which is
alloca…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2021-47636</guid>
    </item>
  </channel>
</rss>
