# CVE-2024-50139: KVM: arm64: Fix shift-out-of-bounds bug

- Severity: High 7.9 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-11-07T09:31:15.925Z
- Modified: 2026-08-05T11:41:58.518Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

KVM: arm64: Fix shift-out-of-bounds bug

Fix a shift-out-of-bounds bug reported by UBSAN when running
VM with MTE enabled host kernel.

UBSAN: shift-out-of-bounds in arch/arm64/kvm/sys_regs.c:1988:14
shift exponent 33 is too large for 32-bit type 'int'
CPU: 26 UID: 0 PID: 7629 Comm: qemu-kvm Not tainted 6.12.0-rc2 #34
Hardware name: IEI NF5280R7/Mitchell MB, BIOS 00.00. 2024-10-12 09:28:54 10/14/2024
Call trace:
 dump_backtrace+0xa0/0x128
 show_stack+0x20/0x38
 dump_stack_lvl+0x74/0x90
 dump_stack+0x18/0x28
 __ubsan_handle_shift_out_of_bounds+0xf8/0x1e0
 reset_clidr+0x10c/0x1c8
 kvm_reset_sys_regs+0x50/0x1c8
 kvm_reset_vcpu+0xec/0x2b0
 __kvm_vcpu_set_target+0x84/0x158
 kvm_vcpu_set_target+0x138/0x168
 kvm_arch_vcpu_ioctl_vcpu_init+0x40/0x2b0
 kvm_arch_vcpu_ioctl+0x28c/0x4b8
 kvm_vcpu_ioctl+0x4bc/0x7a8
 __arm64_sys_ioctl+0xb4/0x100
 invoke_syscall+0x70/0x100
 el0_svc_common.constprop.0+0x48/0xf0
 do_el0_svc+0x24/0x38
 el0_svc+0x3c/0x158
 el0t_64_sync_handler+0x120/0x130
 el0t_64_sync+0x194/0x198

(As written by CVE List.)

## Affected

- Linux Linux: from 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3 before 04ed2ba07ce73f323052475fbd33d647aca3ff2e; from 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3 before 4b9e11794d910aa55300debbac5f0adcc42c491a; from 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3 before c6c167afa090ea0451f91814e1318755a8fb8bb9; 6.3 (not affected: before 6.3; from 6.6.59 up to 6.6.*; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.3 before 6.6.59; from 6.7 before 6.11.6; 6.12

## Every score

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

## References

- <https://git.kernel.org/stable/c/04ed2ba07ce73f323052475fbd33d647aca3ff2e> (patch)
- <https://git.kernel.org/stable/c/4b9e11794d910aa55300debbac5f0adcc42c491a> (patch)
- <https://git.kernel.org/stable/c/c6c167afa090ea0451f91814e1318755a8fb8bb9> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-50139 · Whole record: https://cve.day/CVE-2024-50139.json · Rebuilt by cve.day 2026-11-25T22:58:47.853Z
