Vulnerability · Published Mar 6, 2024 · Assigned by Linux

CVE-2023-52597KVM: s390: fix setting of fpc register

Medium 4.0

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.2%top 85.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: KVM: s390: fix setting of fpc register kvm_arch_vcpu_ioctl_set_fpu() allows to set the floating point control (fpc) register of a guest cpu. The new value is tested for validity by temporarily loading it into the fpc register. This may lead to corruption of the fpc register of the host process: if an interrupt happens while the value is temporarily loaded into the fpc register, and within interrupt context floating point or vector registers are used, the current fp/vx registers are saved with save_fpu_regs() assuming they belong to user space and will be loaded into fp/vx registers when returning to user space. test_fp_ctl() restores the original user space / host process fpc register value, however it will be discarded, when returning to user space. In result the host process will incorrectly continue to run with the value that was supposed to be used for a guest cpu. Fix this by simply removing the test. There is another test right before the SIE context is entered which will handles invalid values. This results in a change of behaviour: invalid values will now be accepted instead of that the ioctl fails with -EINVAL. This seems to be acceptable, given that this interface is most likely not used anymore, and this is in addition the same behaviour implemented with the memory mapped interface (replace invalid values with zero) - see sync_regs() in kvm-s390.c.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9bpftool7.3.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-debug5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-debug-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-debug-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-debug-modules5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-devel-matched5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-modules5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-modules-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-64k-modules-extra5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-abi-stablelists5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-cross-headers5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug-devel-matched5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug-modules5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug-modules-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug-modules-extra5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-debug-uki-virt5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-devel-matched5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-doc5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-headers5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-modules5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-modules-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-modules-extra5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-debug5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-debug-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-debug-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-debug-modules5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-modules5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-modules-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-rt-modules-extra5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-tools5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-tools-libs5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-tools-libs-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-uki-virt5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-zfcpdump5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-zfcpdump-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-zfcpdump-devel5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-zfcpdump-modules5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9libperf5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9perf5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9python3-perf5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9rtla5.14.0-427.13.1.el9_4ALSA-2024:2394
AlmaLinux:9rv5.14.0-427.13.1.el9_4ALSA-2024:2394
Debian:12linux6.1.82-1DEBIAN-CVE-2023-52597
Debian:13linux6.7.7-1DEBIAN-CVE-2023-52597
Debian:14linux6.7.7-1DEBIAN-CVE-2023-52597
Ubuntu:22.04:LTSlinux5.15.0-106.116UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux5.15.0-106.116USN-6766-1
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-aws5.15.0-1061.67USN-6766-3
Ubuntu:22.04:LTSlinux-aws5.15.0-1061.67UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-azure5.15.0-1063.72USN-6766-1
Ubuntu:22.04:LTSlinux-azure5.15.0-1063.72UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1USN-6819-1
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1063.72.1UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1063.72.1USN-6766-1
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-gcp5.15.0-1059.67UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-gcp5.15.0-1059.67USN-6766-1
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1USN-6818-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1058.63USN-6766-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1058.63UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1044.51USN-6766-1
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1044.51UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-41.41~22.04.2USN-6818-4
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-41.41~22.04.2UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-ibm5.15.0-1054.57UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-ibm5.15.0-1054.57USN-6766-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1057.63USN-6795-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1057.63UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-kvm5.15.0-1058.63USN-6766-1
Ubuntu:22.04:LTSlinux-kvm5.15.0-1058.63UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-106.116USN-6766-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-106.116UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1USN-6818-1
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1054.55USN-6766-1
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1054.55UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22USN-6818-3
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1026.26UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1015.15UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-oem-6.16.1.0-1035.35USN-6688-1
Ubuntu:22.04:LTSlinux-oem-6.16.1.0-1035.35UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25USN-6819-3
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-oracle5.15.0-1059.65UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-oracle5.15.0-1059.65USN-6766-1
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1USN-6819-4
Ubuntu:22.04:LTSlinux-raspi5.15.0-1054.57UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-raspi5.15.0-1054.57USN-6766-2
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-riscv-6.56.5.0-40.40.1~22.04.1UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1015.16~22.04.1USN-6819-1
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1015.16~22.04.1UBUNTU-CVE-2023-52597
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1030.34UBUNTU-CVE-2023-52597

Affected products (as reported)

VendorProductVersions
Linux Linux 4725c86055f5bbdcdfe47199c0715881893a2c79 – before 3a04410b0bc7e056e0843ac598825dd359246d184725c86055f5bbdcdfe47199c0715881893a2c79 – before 5e63c9ae8055109d805aacdaf2a4fe2c3b371ba14725c86055f5bbdcdfe47199c0715881893a2c79 – before 150a3a3871490e8c454ffbac2e60abeafcecff994725c86055f5bbdcdfe47199c0715881893a2c79 – before 732a3bea7aba5b15026ea42d14953c3425cc7dc24725c86055f5bbdcdfe47199c0715881893a2c79 – before 0671f42a9c1084db10d68ac347d08dbf6689ecb34725c86055f5bbdcdfe47199c0715881893a2c79 – before c87d7d910775a025e230fd6359b60627e392460f4725c86055f5bbdcdfe47199c0715881893a2c79 – before 2823db0010c400e4b2b12d02aa5d0d3ecb15d7c74725c86055f5bbdcdfe47199c0715881893a2c79 – before b988b1bb0053c0dcd26187d29ef07566a565cf55
Linux Linux 3.13

References