Skip to content
OpenAdvisories
High · 7.1 CVE-2022-48943 EUVD-2022-53822GHSA-v5xv-g87f-x57w

KVM: x86/mmu: make apf token non-zero to fix bug

Published Aug 22, 2024 · Updated Aug 5, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-azure-fips Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.4 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lts-xenial Package: linux-nvidia-6.2 Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.5 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.5 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.5 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

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

KVM: x86/mmu: make apf token non-zero to fix bug

In current async pagefault logic, when a page is ready, KVM relies on
kvm_arch_can_dequeue_async_page_present() to determine whether to deliver
a READY event to the Guest. This function test token value of struct
kvm_vcpu_pv_apf_data, which must be reset to zero by Guest kernel when a
READY event is finished by Guest. If value is zero meaning that a READY
event is done, so the KVM can deliver another.
But the kvm_arch_setup_async_pf() may produce a valid token with zero
value, which is confused with previous mention and may lead the loss of
this READY event.

This bug may cause task blocked forever in Guest:
INFO: task stress:7532 blocked for more than 1254 seconds.
Not tainted 5.10.0 #16
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:stress state:D stack: 0 pid: 7532 ppid: 1409
flags:0x00000080
Call Trace:
__schedule+0x1e7/0x650
schedule+0x46/0xb0
kvm_async_pf_task_wait_schedule+0xad/0xe0
? exit_to_user_mode_prepare+0x60/0x70
__kvm_handle_async_pf+0x4f/0xb0
? asm_exc_page_fault+0x8/0x30
exc_page_fault+0x6f/0x110
? asm_exc_page_fault+0x8/0x30
asm_exc_page_fault+0x1e/0x30
RIP: 0033:0x402d00
RSP: 002b:00007ffd31912500 EFLAGS: 00010206
RAX: 0000000000071000 RBX: ffffffffffffffff RCX: 00000000021a32b0
RDX: 000000000007d011 RSI: 000000000007d000 RDI: 00000000021262b0
RBP: 00000000021262b0 R08: 0000000000000003 R09: 0000000000000086
R10: 00000000000000eb R11: 00007fefbdf2baa0 R12: 0000000000000000
R13: 0000000000000002 R14: 000000000007d000 R15: 0000000000001000

Affected products

