---
id: CVE-2022-48670
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  peci: cpu: Fix use-after-free in adev_release()

  When auxiliary_device_add() returns an error, auxiliary_device_uninit()
  is called, which causes refcount for device to …
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  peci: cpu: Fix use-after-free in adev_release()

  When auxiliary_device_add() returns an error, auxiliary_device_uninit()
  is called, which causes refcount for device to …
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 >= 5.18, < 5.19.10'
  - linux_kernel = 6.0
patched:
  - linux_kernel 5.19.10
published: '2024-05-03'
updated: '2026-08-13'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-48670'
references:
  - url: 'https://git.kernel.org/stable/c/1c11289b34ab67ed080bbe0f1855c4938362d9cf'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c87f1f99e26ea4ae08cabe753ae98e5626bdba89'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1c11289b34ab67ed080bbe0f1855c4938362d9cf'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/c87f1f99e26ea4ae08cabe753ae98e5626bdba89'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00216
epssPercentile: 0.12334
ingestedAt: '2026-08-13T00:57:21.887Z'
---

## Overview

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

peci: cpu: Fix use-after-free in adev_release()

When auxiliary_device_add() returns an error, auxiliary_device_uninit()
is called, which causes refcount for device to be decremented and
.release callback will be triggered.

Because adev_release() re-calls auxiliary_device_uninit(), it will cause
use-after-free:
[ 1269.455172] WARNING: CPU: 0 PID: 14267 at lib/refcount.c:28 refcount_warn_saturate+0x110/0x15
[ 1269.464007] refcount_t: underflow; use-after-free.

## Affected

- `linux_kernel >= 5.18, < 5.19.10`
- `linux_kernel = 6.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.19.10`
