Kernel memory corruption via decoder cleanup race
Published Feb 29, 2024 · Updated Aug 5, 2026
Use-after-free in the Linux mtk-jpeg decoder from 4.12 allows local users to trigger unsafe kernel memory access during decoder cleanup. The error path in mtk_jpeg_dec_device_run starts job_timeout_work after mtk_jpeg_set_dec_dst fails, although v4l2_m2m_job_finish has ended the job. Closing the decoder file descriptor or removing the module can free m2m_dev before the timeout worker reads curr_ctx, causing memory corruption or a kernel crash.
Summary
What happened
Use-after-free in the Linux mtk-jpeg decoder from 4.12 allows local users to trigger unsafe kernel memory access during decoder cleanup. The error path in mtk_jpeg_dec_device_run starts job_timeout_work after mtk_jpeg_set_dec_dst fails, although v4l2_m2m_job_finish has ended the job. Closing the decoder file descriptor or removing the module can free m2m_dev before the timeout worker reads curr_ctx, causing memory corruption or a kernel crash.
The record
- CVE
- CVE-2023-52491
- Published
- Feb 29, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 29, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.12
- Affected versionversion=b2f0d2724ba477d326e9d654d4db1c93e98f8b93 <1b1036c60a37a30caf6759a90fe5ecd06ec35590
- Affected versionversion=b2f0d2724ba477d326e9d654d4db1c93e98f8b93 <206c857dd17d4d026de85866f1b5f0969f2a109e
- Affected versionversion=b2f0d2724ba477d326e9d654d4db1c93e98f8b93 <43872f44eee6c6781fea1348b38885d8e78face9
- Affected versionversion=b2f0d2724ba477d326e9d654d4db1c93e98f8b93 <6e2f37022f0fc0893da4d85a0500c9d547fffd4c
- Affected versionversion=b2f0d2724ba477d326e9d654d4db1c93e98f8b93 <8254d54d00eb6cdb8367399c7f912eb8d354ecd7
- Affected versionversion=b2f0d2724ba477d326e9d654d4db1c93e98f8b93 <9fec4db7fff54d9b0306a332bab31eac47eeb5f6
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo