# CVE-2022-48764: linux: In the Linux kernel, the following vulnerability has been resolved:  KVM: x86: Free kvm_cpuid_entry2 array on post-KV...

CVE-2022-48764 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-48764, released June 20, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-48764
- Priority: Routine
- CVSS: 5.3 (medium)
- EPSS: 0.0018
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 20, 2024

## 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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 5.16.7-1 | [DEBIAN-CVE-2022-48764](https://patchblox.com/security/data/fix/linux/debian-cve-2022-48764.md) | Jun 20, 2024 |
| Linux | linux Debian 13.5 (trixie) | 5.16.7-1 | [DEBIAN-CVE-2022-48764](https://patchblox.com/security/data/fix/linux/debian-cve-2022-48764.md) | Jun 20, 2024 |
| Linux | linux Debian 14 | 5.16.7-1 | [DEBIAN-CVE-2022-48764](https://patchblox.com/security/data/fix/linux/debian-cve-2022-48764.md) | Jun 20, 2024 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
