<?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://db.gcve.eu</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>Fri, 04 Dec 2026 19:21:00 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142987 — usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142987</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;usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF&lt;/p&gt;
&lt;p&gt;fsg_store_nofua() syncs the LUN&amp;#39;s backing file when switching from async
to sync mode:&lt;/p&gt;
&lt;p&gt;if (!nofua &amp;amp;&amp;amp; curlun-&amp;gt;nofua)
		fsg_lun_fsync_sub(curlun);&lt;/p&gt;
&lt;p&gt;fsg_lun_fsync_sub() dereferences curlun-&amp;gt;filp (vfs_fsync(filp)). Unlike
every other store that touches the backing file -- fsg_store_ro() and
fsg_store_cdrom() (down_read), fsg_store_file() (down_write) --
fsg_store_nofua() holds no filesem while doing so.&lt;/p&gt;
&lt;p&gt;A concurrent close of the backing file runs under down_write(filesem) and
does fput(curlun-&amp;gt;filp) in fsg_lun_close() (fsg_store_file() with an empty
path, the SCSI START_STOP eject in do_start_stop(), or forced_eject), so
it can free the file while fsg_store_nofua() is dereferencing it:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: slab-use-after-free in vfs_fsync+0x20/0xe0
	 vfs_fsync+0x20/0xe0
	 fsg_lun_fsync_sub+0xa0/0xd0
	 fsg_store_nofua+0x138/0x160
	 configfs_write_iter+0x1a7/0x250
	 vfs_write+0x5df/0x940
	Allocated by task 3459:
	 fsg_store_file+0x150/0x1f0
	 configfs_write_iter+0x1a7/0x250
	Freed by task 3459:
	 __fput+0x456/0x6c0
	 __fput_deferred+0x10d/0x330
	 fsg_store_file+0x9e/0x1f0
	 configfs_write_iter+0x1a7/0x250&lt;/p&gt;
&lt;p&gt;Hold filesem for read around the fsync in fsg_store_nofua() so the backing
file cannot be closed underneath it. The lock is only needed when the
fsync actually runs, so it is taken only in that branch.&lt;/p&gt;
&lt;p&gt;Reproduced on a mass_storage ga…&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;usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF&lt;/p&gt;
&lt;p&gt;fsg_store_nofua() syncs the LUN&amp;#39;s backing file when switching from async
to sync mode:&lt;/p&gt;
&lt;p&gt;if (!nofua &amp;amp;&amp;amp; curlun-&amp;gt;nofua)
		fsg_lun_fsync_sub(curlun);&lt;/p&gt;
&lt;p&gt;fsg_lun_fsync_sub() dereferences curlun-&amp;gt;filp (vfs_fsync(filp)). Unlike
every other store that touches the backing file -- fsg_store_ro() and
fsg_store_cdrom() (down_read), fsg_store_file() (down_write) --
fsg_store_nofua() holds no filesem while doing so.&lt;/p&gt;
&lt;p&gt;A concurrent close of the backing file runs under down_write(filesem) and
does fput(curlun-&amp;gt;filp) in fsg_lun_close() (fsg_store_file() with an empty
path, the SCSI START_STOP eject in do_start_stop(), or forced_eject), so
it can free the file while fsg_store_nofua() is dereferencing it:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: slab-use-after-free in vfs_fsync+0x20/0xe0
	 vfs_fsync+0x20/0xe0
	 fsg_lun_fsync_sub+0xa0/0xd0
	 fsg_store_nofua+0x138/0x160
	 configfs_write_iter+0x1a7/0x250
	 vfs_write+0x5df/0x940
	Allocated by task 3459:
	 fsg_store_file+0x150/0x1f0
	 configfs_write_iter+0x1a7/0x250
	Freed by task 3459:
	 __fput+0x456/0x6c0
	 __fput_deferred+0x10d/0x330
	 fsg_store_file+0x9e/0x1f0
	 configfs_write_iter+0x1a7/0x250&lt;/p&gt;
&lt;p&gt;Hold filesem for read around the fsync in fsg_store_nofua() so the backing
file cannot be closed underneath it. The lock is only needed when the
fsync actually runs, so it is taken only in that branch.&lt;/p&gt;
&lt;p&gt;Reproduced on a mass_storage ga…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142987</guid>
    </item>
  </channel>
</rss>
