CVE-2022-48670·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.19.10
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2022-48670 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 5.18
Until: 5.19.10
Fixed in: 5.19.10
How to fix this CVE
Update your Linux kernel to version 5.19.10 or later to resolve this use-after-free vulnerability in the PECI CPU auxiliary device handler. The fix prevents double-uninitialization of auxiliary devices that fail during registration, which could cause kernel memory corruption. Apply the update through your distribution's package manager and reboot your system to complete the remediation.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version with: uname -r — vulnerable versions are 5.18.x through 5.19.9
- Verify PECI (Platform Environment Control Interface) support is enabled: grep -i peci /boot/config-$(uname -r) or cat /proc/config.gz | gunzip | grep -i peci
- Search kernel logs for refcount underflow warnings: grep -i 'refcount_t: underflow' /var/log/kern.log or journalctl -k | grep -i 'refcount'
- Confirm the fix by checking if kernel version is 5.19.10 or later: uname -r | awk -F. '{if($1==5 && $2==19 && $3>=10) print "Patched"; else print "Vulnerable"}'
FAQ
What is CVE-2022-48670?
This vulnerability is a use-after-free condition in the Linux kernel's PECI (Platform Environment Control Interface) CPU driver that occurs when an auxiliary device registration fails, causing the kernel to attempt to uninitialize an already-freed memory structure, leading to potential system instability or privilege escalation.
Is CVE-2022-48670 being actively exploited?
No, CVE-2022-48670 is not listed in the CISA KEV catalog and has no publicly available exploits. However, the vulnerability should still be patched promptly due to its high CVSS score (7.8) and potential for kernel memory corruption.
What versions of Kernel are affected by CVE-2022-48670?
Linux kernel versions 5.18 through 5.19.9 are affected. The vulnerability was resolved in kernel 5.19.10 and later stable releases.
How do I check if my server is vulnerable to CVE-2022-48670?
Run 'uname -r' to display your kernel version — if it is 5.18.x through 5.19.9, you are vulnerable. Additionally, verify PECI support with 'grep PECI /boot/config-$(uname -r)' to confirm the affected module is compiled into your kernel.
Does Defensia detect CVE-2022-48670?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If a vulnerable kernel is running on a monitored server, CVE-2022-48670 will appear in your dashboard with remediation steps and patch commands.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48670. Free for 1 server.
Get started free