# CVE-2020-36786: media: [next] staging: media: atomisp: fix memory leak of object flash

- 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.22%, higher than 13% of CVEs (2026-12-02)
- Published: 2024-02-28T08:13:06.648Z
- Modified: 2026-06-17T03:16:14.263Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

media: [next] staging: media: atomisp: fix memory leak of object flash

In the case where the call to lm3554_platform_data_func returns an
error there is a memory leak on the error return path of object
flash.  Fix this by adding an error return path that will free
flash and rename labels fail2 to fail3 and fail1 to fail2.

(As written by CVE List.)

## Affected

- Linux Linux: from 9289cdf399922a1bd801a8cd946a79581c00a380 before cc4cc2fb5aaf9adb83c02211eb13b16cfcb7ba64; from 9289cdf399922a1bd801a8cd946a79581c00a380 before 4f0f37d03cde8f4341df8454f9b40a67fda94a33; from 9289cdf399922a1bd801a8cd946a79581c00a380 before 27d2eab69f7da8e94e4751ac5c6d22d809275484; from 9289cdf399922a1bd801a8cd946a79581c00a380 before 6045b01dd0e3cd3759eafe7f290ed04c957500b1; 5.10 (not affected: before 5.10; from 5.10.37 up to 5.10.*; from 5.11.21 up to 5.11.*; from 5.12.4 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.10 before 5.10.37; from 5.11 before 5.11.21; from 5.12 before 5.12.4

## References

- <https://git.kernel.org/stable/c/cc4cc2fb5aaf9adb83c02211eb13b16cfcb7ba64> (patch)
- <https://git.kernel.org/stable/c/4f0f37d03cde8f4341df8454f9b40a67fda94a33> (patch)
- <https://git.kernel.org/stable/c/27d2eab69f7da8e94e4751ac5c6d22d809275484> (patch)
- <https://git.kernel.org/stable/c/6045b01dd0e3cd3759eafe7f290ed04c957500b1> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2020-36786 · Whole record: https://cve.day/CVE-2020-36786.json · Rebuilt by cve.day 2026-11-25T22:57:58.950Z
