5.5medium
media: rockchip: rga: Fix possible ERR_PTR dereference in rga_buf_init()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: media: rockchip: rga: Fix possible ERR_PTR dereference in rga_buf_init() rga_get_frame() can return ERR_PTR(-EINVAL) when buffer type is unsupported or invalid. rga_buf_init() does not check the return value and unconditionally dereferences the pointer when accessing f->size. Add proper ERR_PTR checking and return the error to prevent dereferencing an invalid pointer.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 6040702ade234c8212dcfdef85e2f5549aa2f0f5 before 5da29ade540b51763b950987bd410add7edaf3d1, from 6040702ade234c8212dcfdef85e2f5549aa2f0f5 before 1af2853b4e97fd95262fdef311b2334337069bc9, from 6040702ade234c8212dcfdef85e2f5549aa2f0f5 before aa22221c5dc695a3d479e1e1b63f0c0e9eb29dbf, from 6040702ade234c8212dcfdef85e2f5549aa2f0f5 before 81f8e0e6a2e115df9274d0289779f8fca694479c, 6.8 Not affected: before 6.8, from 6.12.75 up to 6.12.*, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.8 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: media: rockchip: rga: Fix possible ERR_PTR dereference in rga_buf_init() rga_get_frame() can return ERR_PTR(-EINVAL) when buffer type is unsupported or invalid. rga_buf_init() does not check the return value and unconditionally dereferences the pointer when accessing f->size. Add proper ERR_PTR checking and return the error to prevent dereferencing an invalid pointer.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: rockchip: rga: Corrección de posible desreferencia de ERR_PTR en rga_buf_init() rga_get_frame() puede devolver ERR_PTR(-EINVAL) cuando el tipo de búfer no es compatible o es inválido. rga_buf_init() no comprueba el valor de retorno y desreferencia incondicionalmente el puntero al acceder a f -> size. Añadir una comprobación adecuada de ERR_PTR y devolver el error para evitar la desreferencia de un puntero inválido.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43297 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43297 changed 2026-11-11 | Public domain |