{"id":"CVE-2025-23157","aliases":["CVE-2025-23157"],"related":[],"kind":"vulnerability","state":"published","title":"media: venus: hfi_parser: add check to avoid out of bound access","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: venus: hfi_parser: añadir comprobación para evitar accesos fuera de los límites. Existe la posibilidad de que init_codecs se invoque varias veces durante la manipulación de la carga útil del firmware de vídeo. En tal caso, si codecs_count se incrementa a un valor superior a MAX_CODEC_NUM, puede haber accesos fuera de los límites. Restablezca el contador para que siempre comience desde el principio.","source":"nvd"}],"published":"2025-05-01T12:55:43.193Z","modified":"2026-08-05T11:57:08.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"e5133a0b25463674903fdc0528e0a29b7267130e","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"2b8b9ea4e26a501eb220ea189e42b4527e65bdfa","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"1ad6aa1464b8a5ce5c194458315021e8d216108e","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"26bbedd06d85770581fda5d78e78539bb088fad1","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"53e376178ceacca3ef1795038b22fc9ef45ff1d3","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"b2541e29d82da8a0df728aadec3e0a8db55d517b","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"cb5be9039f91979f8a2fac29f529f746d7848f3e","status":"affected"},{"type":"git","introduced":"1a73374a04e555103e5369429a30999114001dda","fixed":"172bf5a9ef70a399bb227809db78442dc01d9e48","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.4.293","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.237","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.181","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.135","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.88","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.24","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.12","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.3","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19","fixed":"5.4.293"},{"status":"affected","introduced":"5.5","fixed":"5.10.237"},{"status":"affected","introduced":"5.11","fixed":"5.15.181"},{"status":"affected","introduced":"5.16","fixed":"6.1.135"},{"status":"affected","introduced":"6.2","fixed":"6.6.88"},{"status":"affected","introduced":"6.7","fixed":"6.12.24"},{"status":"affected","introduced":"6.13","fixed":"6.13.12"},{"status":"affected","introduced":"6.14","fixed":"6.14.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e5133a0b25463674903fdc0528e0a29b7267130e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b8b9ea4e26a501eb220ea189e42b4527e65bdfa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ad6aa1464b8a5ce5c194458315021e8d216108e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/26bbedd06d85770581fda5d78e78539bb088fad1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d4d88ece4ba91df5b02f1d3f599650f9e9fc0f45","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/53e376178ceacca3ef1795038b22fc9ef45ff1d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2541e29d82da8a0df728aadec3e0a8db55d517b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb5be9039f91979f8a2fac29f529f746d7848f3e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/172bf5a9ef70a399bb227809db78442dc01d9e48","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["mailing-list"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":["mailing-list"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-23157","url":"https://www.cve.org/CVERecord?id=CVE-2025-23157","licence":"CVE Terms of Use","modified":"2026-08-05T11:57:08.273Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-23157","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23157","licence":"Public domain","modified":"2026-07-30T06:22:17.673Z"}],"updatedAt":"2026-11-25T22:58:57.271Z","epss":{"score":0.00228,"percentile":0.14508,"date":"2026-12-01T12:00:22.000Z"}}