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

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

- **Severity:** HIGH 7.9
- **CVSS:** 7.9 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **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.23% (percentile 14, 2026-12-02)
- **Published:** 2024-11-07T09:31:15.925Z
- **Modified:** 2026-08-05T11:41:58.518Z

## Who should check

- Anyone running Linux \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< 04ed2ba07ce73f323052475fbd33d647aca3ff2e; \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< 4b9e11794d910aa55300debbac5f0adcc42c491a; \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< c6c167afa090ea0451f91814e1318755a8fb8bb9
- Anyone running Linux 6.3

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

## Affected and fixed versions

- Linux: \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< 04ed2ba07ce73f323052475fbd33d647aca3ff2e; \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< 4b9e11794d910aa55300debbac5f0adcc42c491a; \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< c6c167afa090ea0451f91814e1318755a8fb8bb9 (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-50139.md
Affected: Linux >= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, < 04ed2ba07ce73f323052475fbd33d647aca3ff2e; >= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, < 4b9e11794d910aa55300debbac5f0adcc42c491a; >= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, < c6c167afa090ea0451f91814e1318755a8fb8bb9; Linux 6.3
Fixed in: Linux 04ed2ba07ce73f323052475fbd33d647aca3ff2e, Linux 4b9e11794d910aa55300debbac5f0adcc42c491a

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-2024-50139 being exploited?

There is no confirmed exploitation: CVE-2024-50139 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-12-02).

### How serious is CVE-2024-50139?

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

### Which versions are affected by CVE-2024-50139?

Linux \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< 04ed2ba07ce73f323052475fbd33d647aca3ff2e; \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< 4b9e11794d910aa55300debbac5f0adcc42c491a; \>= 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3, \< c6c167afa090ea0451f91814e1318755a8fb8bb9; Linux 6.3.

### Is there a fix for CVE-2024-50139?

Yes. Fixed in Linux 04ed2ba07ce73f323052475fbd33d647aca3ff2e, Linux 4b9e11794d910aa55300debbac5f0adcc42c491a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-50139?

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/04ed2ba07ce73f323052475fbd33d647aca3ff2e>
- patch: <https://git.kernel.org/stable/c/4b9e11794d910aa55300debbac5f0adcc42c491a>
- patch: <https://git.kernel.org/stable/c/c6c167afa090ea0451f91814e1318755a8fb8bb9>

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

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