Use-after-free in Linux kernel - CVE-2025-38627
Published: August 28, 2025
Vulnerability details
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the lzo_decompress_pages(), lz4_decompress_pages(), zstd_init_decompress_ctx(), zstd_decompress_pages(), f2fs_release_decomp_mem(), f2fs_end_read_compressed_page(), allow_memalloc_for_decomp(), f2fs_prepare_decomp_mem(), f2fs_alloc_dic(), f2fs_free_dic() and f2fs_put_dic() functions in fs/f2fs/compress.c. A local user can escalate privileges on the system.
Affected software
Debian Linux
Ubuntu
openEuler
perf
kernel
python3-perf-debuginfo
python3-perf
perf-debuginfo
kernel-tools-devel
kernel-tools-debuginfo
kernel-tools
kernel-source
kernel-headers
kernel-devel
kernel-debugsource
kernel-debuginfo
bpftool-debuginfo
bpftool
kernel-extra-modules
linux (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-raspi (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-realtime (Ubuntu package)
linux (Debian package)
How to mitigate CVE-2025-38627
kernel - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
python3-perf-debuginfo - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
python3-perf - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
perf-debuginfo - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-tools-devel - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-tools-debuginfo - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-tools - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-source - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-headers - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-devel - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-debugsource - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-debuginfo - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
bpftool-debuginfo - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
bpftool - addressed in versions 6.6.0-142.0.0.124, 6.6.0-142.0.0.136, 6.6.0-142.0.0.137
kernel-extra-modules - update to 6.6.0-142.0.0.137
linux (Ubuntu package) - addressed in versions 6.8.0-106.106, 6.8.0-106.106.1, 6.8.0-106.106.1~22.04.1, 6.8.0-106.106~22.04.1, 6.8.0-1035.38, 6.8.0-1047.48, 6.8.0-1047.48~22.04.1, 6.8.0-1048.53, 6.8.0-1049.49, 6.8.0-1049.49~22.04.1, 6.8.0-1050.53, 6.8.0-1052.55, 6.8.0-1052.55~22.04.1
linux-aws-fips (Ubuntu package) - addressed in versions 6.8.0-106.106+fips1, 6.8.0-1050.53+fips1, 6.8.0-1052.55+fips1
linux-xilinx (Ubuntu package) - update to 6.8.0-1029.30
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1049.52, 6.8.0-1049.52.1, 6.8.0-1049.52~22.04.1
linux-aws-6.8 (Ubuntu package) - update to 6.8.0-1050.53~22.04.1
linux-raspi (Ubuntu package) - addressed in versions 6.8.0-1050.54, 6.8.0-2040.41
linux-azure (Ubuntu package) - update to 6.8.0-1051.57
linux-azure-6.8 (Ubuntu package) - update to 6.8.0-1051.57~22.04.1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1052.58+fips1
linux-realtime (Ubuntu package) - addressed in versions 6.8.1-1045.46, 6.8.1-1045.46~22.04.1
linux (Debian package) - update to 6.12.85-1
External References
Related Security Bulletins
- Use-after-free in Linux kernel f2fs
- openEuler 24.03 LTS update for kernel
- openEuler 24.03 LTS SP2 update for kernel
- openEuler 24.03 LTS SP1 update for kernel
- Ubuntu update for linux
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-realtime
- Ubuntu update for linux-aws-6.8
- Ubuntu update for linux-azure-6.8
- Ubuntu update for linux-azure
- Ubuntu update for linux-raspi
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-xilinx
- Debian update for linux