CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
8.8 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
RISC-V: KVM: Fix PMU event info array size overflow
SBI PMU EVENT_GET_INFO stores guest-controlled num_events * sizeof(*einfo)
in a 32-bit integer. On RV64, num_events = 0x10000001 makes 0x100000010
truncate to 16. KVM then allocates one entry but loops over the original
num_events, causing out-of-bounds reads and writes. A nested guest
triggered:
BUG: KASAN: slab-out-of-bounds in kvm_riscv_vcpu_pmu_event_info+0xa4/0x142Read of size 4 at addr ff600000074d46b0 by task init/1
Call Trace:[<ffffffff8006471c>]kvm_riscv_vcpu_pmu_event_info+0xa4/0x142[<ffffffff800690c0>]kvm_sbi_ext_pmu_handler+0xca/0x268[<ffffffff8006779e>]kvm_riscv_vcpu_sbi_ecall+0xec/0x1e6[<ffffffff8006008c>]kvm_riscv_vcpu_exit+0x48c/0x540[<ffffffff8005ea0a>]kvm_arch_vcpu_ioctl_run+0x37e/0xc80Allocated by task 1:__kmalloc_noprof+0x19e/0x4b0kvm_riscv_vcpu_pmu_event_info+0x72/0x142kvm_sbi_ext_pmu_handler+0xca/0x268kvm_riscv_vcpu_sbi_ecall+0xec/0x1e6kvm_riscv_vcpu_exit+0x48c/0x540kvm_arch_vcpu_ioctl_run+0x37e/0xc80The buggy address is located 0 bytes to the right of
allocated 16-byte region [ff600000074d46a0, ff600000074d46b0)
Store the shared-memory size in size_t and reject multiplication overflow.
Allocate the guest-driven array with GFP_KERNEL_ACCOUNT so it is charged
to kmemcg, and use __GFP_NOWARN to suppress allocation failure warnings.
Use kvcalloc() to allow vmalloc fallback and an unsigned long loop index
to match num_events.