VendorProductAffectedFixed
Linux Linux 5.8 5.10.103

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.16.12-1 —
Debian 13 linux 5.16.12-1 —
Debian 12 linux 5.16.12-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-riscv +31 No fix yet —
Ubuntu 20.04 LTS linux 5.4.0-202.222 USN-7159-1
Ubuntu 20.04 LTS linux-aws 5.4.0-1136.146 USN-7159-2
Ubuntu 20.04 LTS linux-azure 5.4.0-1142.149 USN-7195-1
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1096.103 USN-7159-3
Ubuntu 20.04 LTS linux-gcp 5.4.0-1140.149 USN-7159-1
Ubuntu 20.04 LTS linux-gke +27 No fix yet —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1083.88 USN-7159-1
Ubuntu 20.04 LTS linux-intel-iotg-5.15 5.15.0-1008.11~20.04.1 —
Ubuntu 20.04 LTS linux-iot 5.4.0-1045.46 USN-7159-4
Ubuntu 20.04 LTS linux-kvm 5.4.0-1124.132 USN-7159-1
Ubuntu 20.04 LTS linux-oracle 5.4.0-1135.144 USN-7159-3
Ubuntu 20.04 LTS linux-raspi 5.4.0-1120.132 USN-7159-1
Ubuntu 20.04 LTS linux-xilinx-zynqmp 5.4.0-1055.59 USN-7159-1
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1136.146+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1142.149+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1110.120 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1140.149+fips1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2113.119 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2092.98 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1129.140 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2076.81 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1107.114 —
Ubuntu Pro 18.04 LTS linux 4.15.0-231.243 USN-7121-1
Ubuntu Pro 18.04 LTS linux-aws 4.15.0-1175.188 USN-7121-1
Ubuntu Pro 18.04 LTS linux-aws-5.4 5.4.0-1136.146~18.04.1 USN-7159-2
Ubuntu Pro 18.04 LTS linux-azure-4.15 4.15.0-1183.198 USN-7121-1
Ubuntu Pro 18.04 LTS linux-azure-5.4 5.4.0-1142.149~18.04.1 USN-7195-2
Ubuntu Pro 18.04 LTS linux-gcp-4.15 4.15.0-1168.185 USN-7121-1
Ubuntu Pro 18.04 LTS linux-gcp-5.4 5.4.0-1140.149~18.04.1 USN-7159-1
Ubuntu Pro 18.04 LTS linux-hwe-5.4 5.4.0-202.222~18.04.1 USN-7159-1
Ubuntu Pro 18.04 LTS linux-ibm-5.4 5.4.0-1083.88~18.04.1 USN-7159-1
Ubuntu Pro 18.04 LTS linux-kvm 4.15.0-1158.163 USN-7121-1
Ubuntu Pro 18.04 LTS linux-oracle 4.15.0-1137.148 USN-7121-1
Ubuntu Pro 18.04 LTS linux-oracle-5.4 5.4.0-1135.144~18.04.1 USN-7159-3
Ubuntu Pro 18.04 LTS linux-raspi-5.4 5.4.0-1120.132~18.04.1 USN-7159-5
Ubuntu Pro 16.04 LTS linux 4.4.0-261.295 USN-7148-1
Ubuntu Pro 16.04 LTS linux-aws 4.4.0-1176.191 USN-7148-1
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1175.188~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1183.198~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1168.185~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-231.243~16.04.1 USN-7121-1
Ubuntu Pro 16.04 LTS linux-kvm 4.4.0-1139.149 USN-7148-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1137.148~16.04.1 USN-7121-3
Ubuntu Pro 14.04 LTS linux 3.13.0-200.251 USN-7122-1
Ubuntu Pro 14.04 LTS linux-aws 4.4.0-1138.144 USN-7148-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1183.198~14.04.1 USN-7121-2
Ubuntu Pro 14.04 LTS linux-lts-xenial 4.4.0-261.295~14.04.1 USN-7148-1
ReleasePackageFixed inAdvisory
RHEL 9 perf +29 5.14.0-70.22.1.el9_0 RHSA-2022:8267, RHSA-2022:6003
RHEL 8 perf +26 4.18.0-372.26.1.el8_6 RHSA-2022:7683, RHSA-2022:6460
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 perf +2 4.18.0-372.26.1.el8_6 RHSA-2022:6460
ReleasePackageFixed inAdvisory
SLES 15 SP5 kernel-64kb +4 5.14.21-150500.55.80.2 SUSE-SU-2024:3483-1
SLES 15 SP5 kernel-azure +2 5.14.21-150500.33.66.1 SUSE-SU-2024:3190-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.80.2.150500.6.35.6 SUSE-SU-2024:3483-1
SLES 15 SP5 kernel-syms +1 5.14.21-150500.55.80.1 SUSE-SU-2024:3483-1
SLES 15 SP4 kernel-64kb +4 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.133.2.150400.24.64.5 SUSE-SU-2024:3408-1
SLES 15 SP4 kernel-docs +1 5.14.21-150400.24.133.1 SUSE-SU-2024:3408-1
SLES 12 SP5 kernel-azure +2 4.12.14-16.200.1 SUSE-SU-2024:3591-1
SLES 12 SP5 kernel-docs +4 4.12.14-122.231.1 SUSE-SU-2024:3559-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP4 kernel-default-base 5.14.21-150400.24.133.2.150400.24.64.5 SUSE-SU-2024:3408-1
SLES for SAP 15 SP4 kernel-docs +1 5.14.21-150400.24.133.1 SUSE-SU-2024:3408-1
SLES for SAP 15 SP4 kernel-source +2 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SLES for SAP 12 SP5 kernel-azure +2 4.12.14-16.200.1 SUSE-SU-2024:3591-1
SLES for SAP 12 SP5 kernel-syms +2 4.12.14-122.231.1 SUSE-SU-2024:3559-1
SLE Real Time 12 SP5 kernel-rt +3 4.12.14-10.203.1 SUSE-SU-2024:3566-1
SLE Micro 5.5 kernel-default 5.14.21-150500.55.80.2 SUSE-SU-2024:3483-1
SLE Micro 5.5 kernel-default-base 5.14.21-150500.55.80.2.150500.6.35.6 SUSE-SU-2024:3483-1
SLE Micro 5.5 kernel-rt +1 5.14.21-150500.13.67.3 SUSE-SU-2024:3209-1
SLE Micro 5.4 kernel-default 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.133.2.150400.24.64.5 SUSE-SU-2024:3408-1
SLE Micro 5.4 kernel-rt +1 5.14.21-150400.15.91.3 SUSE-SU-2024:3227-1
SLE Micro 5.3 kernel-default 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.133.2.150400.24.64.5 SUSE-SU-2024:3408-1
SLE Micro 5.3 kernel-rt +1 5.14.21-150400.15.91.3 SUSE-SU-2024:3227-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.80.2 SUSE-SU-2024:3483-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_19 +1 1-150500.11.3.2 SUSE-SU-2024:3483-1, SUSE-SU-2024:3209-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_31 1-150400.9.3.2 SUSE-SU-2024:3408-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.231.1 SUSE-SU-2024:3559-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_61 1-8.3.1 SUSE-SU-2024:3559-1
SLE HPC 15 SP4 kernel-64kb +3 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SLE HPC 15 SP4 kernel-default-base 5.14.21-150400.24.133.2.150400.24.64.5 SUSE-SU-2024:3408-1
SLE HPC 15 SP4 kernel-docs +1 5.14.21-150400.24.133.1 SUSE-SU-2024:3408-1
SUSE Real Time Module 15 SP5 kernel-rt +2 5.14.21-150500.13.67.3 SUSE-SU-2024:3209-1
SUSE Real Time Module 15 SP5 kernel-syms-rt 5.14.21-150500.13.67.1 SUSE-SU-2024:3209-1
SUSE Manager Server 4.3 kernel-default-base 5.14.21-150400.24.133.2.150400.24.64.5 SUSE-SU-2024:3408-1
SUSE Manager Server 4.3 kernel-source +2 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SUSE Manager Server 4.3 kernel-syms 5.14.21-150400.24.133.1 SUSE-SU-2024:3408-1
SUSE Manager Proxy 4.3 kernel-default-base 5.14.21-150400.24.133.2.150400.24.64.5 SUSE-SU-2024:3408-1
SUSE Manager Proxy 4.3 kernel-source +1 5.14.21-150400.24.133.2 SUSE-SU-2024:3408-1
SUSE Manager Proxy 4.3 kernel-syms 5.14.21-150400.24.133.1 SUSE-SU-2024:3408-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 dtb-aarch64 +3 5.14.21-150500.55.80.1 SUSE-SU-2024:3483-1
openSUSE Leap 15.5 kernel-64kb +6 5.14.21-150500.55.80.2 SUSE-SU-2024:3483-1
openSUSE Leap 15.5 kernel-azure +2 5.14.21-150500.33.66.1 SUSE-SU-2024:3190-1
openSUSE Leap 15.5 kernel-default-base 5.14.21-150500.55.80.2.150500.6.35.6 SUSE-SU-2024:3483-1
openSUSE Leap 15.5 kernel-rt +2 5.14.21-150500.13.67.3 SUSE-SU-2024:3209-1
openSUSE Leap 15.5 kernel-syms-rt 5.14.21-150500.13.67.1 SUSE-SU-2024:3209-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.5 kernel-default 5.14.21-150500.55.80.2 SUSE-SU-2024:3483-1
openSUSE Leap Micro 5.5 kernel-default-base 5.14.21-150500.55.80.2.150500.6.35.6 SUSE-SU-2024:3483-1
openSUSE Leap Micro 5.5 kernel-rt 5.14.21-150500.13.67.3 SUSE-SU-2024:3209-1

Advisories 25

References