<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-05T04:35:49.827793+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-46011</id>
    <title>CVE-2026-46011 — media: mtk-jpeg: fix use-after-free in release path due to uncancelled work</title>
    <updated>2026-10-05T04:35:49.829605+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>media: mtk-jpeg: fix use-after-free in release path due to uncancelled work</p>
<p>The mtk_jpeg_release() function frees the context structure (ctx) without
first cancelling any pending or running work in ctx-&gt;jpeg_work. This
creates a race window where the workqueue callback may still be accessing
the context memory after it has been freed.</p>
<p>Race condition:</p>
<p>CPU 0 (release)                    CPU 1 (workqueue)
    ----------------                   ------------------
    close()
      mtk_jpeg_release()
                                       mtk_jpegenc_worker()
                                         ctx = work-&gt;data
                                         // accessing ctx</p>
<p>kfree(ctx)  // freed!
                                         access ctx  // UAF!</p>
<p>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.</p>
<p>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.</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-46011"/>
  </entry>
</feed>
