{"id":"CVE-2021-47655","aliases":["CVE-2021-47655"],"related":[],"kind":"vulnerability","state":"published","title":"media: venus: vdec: fixed possible memory leak issue","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: venus: vdec: fixed possible memory leak issue\n\nThe venus_helper_alloc_dpb_bufs() implementation allows an early return\non an error path when checking the id from ida_alloc_min() which would\nnot release the earlier buffer allocation.\n\nMove the direct kfree() from the error checking of dma_alloc_attrs() to\nthe common fail path to ensure that allocations are released on all\nerror paths in this function.\n\nAddresses-Coverity: 1494120 (\"Resource leak\")","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: venus: vdec: fixed possible memory leak issue\n\nThe venus_helper_alloc_dpb_bufs() implementation allows an early return\non an error path when checking the id from ida_alloc_min() which would\nnot release the earlier buffer allocation.\n\nMove the direct kfree() from the error checking of dma_alloc_attrs() to\nthe common fail path to ensure that allocations are released on all\nerror paths in this function.\n\nAddresses-Coverity: 1494120 (\"Resource leak\")","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: venus: vdec: se ha corregido un posible problema de pérdida de memoria La implementación de venus_helper_alloc_dpb_bufs() permite un retorno temprano a una ruta de error al verificar el id de ida_alloc_min(), lo que no liberaría la asignación de búfer anterior. Mueva el kfree() directo de la verificación de errores de dma_alloc_attrs() a la ruta de error común para garantizar que se liberen las asignaciones en todas las rutas de error en esta función. Addresses-Coverity: 1494120 (\"Fuga de recursos\")","source":"nvd"}],"published":"2025-02-26T01:54:19.584Z","modified":"2026-06-17T04:18:15.527Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"745e6d8bbe6a6e2e40b1609cea114c129f17031a","fixed":"5cedfe8aaf1875a5305897107b7f298db4260019","status":"affected"},{"type":"git","introduced":"40d87aafee29fb01ce1e1868502fb2059a6a7f34","fixed":"55bccafc246b2e64763a155ec454470c07a54a6e","status":"affected"},{"type":"git","introduced":"40d87aafee29fb01ce1e1868502fb2059a6a7f34","fixed":"5f89d05ba93df9c2cdfe493843f93288e55e99eb","status":"affected"},{"type":"git","introduced":"40d87aafee29fb01ce1e1868502fb2059a6a7f34","fixed":"8403fdd775858a7bf04868d43daea0acbe49ddfc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","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":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5cedfe8aaf1875a5305897107b7f298db4260019","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/55bccafc246b2e64763a155ec454470c07a54a6e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f89d05ba93df9c2cdfe493843f93288e55e99eb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8403fdd775858a7bf04868d43daea0acbe49ddfc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:50:14.184Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47655","url":"https://www.cve.org/CVERecord?id=CVE-2021-47655","licence":"CVE Terms of Use","modified":"2026-05-11T13:58:42.260Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47655","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47655","licence":"Public domain","modified":"2026-06-17T04:18:15.527Z"}],"updatedAt":"2026-11-25T22:58:09.008Z","epss":{"score":0.00246,"percentile":0.16957,"date":"2026-12-01T12:00:22.000Z"}}