---
id: CVE-2022-4095
title: A use-after-free flaw was found in Linux kernel before 5.19.2
summary: >-
  A use-after-free flaw was found in Linux kernel before 5.19.2. This issue
  occurs in cmd_hdl_filter in drivers/staging/rtl8712/rtl8712_cmd.c, allowing an
  attacker to launch a local denial of service attack and gain escalation of
  privileges.
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-416
  - CWE-416
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 2.6.37, < 4.9.328'
  - 'linux_kernel >= 4.10, < 4.14.293'
  - 'linux_kernel >= 4.15, < 4.19.258'
  - 'linux_kernel >= 4.20, < 5.4.213'
  - 'linux_kernel >= 5.5, < 5.10.142'
  - 'linux_kernel >= 5.11, < 5.15.66'
  - 'linux_kernel >= 5.16, < 5.19.8'
  - linux_kernel = 6.0
patched:
  - linux_kernel 5.19.8
published: '2023-03-22'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T14:17:27.913'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-4095'
references:
  - url: >-
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c53b3dcb9942b8ed7f81ee3921c4085d87070c73
    label: secalert@redhat.com
  - url: 'https://security.netapp.com/advisory/ntap-20230420-0005/'
    label: secalert@redhat.com
  - url: >-
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c53b3dcb9942b8ed7f81ee3921c4085d87070c73
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20230420-0005/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-794697.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
epss: 0.00258
epssPercentile: 0.162
ingestedAt: '2026-10-14T15:36:13.930Z'
---

## Overview

A use-after-free flaw was found in Linux kernel before 5.19.2. This issue occurs in cmd_hdl_filter in drivers/staging/rtl8712/rtl8712_cmd.c, allowing an attacker to launch a local denial of service attack and gain escalation of privileges.

## Affected

- `linux_kernel >= 2.6.37, < 4.9.328`
- `linux_kernel >= 4.10, < 4.14.293`
- `linux_kernel >= 4.15, < 4.19.258`
- `linux_kernel >= 4.20, < 5.4.213`
- `linux_kernel >= 5.5, < 5.10.142`
- `linux_kernel >= 5.11, < 5.15.66`
- `linux_kernel >= 5.16, < 5.19.8`
- `linux_kernel = 6.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.19.8`
