Improper locking in Linux kernel - CVE-2025-38066
Published: June 20, 2025
Vulnerability identifier: #VU111598
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-38066
CWE-ID: CWE-667
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to improper locking within the get_cache_dev_size() and cache_preresume() functions in drivers/md/dm-cache-target.c. A local user can perform a denial of service (DoS) attack.
Affected software
Linux kernel
Debian Linux
Ubuntu
Anolis OS
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-ibm (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-gke (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux (Debian package)
kernel-devel
kernel-64k-devel
kernel-64k-debug-devel
kernel-64k-debug
kernel-64k
python3-perf
perf
kernel-tools-libs-devel
kernel-tools-libs
kernel-tools
kernel-headers
kernel-debug-devel
kernel-debug
kernel
bpftool
linux-lowlatency (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-aws (Ubuntu package)
linux-gcp (Ubuntu package)
linux-nvidia-lowlatency (Ubuntu package)
linux-gcp-fips (Ubuntu package)
linux-gcp-6.8 (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-raspi-realtime (Ubuntu package)
linux-realtime-6.8 (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-oem-6.14 (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
linux-oracle-6.14 (Ubuntu package)
linux-raspi (Ubuntu package)
Debian Linux
Ubuntu
Anolis OS
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-ibm (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-gke (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux (Debian package)
kernel-devel
kernel-64k-devel
kernel-64k-debug-devel
kernel-64k-debug
kernel-64k
python3-perf
perf
kernel-tools-libs-devel
kernel-tools-libs
kernel-tools
kernel-headers
kernel-debug-devel
kernel-debug
kernel
bpftool
linux-lowlatency (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-aws (Ubuntu package)
linux-gcp (Ubuntu package)
linux-nvidia-lowlatency (Ubuntu package)
linux-gcp-fips (Ubuntu package)
linux-gcp-6.8 (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-raspi-realtime (Ubuntu package)
linux-realtime-6.8 (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-oem-6.14 (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
linux-oracle-6.14 (Ubuntu package)
linux-raspi (Ubuntu package)
How to mitigate CVE-2025-38066
Install update from vendor's repository.
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.152.87, 5.15.0-152.162+fips1, 5.15.0.1090.80, 5.15.0.1090.86, 5.15.0-1090.97+fips1, 5.15.0-1090.99+fips1, 6.8.0-100.100+fips1, 6.8.0-1046.49+fips1
linux (Ubuntu package) - addressed in versions 5.15.0.152.133, 5.15.0.152.152, 5.15.0-152.162, 5.15.0-152.162~20.04.1, 5.15.0.152.162~20.04.1, 5.15.0-1032.32, 5.15.0.1032.34, 5.15.0.1043.43, 5.15.0-1043.43, 5.15.0.1043.43~20.04.1, 5.15.0-1043.43~20.04.1, 5.15.0.1054.57, 5.15.0-1054.58, 5.15.0.1073.72, 5.15.0-1073.81, 5.15.0-1083.85, 5.15.0.1083.86~20.04.1, 5.15.0-1083.86~20.04.1, 5.15.0.1083.87, 5.15.0.1085.91~20.04.1, 5.15.0-1085.91~20.04.1, 5.15.0-1088.94~20.04.1, 5.15.0.1088.94~20.04.1, 5.15.0.1090.86, 5.15.0.1090.93, 5.15.0.1090.94, 5.15.0-1090.97, 5.15.0.1090.97~20.04.1, 5.15.0-1090.97~20.04.1, 5.15.0-1090.99, 5.15.0.1090.99~20.04.1, 5.15.0-1090.99~20.04.1, 6.8.0-100.100, 6.8.0-1047.51, 6.14.0-32.32, 6.14.0-32.32.1, 6.14.0-32.32.1~24.04.1, 6.14.0-1012.12~24.04.1, 6.14.0-1013.13, 6.14.0-1016.17, 6.14.0-1016.17~24.04.1
linux-ibm (Ubuntu package) - addressed in versions 5.15.0.1084.80, 5.15.0.1084.82, 5.15.0-1084.87, 5.15.0.1085.85, 5.15.0-1085.91, 5.15.0.1088.84, 5.15.0-1088.94, 6.8.0-1044.44, 6.8.0-1044.44~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 5.15.0.1085.85, 5.15.0-1085.86
linux-gke (Ubuntu package) - addressed in versions 5.15.0.1086.82, 5.15.0-1086.91, 5.15.0.1087.86, 5.15.0-1087.93
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1094.79, 5.15.0-1094.103+fips1, 6.8.0-1046.52+fips1
linux-azure (Ubuntu package) - addressed in versions 5.15.0.1094.92, 5.15.0-1094.103, 6.8.0-1046.52, 6.14.0-1012.12
linux-azure-5.15 (Ubuntu package) - addressed in versions 5.15.0-1094.103~20.04.1, 5.15.0.1094.103~20.04.1
linux (Debian package) - update to 6.1.147-1
kernel-devel - update to 6.6.102-5
kernel-64k-devel - update to 6.6.102-5
kernel-64k-debug-devel - update to 6.6.102-5
kernel-64k-debug - update to 6.6.102-5
kernel-64k - update to 6.6.102-5
python3-perf - update to 6.6.102-5
perf - update to 6.6.102-5
kernel-tools-libs-devel - update to 6.6.102-5
kernel-tools-libs - update to 6.6.102-5
kernel-tools - update to 6.6.102-5
kernel-headers - update to 6.6.102-5
kernel-debug-devel - update to 6.6.102-5
kernel-debug - update to 6.6.102-5
kernel - update to 6.6.102-5
bpftool - update to 6.6.102-5
linux-lowlatency (Ubuntu package) - update to 6.8.0-100.100.1
linux-hwe-6.8 (Ubuntu package) - addressed in versions 6.8.0-100.100.1~22.04.1, 6.8.0-100.100~22.04.1
linux-xilinx (Ubuntu package) - addressed in versions 6.8.0-1023.24, 6.8.0.1023.24
linux-aws (Ubuntu package) - addressed in versions 6.8.0-1030.33, 6.8.0-1043.44, 6.8.0-1043.44~22.04.1, 6.8.0-1046.49~22.04.1
linux-gcp (Ubuntu package) - addressed in versions 6.8.0-1043.48, 6.8.0-1047.50~22.04.2
linux-nvidia-lowlatency (Ubuntu package) - update to 6.8.0-1046.49.1
linux-gcp-fips (Ubuntu package) - update to 6.8.0-1047.50+fips1
linux-gcp-6.8 (Ubuntu package) - update to 6.8.0-1047.50~22.04.2
linux-azure-6.8 (Ubuntu package) - update to 6.8.0-1051.57~22.04.1
linux-raspi-realtime (Ubuntu package) - addressed in versions 6.8.0-2037.38, 6.8.1-1041.42
linux-realtime-6.8 (Ubuntu package) - update to 6.8.1-1041.42~22.04.1
linux-aws-6.14 (Ubuntu package) - addressed in versions 6.14.0-32.32~24.04.1, 6.14.0-1013.13~24.04.1
linux-oem-6.14 (Ubuntu package) - update to 6.14.0-1012.12
linux-realtime-6.14 (Ubuntu package) - update to 6.14.0-1012.12~24.04.1
linux-oracle-6.14 (Ubuntu package) - update to 6.14.0-1013.13~24.04.1
linux-raspi (Ubuntu package) - update to 6.14.0-1014.14
linux (Ubuntu package) - addressed in versions 5.15.0.152.133, 5.15.0.152.152, 5.15.0-152.162, 5.15.0-152.162~20.04.1, 5.15.0.152.162~20.04.1, 5.15.0-1032.32, 5.15.0.1032.34, 5.15.0.1043.43, 5.15.0-1043.43, 5.15.0.1043.43~20.04.1, 5.15.0-1043.43~20.04.1, 5.15.0.1054.57, 5.15.0-1054.58, 5.15.0.1073.72, 5.15.0-1073.81, 5.15.0-1083.85, 5.15.0.1083.86~20.04.1, 5.15.0-1083.86~20.04.1, 5.15.0.1083.87, 5.15.0.1085.91~20.04.1, 5.15.0-1085.91~20.04.1, 5.15.0-1088.94~20.04.1, 5.15.0.1088.94~20.04.1, 5.15.0.1090.86, 5.15.0.1090.93, 5.15.0.1090.94, 5.15.0-1090.97, 5.15.0.1090.97~20.04.1, 5.15.0-1090.97~20.04.1, 5.15.0-1090.99, 5.15.0.1090.99~20.04.1, 5.15.0-1090.99~20.04.1, 6.8.0-100.100, 6.8.0-1047.51, 6.14.0-32.32, 6.14.0-32.32.1, 6.14.0-32.32.1~24.04.1, 6.14.0-1012.12~24.04.1, 6.14.0-1013.13, 6.14.0-1016.17, 6.14.0-1016.17~24.04.1
linux-ibm (Ubuntu package) - addressed in versions 5.15.0.1084.80, 5.15.0.1084.82, 5.15.0-1084.87, 5.15.0.1085.85, 5.15.0-1085.91, 5.15.0.1088.84, 5.15.0-1088.94, 6.8.0-1044.44, 6.8.0-1044.44~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 5.15.0.1085.85, 5.15.0-1085.86
linux-gke (Ubuntu package) - addressed in versions 5.15.0.1086.82, 5.15.0-1086.91, 5.15.0.1087.86, 5.15.0-1087.93
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1094.79, 5.15.0-1094.103+fips1, 6.8.0-1046.52+fips1
linux-azure (Ubuntu package) - addressed in versions 5.15.0.1094.92, 5.15.0-1094.103, 6.8.0-1046.52, 6.14.0-1012.12
linux-azure-5.15 (Ubuntu package) - addressed in versions 5.15.0-1094.103~20.04.1, 5.15.0.1094.103~20.04.1
linux (Debian package) - update to 6.1.147-1
kernel-devel - update to 6.6.102-5
kernel-64k-devel - update to 6.6.102-5
kernel-64k-debug-devel - update to 6.6.102-5
kernel-64k-debug - update to 6.6.102-5
kernel-64k - update to 6.6.102-5
python3-perf - update to 6.6.102-5
perf - update to 6.6.102-5
kernel-tools-libs-devel - update to 6.6.102-5
kernel-tools-libs - update to 6.6.102-5
kernel-tools - update to 6.6.102-5
kernel-headers - update to 6.6.102-5
kernel-debug-devel - update to 6.6.102-5
kernel-debug - update to 6.6.102-5
kernel - update to 6.6.102-5
bpftool - update to 6.6.102-5
linux-lowlatency (Ubuntu package) - update to 6.8.0-100.100.1
linux-hwe-6.8 (Ubuntu package) - addressed in versions 6.8.0-100.100.1~22.04.1, 6.8.0-100.100~22.04.1
linux-xilinx (Ubuntu package) - addressed in versions 6.8.0-1023.24, 6.8.0.1023.24
linux-aws (Ubuntu package) - addressed in versions 6.8.0-1030.33, 6.8.0-1043.44, 6.8.0-1043.44~22.04.1, 6.8.0-1046.49~22.04.1
linux-gcp (Ubuntu package) - addressed in versions 6.8.0-1043.48, 6.8.0-1047.50~22.04.2
linux-nvidia-lowlatency (Ubuntu package) - update to 6.8.0-1046.49.1
linux-gcp-fips (Ubuntu package) - update to 6.8.0-1047.50+fips1
linux-gcp-6.8 (Ubuntu package) - update to 6.8.0-1047.50~22.04.2
linux-azure-6.8 (Ubuntu package) - update to 6.8.0-1051.57~22.04.1
linux-raspi-realtime (Ubuntu package) - addressed in versions 6.8.0-2037.38, 6.8.1-1041.42
linux-realtime-6.8 (Ubuntu package) - update to 6.8.1-1041.42~22.04.1
linux-aws-6.14 (Ubuntu package) - addressed in versions 6.14.0-32.32~24.04.1, 6.14.0-1013.13~24.04.1
linux-oem-6.14 (Ubuntu package) - update to 6.14.0-1012.12
linux-realtime-6.14 (Ubuntu package) - update to 6.14.0-1012.12~24.04.1
linux-oracle-6.14 (Ubuntu package) - update to 6.14.0-1013.13~24.04.1
linux-raspi (Ubuntu package) - update to 6.14.0-1014.14
External References
- https://git.kernel.org/stable/c/00586b78eeb7c626a14ca13453a1631f88a7cf36
- https://git.kernel.org/stable/c/025c8f477625eb39006ded650e7d027bcfb20e79
- https://git.kernel.org/stable/c/3986ef4a9b6a0d9c28bc325d8713beba5e67586f
- https://git.kernel.org/stable/c/5da692e2262b8f81993baa9592f57d12c2703dea
- https://git.kernel.org/stable/c/c5356a5e80442131e2714d0d26bb110590e4e568
- https://git.kernel.org/stable/c/c614584c2a66b538f469089ac089457a34590c14
- https://git.kernel.org/stable/c/cc80a5cc520939d0a7d071cc4ae4b3c55ef171d0
- https://git.kernel.org/stable/c/f3128e3074e8af565cc6a66fe3384a56df87f803
Related Security Bulletins
- Improper locking in Linux kernel md driver
- Debian update for linux
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux
- Ubuntu update for linux-ibm
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-azure
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-gke
- Ubuntu update for linux-azure-5.15
- Ubuntu update for linux-oem-6.14
- Ubuntu update for linux-azure
- Ubuntu update for linux
- Ubuntu update for linux-realtime-6.14
- Ubuntu update for linux-aws-6.14
- Ubuntu update for linux-oracle-6.14
- Ubuntu update for linux-raspi
- Anolis OS update for kernel:6.6
- Ubuntu update for linux
- Ubuntu update for linux-realtime-6.8
- Ubuntu update for linux-gcp-6.8
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-raspi-realtime
- Ubuntu update for linux-aws
- Ubuntu update for linux-gcp-fips
- Ubuntu update for linux-hwe-6.8
- Ubuntu update for linux-lowlatency
- Ubuntu update for linux-gcp
- Ubuntu update for linux-nvidia-lowlatency
- Ubuntu update for linux-xilinx
- Ubuntu update for linux-ibm
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-azure
- Ubuntu update for linux-azure-6.8