| Summary | In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vcodec: fix use-after-free in encoder release path The fops_vcodec_release() function frees the context structure (ctx) Race condition: CPU 0 (release path) CPU 1 (workqueue) Root cause: The v4l2_m2m_ctx_release() only waits for the m2m job The work is queued during encode operations via: This vulnerability was confirmed with KASAN by running an instrumented BUG: KASAN: slab-use-after-free in mtk_venc_worker+0x159/0x180 Workqueue: mtk_vcodec_enc_wq mtk_venc_worker Allocated by task 47: Freed by task 47: Fix this by calling cancel_work_sync(&ctx->encode_work) before kfree(ctx). Placement rationale: The fix is placed after v4l2_ctrl_handler_free() Note: The open error path does NOT need cancel_work_sync() because |
|---|---|
| Publication Date | April 25, 2026, 12:16 a.m. |
| Registration Date | April 25, 2026, 4:07 a.m. |
| Last Update | April 28, 2026, 12:16 a.m. |
| CVSS3.1 : HIGH | |
| スコア | 7.8 |
|---|---|
| Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 攻撃元区分(AV) | ローカル |
| 攻撃条件の複雑さ(AC) | 低 |
| 攻撃に必要な特権レベル(PR) | 低 |
| 利用者の関与(UI) | 不要 |
| 影響の想定範囲(S) | 変更なし |
| 機密性への影響(C) | 高 |
| 完全性への影響(I) | 高 |
| 可用性への影響(A) | 高 |
| Title | LinuxのLinux Kernelにおける解放済みメモリの使用に関する脆弱性 |
|---|---|
| Summary | Linuxカーネルにおいて、media: mediatek: vcodec コンポーネントのエンコーダの解放パスに存在する use-after-free 脆弱性が修正されました。fops_vcodec_release() 関数は、ctx-encode_work 内の保留中または実行中の作業をキャンセルする前にコンテキスト構造体(ctx)を解放しており、これにより作業キューのハンドラ(mtk_venc_worker)が解放済みのコンテキストメモリにアクセスするレースコンディションが発生していました。本脆弱性は、v4l2_m2m_ctx_release() が m2m ジョブのライフサイクルのみを待機し、作業キューのライフサイクルを考慮していなかったことに起因します。その結果、ジョブ完了後もワーカー関数が解放済みの ctx にアクセスする可能性がありました。修正として、kfree(ctx) の前に cancel_work_sync(&ctx-encode_work) を呼び出し、作業キューのハンドラをキャンセルし、かつ同期処理により安全に停止させてからコンテキストを解放します。これにより use-after-free を防止します。 |
| Possible impacts | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution | リリース情報、またはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。 |
| Publication Date | April 24, 2026, midnight |
| Registration Date | April 30, 2026, 12:33 p.m. |
| Last Update | April 30, 2026, 12:33 p.m. |
| Linux |
| Linux Kernel 6.12 以上 6.12.83 未満 |
| Linux Kernel 6.13 以上 6.18.24 未満 |
| Linux Kernel 6.19 以上 6.19.14 未満 |
| Linux Kernel 6.6.136 未満 |
| Linux Kernel 7.0 以上 7.0.1 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年04月30日] 掲載 |
April 30, 2026, 12:33 p.m. |