---
id: CVE-2020-36785
title: |-
  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
summary: |-
  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 …
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-415
  - CWE-416
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.8, < 5.10.37'
  - 'linux_kernel >= 5.11, < 5.11.21'
  - 'linux_kernel >= 5.12, < 5.12.4'
patched:
  - linux_kernel 5.12.4
published: '2024-02-28'
updated: '2026-08-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2020-36785'
references:
  - url: 'https://git.kernel.org/stable/c/51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/801c1d505894008c888bc71d08d5cff5d87f8aba'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8267ccd7b9df7ab682043507dd682fe0621cf045'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ba11bbf303fafb33989e95473e409f6ab412b18d'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d218c7a0284f6b92a7b82d2e19706e18663b4193'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/801c1d505894008c888bc71d08d5cff5d87f8aba'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/8267ccd7b9df7ab682043507dd682fe0621cf045'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/ba11bbf303fafb33989e95473e409f6ab412b18d'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/d218c7a0284f6b92a7b82d2e19706e18663b4193'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00224
epssPercentile: 0.11654
ingestedAt: '2026-08-04T10:39:38.733Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 5.8, < 5.10.37`
- `linux_kernel >= 5.11, < 5.11.21`
- `linux_kernel >= 5.12, < 5.12.4`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.12.4`
