Input validation error in Linux kernel - CVE-2023-52677
Published: July 2, 2024 / Updated: May 13, 2025
Vulnerability details
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to improper input validation within the ALIGN() function in arch/riscv/kernel/vmlinux.lds.S, within the INIT_TEXT_SECTION() function in arch/riscv/kernel/vmlinux-xip.lds.S, within the is_kernel_exittext() and patch_map() functions in arch/riscv/kernel/patch.c. A local user can perform a denial of service (DoS) attack.
Affected software
openEuler
Ubuntu
kernel-debuginfo
python3-perf
perf
kernel-tools-debuginfo
python3-perf-debuginfo
kernel-source
kernel-tools
perf-debuginfo
kernel-debugsource
kernel-devel
kernel-tools-devel
kernel-headers
kernel
linux-image-virtual-hwe-22.04 (Ubuntu package)
linux-image-generic-hwe-22.04 (Ubuntu package)
linux-image-generic-64k-hwe-22.04 (Ubuntu package)
linux-image-6.5.0-41-generic-64k (Ubuntu package)
linux-image-6.5.0-41-generic (Ubuntu package)
linux-image-laptop-23.10 (Ubuntu package)
linux-image-6.5.0-1017-laptop (Ubuntu package)
linux-image-6.5.0-1021-nvidia-64k (Ubuntu package)
linux-image-6.5.0-1021-nvidia (Ubuntu package)
linux-image-nvidia-64k-6.5 (Ubuntu package)
linux-image-nvidia-64k-hwe-22.04 (Ubuntu package)
linux-image-nvidia-hwe-22.04 (Ubuntu package)
linux-image-nvidia-6.5 (Ubuntu package)
How to mitigate CVE-2023-52677
kernel-debuginfo - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
python3-perf - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
perf - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel-tools-debuginfo - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
python3-perf-debuginfo - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel-source - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel-tools - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
perf-debuginfo - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel-debugsource - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel-devel - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel-tools-devel - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel-headers - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
kernel - addressed in versions 5.10.0-136.79.0.159, 5.10.0-202.0.0.115
linux-image-virtual-hwe-22.04 (Ubuntu package) - update to 6.5.0.41.41~22.04.2
linux-image-generic-hwe-22.04 (Ubuntu package) - update to 6.5.0.41.41~22.04.2
linux-image-generic-64k-hwe-22.04 (Ubuntu package) - update to 6.5.0.41.41~22.04.2
linux-image-6.5.0-41-generic-64k (Ubuntu package) - update to 6.5.0-41.41~22.04.2
linux-image-6.5.0-41-generic (Ubuntu package) - update to 6.5.0-41.41~22.04.2
linux-image-laptop-23.10 (Ubuntu package) - update to 6.5.0.1017.20
linux-image-6.5.0-1017-laptop (Ubuntu package) - update to 6.5.0-1017.20
linux-image-6.5.0-1021-nvidia-64k (Ubuntu package) - update to 6.5.0-1021.22
linux-image-6.5.0-1021-nvidia (Ubuntu package) - update to 6.5.0-1021.22
linux-image-nvidia-64k-6.5 (Ubuntu package) - update to 6.5.0.1021.29
linux-image-nvidia-64k-hwe-22.04 (Ubuntu package) - update to 6.5.0.1021.29
linux-image-nvidia-hwe-22.04 (Ubuntu package) - update to 6.5.0.1021.29
linux-image-nvidia-6.5 (Ubuntu package) - update to 6.5.0.1021.29
External References
- https://git.kernel.org/stable/c/938f70d14618ec72e10d6fcf8a546134136d7c13
- https://git.kernel.org/stable/c/890cfe5337e0aaf03ece1429db04d23c88da72e7
- https://git.kernel.org/stable/c/8db56df4a954b774bdc68917046a685a9fa2e4bc
- https://git.kernel.org/stable/c/1d7a03052846f34d624d0ab41a879adf5e85c85f
- https://git.kernel.org/stable/c/420370f3ae3d3b883813fd3051a38805160b2b9f
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.148
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.75
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.14
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.7.2
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.8