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

 

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

Published: July 10, 2025


Vulnerability identifier: #VU112745
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-38346
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a use-after-free error within the ftrace_release_mod() function in kernel/trace/ftrace.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
Debian Linux
openEuler
Ubuntu
Anolis OS
linux (Debian package)
linux (Ubuntu package)
linux-kvm (Ubuntu package)
linux-gcp (Ubuntu package)
linux-aws (Ubuntu package)
linux-azure (Ubuntu package)
linux-raspi (Ubuntu package)
linux-oracle (Ubuntu package)
linux-lowlatency (Ubuntu package)
linux-gke (Ubuntu package)
linux-aws-5.15 (Ubuntu package)
linux-lowlatency-hwe-5.15 (Ubuntu package)
linux-hwe-5.15 (Ubuntu package)
linux-fips (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux-intel-iotg (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-nvidia-tegra-igx (Ubuntu package)
linux-gkeop (Ubuntu package)
linux-nvidia-tegra (Ubuntu package)
linux-ibm-5.15 (Ubuntu package)
linux-realtime (Ubuntu package)
linux-ibm (Ubuntu package)
linux-intel-iotg-5.15 (Ubuntu package)
linux-gcp-5.15 (Ubuntu package)
linux-nvidia-tegra-5.15 (Ubuntu package)
linux-xilinx-zynqmp (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
linux-gcp-fips (Ubuntu package)
linux-aws-fips (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-6.1 (Debian package)
linux-hwe-6.14 (Ubuntu package)
linux-gcp-6.14 (Ubuntu package)
linux-aws-6.14 (Ubuntu package)
linux-realtime-6.14 (Ubuntu package)
bpftool-debuginfo
kernel
bpftool
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-source
kernel-tools
kernel-tools-debuginfo
perf
perf-debuginfo
python2-perf
python2-perf-debuginfo
python3-perf
python3-perf-debuginfo
kernel-tools-devel
kernel-headers
kernel-extra-modules
kernel-debug
kernel-debug-devel
kernel-tools-libs
kernel-tools-libs-devel
kernel-64k
kernel-64k-debug
kernel-64k-debug-devel
kernel-64k-devel
linux-oracle-5.15 (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-nvidia-lowlatency (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-38346

Install update from vendor's repository.

linux (Debian package) - addressed in versions 5.10.244-1, 6.1.147-1
linux (Ubuntu package) - addressed in versions 5.15.0-156.166, 6.8.0-100.100, 6.8.0-1047.51, 6.14.0-34.34, 6.14.0-1014.14~24.04.1, 6.14.0-1015.15~24.04.1, 6.14.0-1015.15, 6.14.0-1016.16, 6.14.0-1018.19
linux-kvm (Ubuntu package) - update to 5.15.0-1088.93
linux-gcp (Ubuntu package) - addressed in versions 5.15.0-1092.101, 6.8.0-1043.48, 6.8.0-1047.50~22.04.2
linux-aws (Ubuntu package) - addressed in versions 5.15.0-1092.99, 6.8.0-1030.33, 6.8.0-1043.44~22.04.1, 6.8.0-1043.44, 6.8.0-1046.49~22.04.1
linux-azure (Ubuntu package) - addressed in versions 5.15.0-1096.105, 6.8.0-1046.52, 6.14.0-1007.7+25.10.1, 6.14.0-1014.14~24.04.1, 6.14.0-1014.14
linux-raspi (Ubuntu package) - update to 5.15.0-1086.89
linux-oracle (Ubuntu package) - update to 5.15.0-1090.96
linux-lowlatency (Ubuntu package) - addressed in versions 5.15.0-156.166, 6.8.0-100.100.1
linux-gke (Ubuntu package) - update to 5.15.0-1089.95
linux-aws-5.15 (Ubuntu package) - update to 5.15.0-1092.99~20.04.1
linux-lowlatency-hwe-5.15 (Ubuntu package) - update to 5.15.0-156.166~20.04.1
linux-hwe-5.15 (Ubuntu package) - update to 5.15.0-156.166~20.04.1
linux-fips (Ubuntu package) - update to 5.15.0-156.166+fips1
linux-azure-5.15 (Ubuntu package) - update to 5.15.0-1096.105~20.04.1
linux-intel-iotg (Ubuntu package) - update to 5.15.0-1087.93
linux-nvidia (Ubuntu package) - update to 5.15.0-1087.88
linux-nvidia-tegra-igx (Ubuntu package) - update to 5.15.0-1034.34
linux-gkeop (Ubuntu package) - update to 5.15.0-1075.83
linux-nvidia-tegra (Ubuntu package) - update to 5.15.0-1045.45
linux-ibm-5.15 (Ubuntu package) - update to 5.15.0-1086.89~20.04.1
linux-realtime (Ubuntu package) - update to 5.15.0-1092.101
linux-ibm (Ubuntu package) - addressed in versions 5.15.0-1086.89, 6.8.0-1044.44~22.04.1, 6.8.0-1044.44
linux-intel-iotg-5.15 (Ubuntu package) - update to 5.15.0-1087.93~20.04.1
linux-gcp-5.15 (Ubuntu package) - update to 5.15.0-1092.101~20.04.1
linux-nvidia-tegra-5.15 (Ubuntu package) - update to 5.15.0-1045.45~20.04.1
linux-xilinx-zynqmp (Ubuntu package) - update to 5.15.0-1056.60
linux-intel-iot-realtime (Ubuntu package) - update to 5.15.0-1085.87
linux-gcp-fips (Ubuntu package) - addressed in versions 5.15.0-1092.101+fips1, 6.8.0-1047.50+fips1
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0-1092.99+fips1, 6.8.0-100.100+fips1, 6.8.0-1046.49+fips1
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0-1096.105+fips1, 6.8.0-1046.52+fips1
linux-6.1 (Debian package) - update to 6.1.153-1~deb11u1
linux-hwe-6.14 (Ubuntu package) - update to 6.14.0-34.34~24.04.1
linux-gcp-6.14 (Ubuntu package) - update to 6.14.0-1018.19~24.04.1
linux-aws-6.14 (Ubuntu package) - update to 6.14.0-1015.15~24.04.1
linux-realtime-6.14 (Ubuntu package) - update to 6.14.0-1014.14~24.04.1
bpftool-debuginfo - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
bpftool - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-debuginfo - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-debugsource - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-devel - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-source - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-tools - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-tools-debuginfo - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
perf - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
perf-debuginfo - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
python2-perf - update to 4.19.90-2507.3.0.0336
python2-perf-debuginfo - update to 4.19.90-2507.3.0.0336
python3-perf - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
python3-perf-debuginfo - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-tools-devel - addressed in versions 4.19.90-2507.3.0.0336, 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-headers - addressed in versions 5.10.0-273.0.0.175, 5.10.0-273.0.0.176, 6.6.0-101.0.0.93, 6.6.0-101.0.0.104, 6.6.0-101.0.0.107
kernel-extra-modules - update to 6.6.0-101.0.0.107
bpftool - update to 6.6.102-5
kernel - update to 6.6.102-5
kernel-debug - update to 6.6.102-5
kernel-debug-devel - update to 6.6.102-5
kernel-devel - update to 6.6.102-5
kernel-headers - update to 6.6.102-5
kernel-tools - update to 6.6.102-5
kernel-tools-libs - update to 6.6.102-5
kernel-tools-libs-devel - update to 6.6.102-5
perf - update to 6.6.102-5
python3-perf - update to 6.6.102-5
kernel-64k - update to 6.6.102-5
kernel-64k-debug - update to 6.6.102-5
kernel-64k-debug-devel - update to 6.6.102-5
kernel-64k-devel - update to 6.6.102-5
linux-oracle-5.15 (Ubuntu package) - addressed in versions 5.15.0-1090.96~20.04.1, 5.15.0.1090.96~20.04.1
linux-hwe-6.8 (Ubuntu package) - addressed in versions 6.8.0-100.100~22.04.1, 6.8.0-100.100.1~22.04.1
linux-xilinx (Ubuntu package) - addressed in versions 6.8.0-1023.24, 6.8.0.1023.24
linux-nvidia-lowlatency (Ubuntu package) - update to 6.8.0-1046.49.1
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