---
id: CVE-2022-40307
title: An issue was discovered in the Linux kernel through 5.19.8
summary: >-
  An issue was discovered in the Linux kernel through 5.19.8.
  drivers/firmware/efi/capsule-loader.c has a race condition with a resultant
  use-after-free.
severity: medium
cvss: 4.7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-362
vendor: linux
product: linux_kernel
affected:
  - linux_kernel <= 5.19.8
  - debian_linux = 10.0
  - debian_linux = 11.0
published: '2022-09-09'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T18:17:05.303'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-40307'
references:
  - url: >-
      https://github.com/torvalds/linux/commit/9cb636b5f6a8cc6d1b50809ec8f8d33ae0c84c95
    label: cve@mitre.org
  - url: 'https://lists.debian.org/debian-lts-announce/2022/10/msg00000.html'
    label: cve@mitre.org
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html'
    label: cve@mitre.org
  - url: 'https://www.debian.org/security/2022/dsa-5257'
    label: cve@mitre.org
  - url: >-
      https://github.com/torvalds/linux/commit/9cb636b5f6a8cc6d1b50809ec8f8d33ae0c84c95
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/10/msg00000.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00001.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2022/dsa-5257'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-794697.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-831302.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00211
epssPercentile: 0.11214
ingestedAt: '2026-10-14T18:47:39.270Z'
---

## Overview

An issue was discovered in the Linux kernel through 5.19.8. drivers/firmware/efi/capsule-loader.c has a race condition with a resultant use-after-free.

## Affected

- `linux_kernel <= 5.19.8`
- `debian_linux = 10.0`
- `debian_linux = 11.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
