CVE-2023-52598·Kernel vulnerability
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().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.4
- Published
- 2024-03-06
Affected versions
From: 6.7
Until: 6.7.4
Fixed in: 6.7.4
How to fix this CVE
Update your Linux kernel to version 6.7.4 or later to resolve a ptrace register corruption vulnerability on s390 systems. This flaw could allow a tracing process to have its floating-point control register corrupted when debugging another process, leading to data integrity issues. Apply the kernel update immediately and reboot your system to activate the patched version.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if your system is s390-based (the vulnerability only affects s390 architecture): uname -m
- If running kernel 6.7.0 through 6.7.3 on s390, your system is vulnerable
- After patching, confirm the new kernel version is active: uname -r (should show 6.7.4 or later)
FAQ
What is CVE-2023-52598?
CVE-2023-52598 is a kernel vulnerability in s390 ptrace handling where temporarily loading a floating-point control register value for validation can corrupt the tracing process's FPC register if an interrupt occurs during the test operation. This occurs because the interrupt handler may save and discard the original FPC value.
Is CVE-2023-52598 being actively exploited?
No, there are no known active exploits or evidence of exploitation in the wild for this vulnerability.
What versions of Kernel are affected by CVE-2023-52598?
Linux kernel versions 6.7.0 through 6.7.3 are vulnerable. Kernel 6.7.4 and later include the fix.
How do I check if my server is vulnerable to CVE-2023-52598?
Run 'uname -r' to check your kernel version and 'uname -m' to verify if you're on s390 architecture. If you see kernel 6.7.0-6.7.3 on s390, your system is vulnerable.
Does Defensia detect CVE-2023-52598?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2023-52598 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/02c6bbfb08bad78dd014e24c7b893723c15ec7a1
- https://git.kernel.org/stable/c/28a1f492cb527f64593457a0a0f0d809b3f36c25
- https://git.kernel.org/stable/c/6ccf904aac0292e1f6b1a1be6c407c414f7cf713
- https://git.kernel.org/stable/c/6d0822f2cc9b153bf2df49a84599195a2e0d21a8
- https://git.kernel.org/stable/c/7a4d6481fbdd661f9e40e95febb95e3dee82bad3
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52598. Free for 1 server.
Get started free