Use-after-free in Linux kernel - CVE-2025-37778
Published: May 2, 2025 / Updated: May 23, 2025
Vulnerability details
The vulnerability allows a remote attacker to compromise the affected system.
The vulnerability exists due to a use-after-free error within the krb5_authenticate() function in fs/smb/server/smb2pdu.c. A remote attacker can trick the victim into connecting to a malicious SMB server and execute arbitrary code on the target system.
Affected software
Ubuntu
openEuler
linux (Ubuntu package)
linux-xilinx-zynqmp (Ubuntu package)
linux-raspi (Ubuntu package)
linux-gcp-5.15 (Ubuntu package)
linux-oracle-5.15 (Ubuntu package)
linux-azure-fips (Ubuntu package)
kernel-tools-debuginfo
python3-perf-debuginfo
python3-perf
perf-debuginfo
perf
kernel-tools-devel
kernel-tools
kernel
bpftool
bpftool-debuginfo
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
linux-aws-fips (Ubuntu package)
linux-lowlatency (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-aws (Ubuntu package)
linux-gcp (Ubuntu package)
linux-ibm (Ubuntu package)
linux-nvidia-lowlatency (Ubuntu package)
linux-azure (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)
How to mitigate CVE-2025-37778
linux (Ubuntu package) - addressed in versions 5.15.0.183.154, 5.15.0-183.193, 5.15.0-183.193~20.04.1, 5.15.0.185.108, 5.15.0.185.166, 5.15.0-185.195+fips1, 5.15.0-185.195~20.04.1, 5.15.0-1052.52, 5.15.0.1052.54, 5.15.0-1063.63, 5.15.0-1063.63~20.04.1, 5.15.0.1094.93, 5.15.0-1094.102, 5.15.0.1103.99, 5.15.0-1103.105, 5.15.0.1103.107, 5.15.0-1103.108, 5.15.0.1105.102, 5.15.0.1105.109, 5.15.0-1105.109~20.04.1, 5.15.0.1106.105, 5.15.0.1106.106, 5.15.0-1106.107, 5.15.0-1106.112, 5.15.0.1107.106, 5.15.0-1107.113, 5.15.0.1108.104, 5.15.0-1108.114, 5.15.0.1110.114, 5.15.0-1110.119, 5.15.0.1111.101, 5.15.0.1111.107, 5.15.0.1111.108, 5.15.0.1111.114, 5.15.0-1111.118, 5.15.0-1111.118+fips1, 5.15.0-1111.118~20.04.1, 5.15.0-1111.121, 5.15.0-1111.121+fips1, 5.15.0.1116.114, 5.15.0-1116.125, 5.15.0-1116.125~20.04.1, 6.8.0-100.100, 6.8.0-1047.51, 6.14.0-22.22, 6.14.0-1004.4, 6.14.0-1007.7, 6.14.0-1008.8
linux-xilinx-zynqmp (Ubuntu package) - addressed in versions 5.15.0.1074.77, 5.15.0-1074.78
linux-raspi (Ubuntu package) - addressed in versions 5.15.0.1105.103, 5.15.0-1105.108
linux-gcp-5.15 (Ubuntu package) - addressed in versions 5.15.0-1106.112~20.04.1, 5.15.0-1111.121~20.04.1
linux-oracle-5.15 (Ubuntu package) - update to 5.15.0-1108.114~20.04.1
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1116.101, 5.15.0-1116.125+fips1, 6.8.0-1046.52+fips1
kernel-tools-debuginfo - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
python3-perf-debuginfo - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
python3-perf - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
perf-debuginfo - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
perf - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel-tools-devel - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel-tools - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
bpftool - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
bpftool-debuginfo - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel-debuginfo - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel-debugsource - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel-devel - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel-headers - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
kernel-source - addressed in versions 6.6.0-145.0.12.138, 6.6.0-145.1.12.150
linux-aws-fips (Ubuntu package) - addressed in versions 6.8.0-100.100+fips1, 6.8.0-1046.49+fips1
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, 6.14.0-1007.7, 6.14.0-1007.7+1
linux-gcp (Ubuntu package) - addressed in versions 6.8.0-1043.48, 6.8.0-1047.50~22.04.2
linux-ibm (Ubuntu package) - addressed in versions 6.8.0-1044.44, 6.8.0-1044.44~22.04.1
linux-nvidia-lowlatency (Ubuntu package) - update to 6.8.0-1046.49.1
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1046.52, 6.14.0-1007.7
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
External References
- https://git.kernel.org/stable/c/1db2451de23e98bc864c6a6e52aa0d82c91cb325
- https://git.kernel.org/stable/c/1e440d5b25b7efccb3defe542a73c51005799a5f
- https://git.kernel.org/stable/c/6e30c0e10210c714f3d4453dc258d4abcc70364e
- https://git.kernel.org/stable/c/d5b554bc8d554ed6ddf443d3db2fad9f665cec10
- https://git.kernel.org/stable/c/e83e39a5f6a01a81411a4558a59a10f87aa88dd6
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.14.4
Related Security Bulletins
- Use-after-free in Linux kernel smb server
- Ubuntu update for linux
- Ubuntu update for linux-azure
- Ubuntu update for linux-aws
- 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
- openEuler 24.03 LTS SP1 update for kernel
- openEuler 24.03 LTS update for kernel
- Ubuntu update for linux
- Ubuntu update for linux-oracle-5.15
- Ubuntu update for linux-xilinx-zynqmp
- Ubuntu update for linux-raspi
- Ubuntu update for linux-gcp-5.15
- Ubuntu update for linux-azure-fips