# CVE-2022-48670: peci: cpu: Fix use-after-free in adev_release()

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-03T14:49:54.401Z
- Modified: 2026-08-13T00:17:25.897Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 93e1821c80f9460c8931dc4bc090ede794f966cd before c87f1f99e26ea4ae08cabe753ae98e5626bdba89; from 93e1821c80f9460c8931dc4bc090ede794f966cd before 1c11289b34ab67ed080bbe0f1855c4938362d9cf; 5.18 (not affected: before 5.18; from 5.19.10 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: -1da177e4c3f4; from 5.18 before 5.19.10; 6.0 (not affected: -5.19.10; -6.0)

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c87f1f99e26ea4ae08cabe753ae98e5626bdba89> (patch)
- <https://git.kernel.org/stable/c/1c11289b34ab67ed080bbe0f1855c4938362d9cf> (patch)

## Sources

- CVE List: [CVE-2022-48670](https://www.cve.org/CVERecord?id=CVE-2022-48670), CVE Terms of Use, modified 2026-08-12
- NVD: [CVE-2022-48670](https://nvd.nist.gov/vuln/detail/CVE-2022-48670), Public domain, modified 2026-08-13

---

Page: https://cve.day/CVE-2022-48670 · Whole record: https://cve.day/CVE-2022-48670.json · Rebuilt by cve.day 2026-11-25T22:58:19.794Z
