{"id":"CVE-2025-23157","summary":"media: venus: hfi_parser: add check to avoid out of bound access","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: venus: hfi_parser: add check to avoid out of bound access\n\nThere is a possibility that init_codecs is invoked multiple times during\nmanipulated payload from video firmware. In such case, if codecs_count\ncan get incremented to value more than MAX_CODEC_NUM, there can be OOB\naccess. Reset the count so that it always starts from beginning.","modified":"2026-04-02T12:45:23.760894Z","published":"2025-05-01T12:55:43.193Z","related":["SUSE-SU-2025:01964-1","SUSE-SU-2025:01965-1","SUSE-SU-2025:02000-1","SUSE-SU-2025:02254-1","SUSE-SU-2025:02307-1","SUSE-SU-2025:02333-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:20408-1","SUSE-SU-2025:20413-1","SUSE-SU-2025:20419-1","SUSE-SU-2025:20421-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23157.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/172bf5a9ef70a399bb227809db78442dc01d9e48"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1ad6aa1464b8a5ce5c194458315021e8d216108e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/26bbedd06d85770581fda5d78e78539bb088fad1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b8b9ea4e26a501eb220ea189e42b4527e65bdfa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/53e376178ceacca3ef1795038b22fc9ef45ff1d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2541e29d82da8a0df728aadec3e0a8db55d517b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cb5be9039f91979f8a2fac29f529f746d7848f3e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e5133a0b25463674903fdc0528e0a29b7267130e"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/23xxx/CVE-2025-23157.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23157"},{"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":"1a73374a04e555103e5369429a30999114001dda"},{"fixed":"e5133a0b25463674903fdc0528e0a29b7267130e"},{"fixed":"2b8b9ea4e26a501eb220ea189e42b4527e65bdfa"},{"fixed":"1ad6aa1464b8a5ce5c194458315021e8d216108e"},{"fixed":"26bbedd06d85770581fda5d78e78539bb088fad1"},{"fixed":"d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45"},{"fixed":"53e376178ceacca3ef1795038b22fc9ef45ff1d3"},{"fixed":"b2541e29d82da8a0df728aadec3e0a8db55d517b"},{"fixed":"cb5be9039f91979f8a2fac29f529f746d7848f3e"},{"fixed":"172bf5a9ef70a399bb227809db78442dc01d9e48"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-23157.json"}}],"schema_version":"1.7.5"}