Improper locking in Linux kernel - CVE-2025-37940

 

Improper locking in Linux kernel - CVE-2025-37940

Published: May 21, 2025 / Updated: May 21, 2025


Vulnerability identifier: #VU109531
CSH Severity: Low
CVSS v4 BT: 4.3 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]
CVE-ID: CVE-2025-37940
CWE-ID: CWE-667
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to perform a denial of service (DoS) attack.

The vulnerability exists due to improper locking within the ftrace_graph_set_hash() function in kernel/trace/ftrace.c. A local user can perform a denial of service (DoS) attack.


Affected software

Linux kernel
Ubuntu
openEuler
kernel
kernel-debuginfo
python3-perf-debuginfo
python3-perf
perf-debuginfo
perf
kernel-tools-devel
kernel-tools-debuginfo
kernel-tools
kernel-source
kernel-headers
kernel-devel
kernel-debugsource
bpftool
bpftool-debuginfo
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-xilinx-zynqmp (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
linux-raspi (Ubuntu package)
linux-intel-iotg-5.15 (Ubuntu package)
linux-kvm (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-5.15 (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-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-37940

Install update from vendor's website.

Linux kernel - update to 5.4.293
kernel - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-debuginfo - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
python3-perf-debuginfo - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
python3-perf - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
perf-debuginfo - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
perf - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-tools-devel - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-tools-debuginfo - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-tools - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-source - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-headers - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-devel - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
kernel-debugsource - addressed in versions 5.10.0-265.0.0.167, 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
bpftool - addressed in versions 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
bpftool-debuginfo - addressed in versions 5.10.0-265.0.0.168, 6.6.0-93.0.0.87, 6.6.0-93.0.0.98
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.144.84, 5.15.0-144.157+fips1, 5.15.0.1087.77, 5.15.0-1087.96+fips1, 5.15.0.1088.84, 5.15.0-1088.95+fips1, 6.8.0-100.100+fips1, 6.8.0-1046.49+fips1
linux (Ubuntu package) - addressed in versions 5.15.0.144.130, 5.15.0.144.141, 5.15.0-144.157, 5.15.0-144.157~20.04.1, 5.15.0.144.157~20.04.1, 5.15.0-1030.30, 5.15.0.1030.32, 5.15.0-1041.41, 5.15.0.1041.41, 5.15.0.1041.41~20.04.1, 5.15.0-1041.41~20.04.1, 5.15.0.1070.69, 5.15.0-1070.78, 5.15.0.1080.76, 5.15.0-1080.83, 5.15.0-1080.83~20.04.1, 5.15.0.1080.83~20.04.1, 5.15.0.1082.82, 5.15.0-1082.83, 5.15.0.1083.83, 5.15.0-1083.89, 5.15.0.1085.81, 5.15.0.1085.84, 5.15.0-1085.91, 5.15.0.1085.91~20.04.3, 5.15.0-1085.91~20.04.3, 5.15.0.1087.83, 5.15.0-1087.96, 5.15.0.1087.96~20.04.1, 5.15.0-1087.96~20.04.2, 5.15.0.1088.91, 5.15.0-1088.95, 5.15.0.1088.95~20.04.1, 5.15.0-1088.95~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.1052.55, 5.15.0-1052.56
linux-intel-iot-realtime (Ubuntu package) - addressed in versions 5.15.0-1081.83, 5.15.0.1081.85, 5.15.0.1088.92, 5.15.0-1088.97
linux-raspi (Ubuntu package) - addressed in versions 5.15.0.1083.81, 5.15.0-1083.86
linux-intel-iotg-5.15 (Ubuntu package) - addressed in versions 5.15.0-1083.89~20.04.1, 5.15.0.1083.89~20.04.1
linux-kvm (Ubuntu package) - addressed in versions 5.15.0.1084.80, 5.15.0-1084.89
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1094.79, 5.15.0-1094.103+fips1, 6.8.0-1046.52+fips1
linux-azure (Ubuntu package) - addressed in versions 5.15.0.1094.92, 5.15.0-1094.103, 6.8.0-1046.52, 6.14.0-1007.7
linux-azure-5.15 (Ubuntu package) - addressed in versions 5.15.0.1094.103~20.04.1, 5.15.0-1094.103~20.04.1
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-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