Use-after-free in Linux kernel - CVE-2025-37899

 

Use-after-free in Linux kernel - CVE-2025-37899

Published: May 20, 2025 / Updated: May 23, 2025


Vulnerability identifier: #VU109500
CSH Severity: High
CVSS v4 BT: 6.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]
CVE-ID: CVE-2025-37899
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Linux kernel
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

Install update from vendor's website.

Linux kernel - update to 6.12.28
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