Linux Kernel Rockchip RGA Media Buffer Initialization ERR_PTR Dereference Vulnerability

Vulnerability

A vulnerability exists in the Linux kernel's handling of media buffers for Rockchip's RGA (Raster Graphics Accelerator) component. The issue arises in the buffer initialization function, rga_buf_init(), which fails to properly validate the return value of rga_get_frame(). This function can return an error pointer indicating an invalid or unsupported buffer type. The lack of validation leads to an unintentional dereference of the pointer, potentially causing a crash or other unintended behavior. This vulnerability affects several versions of the Linux kernel.

Impact

The vulnerability can lead to a null pointer dereference, causing a kernel crash. In some cases, such dereferences can be exploited to execute arbitrary code in the kernel context.

Reproduction

To reproduce this vulnerability, attempt to initialize a buffer with an unsupported or invalid type in the Rockchip RGA media component. The rga_buf_init() function will unconditionally dereference the error pointer returned by rga_get_frame(), leading to a crash.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.

Added: May 8, 2026, 4:35 PM
Updated: May 8, 2026, 4:35 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
7.8
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.