CVE-2023-52597
KVM: s390: fix setting of fpc register
Check your servers for CVE-2023-52597
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52597 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Mar 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before 3a04410b0bc7e056e0843ac598825dd359246d18 affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before 5e63c9ae8055109d805aacdaf2a4fe2c3b371ba1 affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before 150a3a3871490e8c454ffbac2e60abeafcecff99 affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before 732a3bea7aba5b15026ea42d14953c3425cc7dc2 affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before 0671f42a9c1084db10d68ac347d08dbf6689ecb3 affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before c87d7d910775a025e230fd6359b60627e392460f affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before 2823db0010c400e4b2b12d02aa5d0d3ecb15d7c7 affected from 4725c86055f5bbdcdfe47199c0715881893a2c79, before b988b1bb0053c0dcd26187d29ef07566a565cf55
Other versions: unaffected
|
| Linux |
affected 3.13 unaffected before 3.13 unaffected from 4.19.307 up to and including 4.19.* unaffected from 5.4.269 up to and including 5.4.* unaffected from 5.10.210 up to and including 5.10.* unaffected from 5.15.149 up to and including 5.15.* unaffected from 6.1.77 up to and including 6.1.* unaffected from 6.6.16 up to and including 6.6.* unaffected from 6.7.4 up to and including 6.7.* unaffected 6.8 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52597 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52597
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52597
trivy image --scanners vuln IMAGE | grep CVE-2023-52597
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3a04410b0bc7e056e0843ac598825dd359246d18 git.kernel.org
- https://git.kernel.org/stable/c/5e63c9ae8055109d805aacdaf2a4fe2c3b371ba1 git.kernel.org
- https://git.kernel.org/stable/c/150a3a3871490e8c454ffbac2e60abeafcecff99 git.kernel.org
- https://git.kernel.org/stable/c/732a3bea7aba5b15026ea42d14953c3425cc7dc2 git.kernel.org
- https://git.kernel.org/stable/c/0671f42a9c1084db10d68ac347d08dbf6689ecb3 git.kernel.org
- https://git.kernel.org/stable/c/c87d7d910775a025e230fd6359b60627e392460f git.kernel.org
- https://git.kernel.org/stable/c/2823db0010c400e4b2b12d02aa5d0d3ecb15d7c7 git.kernel.org
- https://git.kernel.org/stable/c/b988b1bb0053c0dcd26187d29ef07566a565cf55 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
Source: the record CVE-2023-52597 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse