<?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>Fri, 02 Oct 2026 16:00:40 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-31584 — media: mediatek: vcodec: fix use-after-free in encoder release path</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-31584</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: mediatek: vcodec: fix use-after-free in encoder release path&lt;/p&gt;
&lt;p&gt;The fops_vcodec_release() function frees the context structure (ctx)
without first cancelling any pending or running work in ctx-&amp;gt;encode_work.
This creates a race window where the workqueue handler (mtk_venc_worker)
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 path)               CPU 1 (workqueue)
    ---------------------               ------------------
    fops_vcodec_release()
      v4l2_m2m_ctx_release()
        v4l2_m2m_cancel_job()
        // waits for m2m job &amp;#34;done&amp;#34;
                                        mtk_venc_worker()
                                          v4l2_m2m_job_finish()
                                          // m2m job &amp;#34;done&amp;#34;
                                          // BUT worker still running!
                                          // post-job_finish access:
                                        other ctx dereferences
                                          // UAF if ctx already freed
        // returns (job &amp;#34;done&amp;#34;)
      kfree(ctx)  // ctx freed&lt;/p&gt;
&lt;p&gt;Root cause: The v4l2_m2m_ctx_release() only waits for the m2m job
lifecycle (via TRANS_RUNNING flag), not the workqueue lifecycle.
After v4l2_m2m_job_finish() is called, the m2m framework considers
the job complete and v4l2_m2m_ctx_release() returns, but the worker
function continues executing and may s…&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: mediatek: vcodec: fix use-after-free in encoder release path&lt;/p&gt;
&lt;p&gt;The fops_vcodec_release() function frees the context structure (ctx)
without first cancelling any pending or running work in ctx-&amp;gt;encode_work.
This creates a race window where the workqueue handler (mtk_venc_worker)
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 path)               CPU 1 (workqueue)
    ---------------------               ------------------
    fops_vcodec_release()
      v4l2_m2m_ctx_release()
        v4l2_m2m_cancel_job()
        // waits for m2m job &amp;#34;done&amp;#34;
                                        mtk_venc_worker()
                                          v4l2_m2m_job_finish()
                                          // m2m job &amp;#34;done&amp;#34;
                                          // BUT worker still running!
                                          // post-job_finish access:
                                        other ctx dereferences
                                          // UAF if ctx already freed
        // returns (job &amp;#34;done&amp;#34;)
      kfree(ctx)  // ctx freed&lt;/p&gt;
&lt;p&gt;Root cause: The v4l2_m2m_ctx_release() only waits for the m2m job
lifecycle (via TRANS_RUNNING flag), not the workqueue lifecycle.
After v4l2_m2m_job_finish() is called, the m2m framework considers
the job complete and v4l2_m2m_ctx_release() returns, but the worker
function continues executing and may s…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-31584</guid>
    </item>
  </channel>
</rss>
