Bug 1220576 (CVE-2020-36785)

Summary: VUL-0: CVE-2020-36785: kernel: media: atomisp: fix use after free in atomisp_alloc_css_stat_bufs()
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED INVALID QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: andrea.mattiazzo, mhocko
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/395422/
Whiteboard:
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-02-28 15:01:38 UTC
In the Linux kernel, the following vulnerability has been resolved:

media: atomisp: Fix use after free in atomisp_alloc_css_stat_bufs()

The "s3a_buf" is freed along with all the other items on the
"asd->s3a_stats" list.  It leads to a double free and a use after free.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-36785
https://www.cve.org/CVERecord?id=CVE-2020-36785
https://lore.kernel.org/linux-cve-announce/2024022821-CVE-2020-36785-96c7@gregkh/T/#u

Patch:
https://git.kernel.org/stable/c/ba11bbf303fafb33989e95473e409f6ab412b18d
Comment 1 Andrea Mattiazzo 2024-02-28 15:02:05 UTC
Closing since all code streams are not affected or already fixed.
Comment 3 Michal Hocko 2024-04-26 17:02:27 UTC
Staging drivers are not supported so this should be really closed as invalid.