# CVE-2026-43297: media: rockchip: rga: Fix possible ERR_PTR dereference in rga_buf_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-08T13:11:19.530Z
- Modified: 2026-11-11T20:10:00.273Z
- Weaknesses: CWE-476
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.8 before 6.12.75; from 6.13 before 6.18.16; from 6.19 before 6.19.6

## References

- <https://git.kernel.org/stable/c/5da29ade540b51763b950987bd410add7edaf3d1> (patch)
- <https://git.kernel.org/stable/c/1af2853b4e97fd95262fdef311b2334337069bc9> (patch)
- <https://git.kernel.org/stable/c/aa22221c5dc695a3d479e1e1b63f0c0e9eb29dbf> (patch)
- <https://git.kernel.org/stable/c/81f8e0e6a2e115df9274d0289779f8fca694479c> (patch)

## Sources

- CVE List: [CVE-2026-43297](https://www.cve.org/CVERecord?id=CVE-2026-43297), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-43297](https://nvd.nist.gov/vuln/detail/CVE-2026-43297), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-43297 · Whole record: https://cve.day/CVE-2026-43297.json · Rebuilt by cve.day 2026-11-25T22:59:20.979Z
