Vulnerability · Published Mar 6, 2024 · Assigned by Linux

CVE-2023-52598s390/ptrace: handle setting of fpc register correctly

High 7.1

In plain English

A high-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 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.1High
Exploit odds (30 days)0.2%top 84.6% 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: s390/ptrace: handle setting of fpc register correctly If the content of the floating point control (fpc) register of a traced process is modified with the ptrace interface 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 tracing 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 fpc register value, however it will be discarded, when returning to user space. In result the tracer will incorrectly continue to run with the value that was supposed to be used for the traced process. Fix this by saving fpu register contents with save_fpu_regs() before using test_fp_ctl().

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8bpftool4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-abi-stablelists4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-cross-headers4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-debug-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-doc4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-headers4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-tools4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-tools-libs4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-tools-libs-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-core4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-devel4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-modules4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8kernel-zfcpdump-modules-extra4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8perf4.18.0-553.5.1.el8_10ALSA-2024:3618
AlmaLinux:8python3-perf4.18.0-553.5.1.el8_10ALSA-2024:3618
Debian:12linux6.1.82-1DEBIAN-CVE-2023-52598
Debian:13linux6.7.7-1DEBIAN-CVE-2023-52598
Debian:14linux6.7.7-1DEBIAN-CVE-2023-52598
Rocky Linux:8kernel0:4.18.0-553.5.1.el8_10RLSA-2024:3618
Ubuntu:22.04:LTSlinux5.15.0-106.116USN-6766-1
Ubuntu:22.04:LTSlinux5.15.0-106.116UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-aws5.15.0-1061.67USN-6766-3
Ubuntu:22.04:LTSlinux-aws5.15.0-1061.67UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-azure5.15.0-1063.72USN-6766-1
Ubuntu:22.04:LTSlinux-azure5.15.0-1063.72UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1USN-6819-1
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1063.72.1UBUNTU-CVE-2023-52598
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-52598
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-gcp5.15.0-1059.67USN-6766-1
Ubuntu:22.04:LTSlinux-gcp5.15.0-1059.67UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1USN-6818-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1058.63UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-gke5.15.0-1058.63USN-6766-1
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1044.51USN-6766-1
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1044.51UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2023-52598
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-52598
Ubuntu:22.04:LTSlinux-ibm5.15.0-1054.57USN-6766-1
Ubuntu:22.04:LTSlinux-ibm5.15.0-1054.57UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1057.63USN-6795-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1057.63UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-kvm5.15.0-1058.63UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-kvm5.15.0-1058.63USN-6766-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-106.116USN-6766-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-106.116UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1USN-6818-1
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1054.55UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1054.55USN-6766-1
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22USN-6818-3
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1026.26UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1015.15UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-oem-6.16.1.0-1035.35UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-oem-6.16.1.0-1035.35USN-6688-1
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25USN-6819-3
Ubuntu:22.04:LTSlinux-oracle5.15.0-1059.65UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-oracle5.15.0-1059.65USN-6766-1
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1USN-6819-4
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-raspi5.15.0-1054.57USN-6766-2
Ubuntu:22.04:LTSlinux-raspi5.15.0-1054.57UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-riscv-6.56.5.0-40.40.1~22.04.1UBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2023-52598
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2023-52598
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-52598
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1030.34UBUNTU-CVE-2023-52598

Affected products (as reported)

VendorProductVersions
Linux Linux 9977e886cbbc758b4b601a160b5825ba573b5ca8 – before 6ccf904aac0292e1f6b1a1be6c407c414f7cf7139977e886cbbc758b4b601a160b5825ba573b5ca8 – before 6d0822f2cc9b153bf2df49a84599195a2e0d21a89977e886cbbc758b4b601a160b5825ba573b5ca8 – before 856caf2730ea18cb39e95833719c02a02447dc0a9977e886cbbc758b4b601a160b5825ba573b5ca8 – before 28a1f492cb527f64593457a0a0f0d809b3f36c259977e886cbbc758b4b601a160b5825ba573b5ca8 – before 7a4d6481fbdd661f9e40e95febb95e3dee82bad39977e886cbbc758b4b601a160b5825ba573b5ca8 – before 02c6bbfb08bad78dd014e24c7b893723c15ec7a19977e886cbbc758b4b601a160b5825ba573b5ca8 – before bdce67df7f12fb0409fbc604ce7c4254703f56d49977e886cbbc758b4b601a160b5825ba573b5ca8 – before 8b13601d19c541158a6e18b278c00ba69ae37829
Linux Linux 4.3

References