<?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>Mon, 28 Sep 2026 09:29:42 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-53481 — ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-53481</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;ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed&lt;/p&gt;
&lt;p&gt;Following process will trigger an infinite loop in ubi_wl_put_peb():&lt;/p&gt;
&lt;p&gt;ubifs_bgt		ubi_bgt
ubifs_leb_unmap
  ubi_leb_unmap
    ubi_eba_unmap_leb
      ubi_wl_put_peb	wear_leveling_worker
                          e1 = rb_entry(rb_first(&amp;amp;ubi-&amp;gt;used)
			  e2 = get_peb_for_wl(ubi)
			  ubi_io_read_vid_hdr  // return err (flash fault)
			  out_error:
			    ubi-&amp;gt;move_from = ubi-&amp;gt;move_to = NULL
			    wl_entry_destroy(ubi, e1)
			      ubi-&amp;gt;lookuptbl[e-&amp;gt;pnum] = NULL
      retry:
        e = ubi-&amp;gt;lookuptbl[pnum];	// return NULL
	if (e == ubi-&amp;gt;move_from) {	// NULL == NULL gets true
	  goto retry;			// infinite loop !!!&lt;/p&gt;
&lt;p&gt;$ top
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     COMMAND
  7676 root     20   0       0      0      0 R 100.0  0.0  ubifs_bgt0_0&lt;/p&gt;
&lt;p&gt;Fix it by:
 1) Letting ubi_wl_put_peb() returns directly if wearl leveling entry has
    been removed from &amp;#39;ubi-&amp;gt;lookuptbl&amp;#39;.
 2) Using &amp;#39;ubi-&amp;gt;wl_lock&amp;#39; protecting wl entry deletion to preventing an
    use-after-free problem for wl entry in ubi_wl_put_peb().&lt;/p&gt;
&lt;p&gt;Fetch a reproducer in [Link].&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;ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed&lt;/p&gt;
&lt;p&gt;Following process will trigger an infinite loop in ubi_wl_put_peb():&lt;/p&gt;
&lt;p&gt;ubifs_bgt		ubi_bgt
ubifs_leb_unmap
  ubi_leb_unmap
    ubi_eba_unmap_leb
      ubi_wl_put_peb	wear_leveling_worker
                          e1 = rb_entry(rb_first(&amp;amp;ubi-&amp;gt;used)
			  e2 = get_peb_for_wl(ubi)
			  ubi_io_read_vid_hdr  // return err (flash fault)
			  out_error:
			    ubi-&amp;gt;move_from = ubi-&amp;gt;move_to = NULL
			    wl_entry_destroy(ubi, e1)
			      ubi-&amp;gt;lookuptbl[e-&amp;gt;pnum] = NULL
      retry:
        e = ubi-&amp;gt;lookuptbl[pnum];	// return NULL
	if (e == ubi-&amp;gt;move_from) {	// NULL == NULL gets true
	  goto retry;			// infinite loop !!!&lt;/p&gt;
&lt;p&gt;$ top
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     COMMAND
  7676 root     20   0       0      0      0 R 100.0  0.0  ubifs_bgt0_0&lt;/p&gt;
&lt;p&gt;Fix it by:
 1) Letting ubi_wl_put_peb() returns directly if wearl leveling entry has
    been removed from &amp;#39;ubi-&amp;gt;lookuptbl&amp;#39;.
 2) Using &amp;#39;ubi-&amp;gt;wl_lock&amp;#39; protecting wl entry deletion to preventing an
    use-after-free problem for wl entry in ubi_wl_put_peb().&lt;/p&gt;
&lt;p&gt;Fetch a reproducer in [Link].&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-53481</guid>
    </item>
  </channel>
</rss>
