Use-after-free in Linux kernel - CVE-2025-37899
Published: May 20, 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 smb2_session_logoff() function in fs/smb/server/smb2pdu.c. A remote attacker can send specially crafted data to the SMB client during session logoff and compromise the affected system.
Affected software
openEuler
Ubuntu
perf-debuginfo
kernel
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
python3-perf-debuginfo
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
python3-perf
bpftool
bpftool-debuginfo
kernel-extra-modules
linux (Ubuntu package)
linux-fips (Ubuntu package)
linux-aws (Ubuntu package)
linux-gcp (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-raspi-realtime (Ubuntu package)
linux-realtime (Ubuntu package)
linux-oem-6.14 (Ubuntu package)
linux-oracle (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
How to mitigate CVE-2025-37899
perf-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-debugsource - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-devel - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-headers - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-source - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
python3-perf-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-tools - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-tools-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-tools-devel - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
perf - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
python3-perf - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
bpftool - addressed in versions 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
bpftool-debuginfo - addressed in versions 5.10.0-293.0.0.196, 6.6.0-125.0.0.125, 6.6.0-127.0.0.113, 6.6.0-127.0.0.125
kernel-extra-modules - update to 6.6.0-125.0.0.125
linux (Ubuntu package) - addressed in versions 6.8.0-101.101, 6.8.0-101.101.1, 6.8.0-101.101.1~22.04.1, 6.8.0-101.101~22.04.1, 6.8.0-1031.34, 6.8.0-1044.45, 6.8.0-1048.52, 6.14.0-24.24, 6.14.0-1006.6, 6.14.0-1009.9, 6.14.0-1011.11
linux-fips (Ubuntu package) - addressed in versions 6.8.0-101.101+fips1, 6.8.0-1048.51+fips1
linux-aws (Ubuntu package) - addressed in versions 6.8.0-1024.25, 6.8.0.1024.25, 6.8.0-1045.45, 6.8.0-1045.45~22.04.1, 6.8.0-1047.50, 6.8.0-1047.50~22.04.1, 6.14.0-1009.9
linux-gcp (Ubuntu package) - addressed in versions 6.8.0-1044.45~22.04.1, 6.8.0-1044.49, 6.8.0-1048.51, 6.8.0-1048.51~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1047.50, 6.8.0-1047.50.1, 6.8.0-1047.50~22.04.1
linux-aws-fips (Ubuntu package) - update to 6.8.0-1047.50+fips1
linux-azure-fips (Ubuntu package) - update to 6.8.0-1047.53+fips1
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-raspi-realtime (Ubuntu package) - update to 6.8.0-2038.39
linux-realtime (Ubuntu package) - update to 6.8.1-1042.43
linux-oem-6.14 (Ubuntu package) - update to 6.14.0-1007.7
linux-oracle (Ubuntu package) - update to 6.14.0-1009.9
linux-aws-6.14 (Ubuntu package) - update to 6.14.0-1009.9~24.04.1
External References
Related Security Bulletins
- Use-after-free in Linux kernel smb server
- Ubuntu update for linux-oem-6.14
- Ubuntu update for linux
- Ubuntu update for linux-aws
- Ubuntu update for linux-oracle
- Ubuntu update for linux-aws-6.14
- openEuler 24.03 LTS SP2 update for kernel
- openEuler 22.03 LTS SP4 update for kernel
- openEuler 22.03 LTS SP3 update for kernel
- openEuler 24.03 LTS SP1 update for kernel
- openEuler 24.03 LTS update for kernel
- Ubuntu update for linux
- Ubuntu update for linux-raspi-realtime
- Ubuntu update for linux-fips
- Ubuntu update for linux-realtime
- Ubuntu update for linux-gcp
- Ubuntu update for linux-aws
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-azure-6.8
- Ubuntu update for linux-azure