{"id":"CVE-2025-38225","summary":"media: imx-jpeg: Cleanup after an allocation error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: imx-jpeg: Cleanup after an allocation error\n\nWhen allocation failures are not cleaned up by the driver, further\nallocation errors will be false-positives, which will cause buffers to\nremain uninitialized and cause NULL pointer dereferences.\nEnsure proper cleanup of failed allocations to prevent these issues.","modified":"2026-04-16T04:38:11.260559421Z","published":"2025-07-04T13:37:40.205Z","related":["SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38225.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0ee9469f818a0b4de3c0e7aecd733c103820d181"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d0efe7d35c75394f32ff9d0650a007642d23857"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7500bb9cf164edbb2c8117d57620227b1a4a8369"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b89ff9cf37ff59399f850d5f7781ef78fc37679f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ec26be7d6355a05552a0d0c1e73031f83aa4dc7f"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38225.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38225"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2db16c6ed72ce644d5639b3ed15e5817442db4ba"},{"fixed":"b89ff9cf37ff59399f850d5f7781ef78fc37679f"},{"fixed":"ec26be7d6355a05552a0d0c1e73031f83aa4dc7f"},{"fixed":"0ee9469f818a0b4de3c0e7aecd733c103820d181"},{"fixed":"6d0efe7d35c75394f32ff9d0650a007642d23857"},{"fixed":"7500bb9cf164edbb2c8117d57620227b1a4a8369"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38225.json"}}],"schema_version":"1.7.5"}