# CVE-2026-45928: media: chips-media: wave5: Fix memory leak on codec_info allocation failure

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-27T12:17:47.075Z
- Modified: 2026-06-25T12:42:58.937Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: chips-media: wave5: Fix memory leak on codec_info allocation failure

In wave5_vpu_open_enc() and wave5_vpu_open_dec(), a vpu instance is
allocated via kzalloc(). If the subsequent allocation for inst->codec_info
fails, the functions return -ENOMEM without freeing the previously
allocated instance, causing a memory leak.

Fix this by calling kfree() on the instance in this error path to ensure
it is properly released.

(As written by CVE List.)

## Affected

- Linux Linux: from 9707a6254a8a6b978bde811a44fe07d86c229d1c before 52defdd4034db1a34bb48006f889d66a3629224b; from 9707a6254a8a6b978bde811a44fe07d86c229d1c before 1de71556cbd6e1d0d26fb86b9b3bb8caa0df8495; from 9707a6254a8a6b978bde811a44fe07d86c229d1c before 32e9e45cf7e3422d21fa64535588d3572faf71c3; from 9707a6254a8a6b978bde811a44fe07d86c229d1c before a519e21e32398459ba357e67b541402f7295ee1b; 6.8 (not affected: before 6.8; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 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.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/52defdd4034db1a34bb48006f889d66a3629224b> (patch)
- <https://git.kernel.org/stable/c/1de71556cbd6e1d0d26fb86b9b3bb8caa0df8495> (patch)
- <https://git.kernel.org/stable/c/32e9e45cf7e3422d21fa64535588d3572faf71c3> (patch)
- <https://git.kernel.org/stable/c/a519e21e32398459ba357e67b541402f7295ee1b> (patch)

## Sources

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

---

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