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

 

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

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


Vulnerability identifier: #VU108235
CSH Severity: High
CVSS v4: 8.6 [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]
CVE-ID: CVE-2025-37778
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 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

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

Install update from vendor's website.

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

Related Security Bulletins