Race condition in Linux kernel - CVE-2025-38561
Published: August 20, 2025 / Updated: September 25, 2025
Vulnerability identifier: #VU114290
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-38561
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to a race condition within the smb2_sess_setup() function in fs/smb/server/smb2pdu.c when handling the Preauth_HashValue field. A remote user can execute arbitrary code in the context of the kernel.
Affected software
Linux kernel
Ubuntu
openEuler
Anolis OS
kernel-headers
kernel-debuginfo
kernel
kernel-debugsource
kernel-devel
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python3-perf
python3-perf-debuginfo
bpftool-debuginfo
bpftool
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-aws-5.15 (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
kernel-64k-devel
kernel-64k-debug-devel
kernel-64k-debug
kernel-64k
kernel-tools-libs-devel
kernel-tools-libs
kernel-debug-devel
kernel-debug
linux-lowlatency (Ubuntu package)
linux-aws (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-raspi-realtime (Ubuntu package)
linux-oem-6.14 (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-gcp-6.14 (Ubuntu package)
Ubuntu
openEuler
Anolis OS
kernel-headers
kernel-debuginfo
kernel
kernel-debugsource
kernel-devel
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python3-perf
python3-perf-debuginfo
bpftool-debuginfo
bpftool
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-aws-5.15 (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
kernel-64k-devel
kernel-64k-debug-devel
kernel-64k-debug
kernel-64k
kernel-tools-libs-devel
kernel-tools-libs
kernel-debug-devel
kernel-debug
linux-lowlatency (Ubuntu package)
linux-aws (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-raspi-realtime (Ubuntu package)
linux-oem-6.14 (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-gcp-6.14 (Ubuntu package)
How to mitigate CVE-2025-38561
Install update from vendor's repository.
kernel-headers - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-debugsource - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-devel - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-source - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-tools - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-tools-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-tools-devel - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
perf - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
perf-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
python3-perf - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
python3-perf-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
bpftool-debuginfo - update to 5.10.0-296.0.0.199
bpftool - update to 5.10.0-296.0.0.199
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.168.96, 5.15.0-168.178+fips1, 5.15.0.1099.89, 5.15.0.1099.95, 5.15.0-1099.106+fips1, 5.15.0-1099.108+fips1, 5.15.0.1103.88, 5.15.0-1103.112+fips1, 6.8.0-94.96+fips1, 6.8.0-1045.47+fips1, 6.8.0-1046.49+fips1
linux (Ubuntu package) - addressed in versions 5.15.0.168.142, 5.15.0.168.159, 5.15.0-168.178, 5.15.0-168.178~20.04.1, 5.15.0.168.178~20.04.1, 5.15.0-1051.51, 5.15.0.1051.51, 5.15.0.1051.51~20.04.1, 5.15.0-1051.51~20.04.1, 5.15.0.1082.81, 5.15.0-1082.90, 5.15.0.1091.87, 5.15.0-1091.96, 5.15.0.1093.89, 5.15.0.1093.91, 5.15.0-1093.96, 5.15.0.1093.96~20.04.1, 5.15.0-1093.96~20.04.1, 5.15.0.1094.94, 5.15.0-1094.95, 5.15.0-1094.100~20.04.1, 5.15.0.1094.100~20.04.1, 5.15.0.1095.94, 5.15.0-1095.101~20.04.1, 5.15.0.1096.92, 5.15.0-1096.102, 5.15.0.1099.95, 5.15.0.1099.102, 5.15.0-1099.106, 5.15.0-1099.108, 5.15.0.1103.101, 5.15.0-1103.112, 5.15.0.1103.112~20.04.1, 5.15.0-1103.112~20.04.1, 6.8.0-94.96, 6.8.0-94.96~22.04.1, 6.8.0-1029.32~22.04.1, 6.8.0-1042.43, 6.8.0-1042.43~22.04.1, 6.8.0-1042.47, 6.8.0-1045.49, 6.14.0-36.36, 6.14.0-36.36~24.04.1, 6.14.0-1016.16~24.04.1, 6.14.0-1017.17, 6.14.0-1020.21
linux-aws-5.15 (Ubuntu package) - addressed in versions 5.15.0-1040.40, 5.15.0.1040.42, 5.15.0.1096.102~20.04.1, 5.15.0-1096.102~20.04.1, 5.15.0-1099.106~20.04.1, 5.15.0.1099.106~20.04.1, 5.15.0-1099.108~20.04.1, 5.15.0.1099.108~20.04.1
linux-intel-iot-realtime (Ubuntu package) - addressed in versions 5.15.0-1091.93, 5.15.0.1091.95, 5.15.0.1098.102, 5.15.0-1098.107
kernel - update to 6.6.102-5
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
bpftool - update to 6.6.102-5
linux-lowlatency (Ubuntu package) - addressed in versions 6.8.0-94.96.1, 6.8.0-100.100.1, 6.8.0-1022.23, 6.8.0.1022.23
linux-aws (Ubuntu package) - addressed in versions 6.8.0-1043.43, 6.8.0-1045.47, 6.8.0-1046.49, 6.8.0-1046.49~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1045.48, 6.8.0-1045.48.1, 6.8.0-1045.48~22.04.1
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1046.52, 6.14.0-1017.17, 6.14.0-1017.17~24.04.1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1046.52+fips1
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-2036.37, 6.8.1-1040.41, 6.8.1-1040.41~22.04.1
linux-oem-6.14 (Ubuntu package) - update to 6.14.0-1016.16
linux-realtime-6.14 (Ubuntu package) - update to 6.14.0-1016.16~24.04.1
linux-aws-6.14 (Ubuntu package) - update to 6.14.0-1017.17~24.04.1
linux-gcp-6.14 (Ubuntu package) - addressed in versions 6.14.0-1018.18, 6.14.0-1020.21~24.04.1
kernel-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-debugsource - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-devel - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-source - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-tools - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-tools-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
kernel-tools-devel - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
perf - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
perf-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
python3-perf - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
python3-perf-debuginfo - addressed in versions 5.10.0-296.0.0.198, 5.10.0-296.0.0.199
bpftool-debuginfo - update to 5.10.0-296.0.0.199
bpftool - update to 5.10.0-296.0.0.199
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.168.96, 5.15.0-168.178+fips1, 5.15.0.1099.89, 5.15.0.1099.95, 5.15.0-1099.106+fips1, 5.15.0-1099.108+fips1, 5.15.0.1103.88, 5.15.0-1103.112+fips1, 6.8.0-94.96+fips1, 6.8.0-1045.47+fips1, 6.8.0-1046.49+fips1
linux (Ubuntu package) - addressed in versions 5.15.0.168.142, 5.15.0.168.159, 5.15.0-168.178, 5.15.0-168.178~20.04.1, 5.15.0.168.178~20.04.1, 5.15.0-1051.51, 5.15.0.1051.51, 5.15.0.1051.51~20.04.1, 5.15.0-1051.51~20.04.1, 5.15.0.1082.81, 5.15.0-1082.90, 5.15.0.1091.87, 5.15.0-1091.96, 5.15.0.1093.89, 5.15.0.1093.91, 5.15.0-1093.96, 5.15.0.1093.96~20.04.1, 5.15.0-1093.96~20.04.1, 5.15.0.1094.94, 5.15.0-1094.95, 5.15.0-1094.100~20.04.1, 5.15.0.1094.100~20.04.1, 5.15.0.1095.94, 5.15.0-1095.101~20.04.1, 5.15.0.1096.92, 5.15.0-1096.102, 5.15.0.1099.95, 5.15.0.1099.102, 5.15.0-1099.106, 5.15.0-1099.108, 5.15.0.1103.101, 5.15.0-1103.112, 5.15.0.1103.112~20.04.1, 5.15.0-1103.112~20.04.1, 6.8.0-94.96, 6.8.0-94.96~22.04.1, 6.8.0-1029.32~22.04.1, 6.8.0-1042.43, 6.8.0-1042.43~22.04.1, 6.8.0-1042.47, 6.8.0-1045.49, 6.14.0-36.36, 6.14.0-36.36~24.04.1, 6.14.0-1016.16~24.04.1, 6.14.0-1017.17, 6.14.0-1020.21
linux-aws-5.15 (Ubuntu package) - addressed in versions 5.15.0-1040.40, 5.15.0.1040.42, 5.15.0.1096.102~20.04.1, 5.15.0-1096.102~20.04.1, 5.15.0-1099.106~20.04.1, 5.15.0.1099.106~20.04.1, 5.15.0-1099.108~20.04.1, 5.15.0.1099.108~20.04.1
linux-intel-iot-realtime (Ubuntu package) - addressed in versions 5.15.0-1091.93, 5.15.0.1091.95, 5.15.0.1098.102, 5.15.0-1098.107
kernel - update to 6.6.102-5
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
bpftool - update to 6.6.102-5
linux-lowlatency (Ubuntu package) - addressed in versions 6.8.0-94.96.1, 6.8.0-100.100.1, 6.8.0-1022.23, 6.8.0.1022.23
linux-aws (Ubuntu package) - addressed in versions 6.8.0-1043.43, 6.8.0-1045.47, 6.8.0-1046.49, 6.8.0-1046.49~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1045.48, 6.8.0-1045.48.1, 6.8.0-1045.48~22.04.1
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1046.52, 6.14.0-1017.17, 6.14.0-1017.17~24.04.1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1046.52+fips1
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-2036.37, 6.8.1-1040.41, 6.8.1-1040.41~22.04.1
linux-oem-6.14 (Ubuntu package) - update to 6.14.0-1016.16
linux-realtime-6.14 (Ubuntu package) - update to 6.14.0-1016.16~24.04.1
linux-aws-6.14 (Ubuntu package) - update to 6.14.0-1017.17~24.04.1
linux-gcp-6.14 (Ubuntu package) - addressed in versions 6.14.0-1018.18, 6.14.0-1020.21~24.04.1
External References
- https://git.kernel.org/stable/c/44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6
- https://git.kernel.org/stable/c/6613887da1d18dd2ecfd6c6148a873c4d903ebdc
- https://git.kernel.org/stable/c/7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc
- https://git.kernel.org/stable/c/b69fd87076daa66f3d186bd421a7b0ee0cb45829
- https://git.kernel.org/stable/c/edeecc7871e8fc0878d53ce286c75040a0e38f6c
- https://git.kernel.org/stable/c/fbf5c0845ed15122a770bca9be1d9b60b470d3aa
- https://www.zerodayinitiative.com/advisories/ZDI-25-916/
Related Security Bulletins
- Race condition in Linux kernel smb server
- Anolis OS update for kernel:6.6
- Ubuntu update for linux-oem-6.14
- Ubuntu update for linux-realtime-6.14
- Ubuntu update for linux
- Ubuntu update for linux-aws-6.14
- Ubuntu update for linux-gcp-6.14
- Ubuntu update for linux-azure
- openEuler 22.03 LTS SP4 update for kernel
- openEuler 22.03 LTS SP3 update for kernel
- Ubuntu update for linux
- Ubuntu update for linux
- Ubuntu update for linux-raspi-realtime
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-intel-iot-realtime
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-aws
- Ubuntu update for linux-aws-5.15
- Ubuntu update for linux-lowlatency
- Ubuntu update for linux-lowlatency
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-azure
- Ubuntu update for linux-azure-6.8