# CVE-2022-48764: KVM: x86: Free kvm\_cpuid\_entry2 array on post-KVM\_RUN KVM\_SET\_CPUID{,2}

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-06-20T11:13:41.170Z
- **Modified:** 2026-06-17T05:16:08.260Z

## Who should check

- Anyone running Linux \>= 24e7590c60aa9487b8e43583dc9885f62f8216c1, \< b9ee734a14bb685b2088f2176d82b34cb4e30dbc; \>= c6617c61e8fe44b9e9fdfede921f61cac6b5149d, \< 811f95ff95270e6048197821434d9301e3d7f07c
- Anyone running Linux \>= 5.16.3, \< 5.16.5

## Description

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

KVM: x86: Free kvm\_cpuid\_entry2 array on post-KVM\_RUN KVM\_SET\_CPUID{,2}

Free the "struct kvm\_cpuid\_entry2" array on successful post-KVM\_RUN
KVM\_SET\_CPUID{,2} to fix a memory leak, the callers of kvm\_set\_cpuid()
free the array only on failure.

 BUG: memory leak
 unreferenced object 0xffff88810963a800 (size 2048):
  comm "syz-executor025", pid 3610, jiffies 4294944928 (age 8.080s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00  ................
    47 65 6e 75 6e 74 65 6c 69 6e 65 49 00 00 00 00  GenuntelineI....
  backtrace:
    \[\<ffffffff814948ee\>\] kmalloc\_node include/linux/slab.h:604 \[inline\]
    \[\<ffffffff814948ee\>\] kvmalloc\_node+0x3e/0x100 mm/util.c:580
    \[\<ffffffff814950f2\>\] kvmalloc include/linux/slab.h:732 \[inline\]
    \[\<ffffffff814950f2\>\] vmemdup\_user+0x22/0x100 mm/util.c:199
    \[\<ffffffff8109f5ff\>\] kvm\_vcpu\_ioctl\_set\_cpuid2+0x8f/0xf0 arch/x86/kvm/cpuid.c:423
    \[\<ffffffff810711b9\>\] kvm\_arch\_vcpu\_ioctl+0xb99/0x1e60 arch/x86/kvm/x86.c:5251
    \[\<ffffffff8103e92d\>\] kvm\_vcpu\_ioctl+0x4ad/0x950 arch/x86/kvm/../../../virt/kvm/kvm\_main.c:4066
    \[\<ffffffff815afacc\>\] vfs\_ioctl fs/ioctl.c:51 \[inline\]
    \[\<ffffffff815afacc\>\] \_\_do\_sys\_ioctl fs/ioctl.c:874 \[inline\]
    \[\<ffffffff815afacc\>\] \_\_se\_sys\_ioctl fs/ioctl.c:860 \[inline\]
    \[\<ffffffff815afacc\>\] \_\_x64\_sys\_ioctl+0xfc/0x140 fs/ioctl.c:860
    \[\<ffffffff844a3335\>\] do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
    \[\<ffffffff844a3335\>\] do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
    \[\<ffffffff84600068\>\] entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= 24e7590c60aa9487b8e43583dc9885f62f8216c1, \< b9ee734a14bb685b2088f2176d82b34cb4e30dbc; \>= c6617c61e8fe44b9e9fdfede921f61cac6b5149d, \< 811f95ff95270e6048197821434d9301e3d7f07c (cvelist)
- Linux: \>= 5.16.3, \< 5.16.5 (cvelist)

## Mitigation

- Upgrade Linux to 811f95ff95270e6048197821434d9301e3d7f07c or later.
- Upgrade Linux to 5.16.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48764. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48764.md
Affected: Linux >= 24e7590c60aa9487b8e43583dc9885f62f8216c1, < b9ee734a14bb685b2088f2176d82b34cb4e30dbc; >= c6617c61e8fe44b9e9fdfede921f61cac6b5149d, < 811f95ff95270e6048197821434d9301e3d7f07c; Linux >= 5.16.3, < 5.16.5
Fixed in: Linux 811f95ff95270e6048197821434d9301e3d7f07c, Linux 5.16.5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48764 being exploited?

There is no confirmed exploitation: CVE-2022-48764 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48764?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48764?

Linux \>= 24e7590c60aa9487b8e43583dc9885f62f8216c1, \< b9ee734a14bb685b2088f2176d82b34cb4e30dbc; \>= c6617c61e8fe44b9e9fdfede921f61cac6b5149d, \< 811f95ff95270e6048197821434d9301e3d7f07c; Linux \>= 5.16.3, \< 5.16.5.

### Is there a fix for CVE-2022-48764?

Yes. Fixed in Linux 811f95ff95270e6048197821434d9301e3d7f07c, Linux 5.16.5. Upgrade Linux to 811f95ff95270e6048197821434d9301e3d7f07c or later. Upgrade Linux to 5.16.5 or later.

### How do I check if I'm affected by CVE-2022-48764?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b9ee734a14bb685b2088f2176d82b34cb4e30dbc>
- patch: <https://git.kernel.org/stable/c/811f95ff95270e6048197821434d9301e3d7f07c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48764>

HTML: <https://flawdb.com/CVE-2022-48764> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48764>
