<?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, 05 Oct 2026 04:35:49 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-46011 — media: mtk-jpeg: fix use-after-free in release path due to uncancelled work</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-46011</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;media: mtk-jpeg: fix use-after-free in release path due to uncancelled work&lt;/p&gt;
&lt;p&gt;The mtk_jpeg_release() function frees the context structure (ctx) without
first cancelling any pending or running work in ctx-&amp;gt;jpeg_work. This
creates a race window where the workqueue callback may still be accessing
the context memory after it has been freed.&lt;/p&gt;
&lt;p&gt;Race condition:&lt;/p&gt;
&lt;p&gt;CPU 0 (release)                    CPU 1 (workqueue)
    ----------------                   ------------------
    close()
      mtk_jpeg_release()
                                       mtk_jpegenc_worker()
                                         ctx = work-&amp;gt;data
                                         // accessing ctx&lt;/p&gt;
&lt;p&gt;kfree(ctx)  // freed!
                                         access ctx  // UAF!&lt;/p&gt;
&lt;p&gt;The work is queued via queue_work() during JPEG encode/decode operations
(via mtk_jpeg_device_run). If the device is closed while work is pending
or running, the work handler will access freed memory.&lt;/p&gt;
&lt;p&gt;Fix this by calling cancel_work_sync() BEFORE acquiring the mutex. This
ordering is critical: if cancel_work_sync() is called after mutex_lock(),
and the work handler also tries to acquire the same mutex, it would cause
a deadlock.&lt;/p&gt;
&lt;p&gt;Note: The open error path does NOT need cancel_work_sync() because
INIT_WORK() only initializes the work structure - it does not schedule
it. Work is only scheduled later during ioctl operations.&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;media: mtk-jpeg: fix use-after-free in release path due to uncancelled work&lt;/p&gt;
&lt;p&gt;The mtk_jpeg_release() function frees the context structure (ctx) without
first cancelling any pending or running work in ctx-&amp;gt;jpeg_work. This
creates a race window where the workqueue callback may still be accessing
the context memory after it has been freed.&lt;/p&gt;
&lt;p&gt;Race condition:&lt;/p&gt;
&lt;p&gt;CPU 0 (release)                    CPU 1 (workqueue)
    ----------------                   ------------------
    close()
      mtk_jpeg_release()
                                       mtk_jpegenc_worker()
                                         ctx = work-&amp;gt;data
                                         // accessing ctx&lt;/p&gt;
&lt;p&gt;kfree(ctx)  // freed!
                                         access ctx  // UAF!&lt;/p&gt;
&lt;p&gt;The work is queued via queue_work() during JPEG encode/decode operations
(via mtk_jpeg_device_run). If the device is closed while work is pending
or running, the work handler will access freed memory.&lt;/p&gt;
&lt;p&gt;Fix this by calling cancel_work_sync() BEFORE acquiring the mutex. This
ordering is critical: if cancel_work_sync() is called after mutex_lock(),
and the work handler also tries to acquire the same mutex, it would cause
a deadlock.&lt;/p&gt;
&lt;p&gt;Note: The open error path does NOT need cancel_work_sync() because
INIT_WORK() only initializes the work structure - it does not schedule
it. Work is only scheduled later during ioctl operations.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-46011</guid>
    </item>
  </channel>
</rss>
