Use-after-free in Linux kernel - CVE-2025-21945
Published: April 2, 2025 / Updated: May 11, 2025
Vulnerability identifier: #VU106621
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-21945
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 list_del() function in fs/smb/server/smb2pdu.c. A local user can escalate privileges on the system.
Affected software
Linux kernel
Debian Linux
openEuler
Ubuntu
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python3-perf
python3-perf-debuginfo
kernel
bpftool
bpftool-debuginfo
linux (Debian package)
linux (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-azure-nvidia (Ubuntu package)
linux-azure (Ubuntu package)
linux-ibm (Ubuntu package)
linux-oracle (Ubuntu package)
linux-oracle-6.8 (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-raspi (Ubuntu package)
linux-raspi-realtime (Ubuntu package)
linux-realtime (Ubuntu package)
linux-realtime-6.8 (Ubuntu package)
linux-lowlatency (Ubuntu package)
linux-oem-6.11 (Ubuntu package)
Debian Linux
openEuler
Ubuntu
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python3-perf
python3-perf-debuginfo
kernel
bpftool
bpftool-debuginfo
linux (Debian package)
linux (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-azure-nvidia (Ubuntu package)
linux-azure (Ubuntu package)
linux-ibm (Ubuntu package)
linux-oracle (Ubuntu package)
linux-oracle-6.8 (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-raspi (Ubuntu package)
linux-raspi-realtime (Ubuntu package)
linux-realtime (Ubuntu package)
linux-realtime-6.8 (Ubuntu package)
linux-lowlatency (Ubuntu package)
linux-oem-6.11 (Ubuntu package)
How to mitigate CVE-2025-21945
Install update from vendor's website.
Linux kernel - update to 6.12.19
kernel-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 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-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-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-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-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-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-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-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-127.0.0.113, 6.6.0-127.0.0.125
perf-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 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-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-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-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-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-127.0.0.113, 6.6.0-127.0.0.125
linux (Debian package) - update to 6.1.133-1
linux (Ubuntu package) - addressed in versions 6.8.0-84.84, 6.8.0-84.84.1, 6.8.0-84.84.1~22.04.1, 6.8.0-1023.25, 6.8.0-1036.40, 6.8.0-1039.41, 6.8.0-1040.42, 6.11.0-28.28, 6.11.0-28.28~24.04.1, 6.11.0-1011.11, 6.11.0-1014.14, 6.11.0-1015.16, 6.11.0-1016.16, 6.11.0-1016.16~24.04.1, 6.11.0-1017.18
linux-hwe-6.8 (Ubuntu package) - addressed in versions 6.8.0-84.84~22.04.1, 6.8.0-85.85~22.04.1
linux-azure-nvidia (Ubuntu package) - update to 6.8.0-1025.27
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1036.42~22.04.1, 6.8.0-1038.44, 6.11.0-1018.18, 6.11.0-1018.18~24.04.1
linux-ibm (Ubuntu package) - addressed in versions 6.8.0-1037.37, 6.8.0-1037.37~22.04.1
linux-oracle (Ubuntu package) - update to 6.8.0-1037.38
linux-oracle-6.8 (Ubuntu package) - update to 6.8.0-1037.38~22.04.1
linux-aws-6.8 (Ubuntu package) - addressed in versions 6.8.0-1039.41~22.04.1, 6.8.0-1040.42~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1039.42, 6.8.0-1039.42.1, 6.8.0-1039.42~22.04.1
linux-raspi (Ubuntu package) - update to 6.8.0-1039.43
linux-raspi-realtime (Ubuntu package) - update to 6.8.0-2031.32
linux-realtime (Ubuntu package) - update to 6.8.1-1034.35
linux-realtime-6.8 (Ubuntu package) - update to 6.8.1-1034.35~22.04.1
linux-lowlatency (Ubuntu package) - addressed in versions 6.11.0-1015.16, 6.11.0-1015.16~24.04.2
linux-oem-6.11 (Ubuntu package) - update to 6.11.0-1024.24
kernel-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 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-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-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-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-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-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-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-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-127.0.0.113, 6.6.0-127.0.0.125
perf-debuginfo - addressed in versions 5.10.0-293.0.0.195, 5.10.0-293.0.0.196, 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-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-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-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-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-127.0.0.113, 6.6.0-127.0.0.125
linux (Debian package) - update to 6.1.133-1
linux (Ubuntu package) - addressed in versions 6.8.0-84.84, 6.8.0-84.84.1, 6.8.0-84.84.1~22.04.1, 6.8.0-1023.25, 6.8.0-1036.40, 6.8.0-1039.41, 6.8.0-1040.42, 6.11.0-28.28, 6.11.0-28.28~24.04.1, 6.11.0-1011.11, 6.11.0-1014.14, 6.11.0-1015.16, 6.11.0-1016.16, 6.11.0-1016.16~24.04.1, 6.11.0-1017.18
linux-hwe-6.8 (Ubuntu package) - addressed in versions 6.8.0-84.84~22.04.1, 6.8.0-85.85~22.04.1
linux-azure-nvidia (Ubuntu package) - update to 6.8.0-1025.27
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1036.42~22.04.1, 6.8.0-1038.44, 6.11.0-1018.18, 6.11.0-1018.18~24.04.1
linux-ibm (Ubuntu package) - addressed in versions 6.8.0-1037.37, 6.8.0-1037.37~22.04.1
linux-oracle (Ubuntu package) - update to 6.8.0-1037.38
linux-oracle-6.8 (Ubuntu package) - update to 6.8.0-1037.38~22.04.1
linux-aws-6.8 (Ubuntu package) - addressed in versions 6.8.0-1039.41~22.04.1, 6.8.0-1040.42~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1039.42, 6.8.0-1039.42.1, 6.8.0-1039.42~22.04.1
linux-raspi (Ubuntu package) - update to 6.8.0-1039.43
linux-raspi-realtime (Ubuntu package) - update to 6.8.0-2031.32
linux-realtime (Ubuntu package) - update to 6.8.1-1034.35
linux-realtime-6.8 (Ubuntu package) - update to 6.8.1-1034.35~22.04.1
linux-lowlatency (Ubuntu package) - addressed in versions 6.11.0-1015.16, 6.11.0-1015.16~24.04.2
linux-oem-6.11 (Ubuntu package) - update to 6.11.0-1024.24
External References
- https://git.kernel.org/stable/c/410ce35a2ed6d0e114132bba29af49b69880c8c7
- https://git.kernel.org/stable/c/636e021646cf9b52ddfea7c809b018e91f2188cb
- https://git.kernel.org/stable/c/84d2d1641b71dec326e8736a749b7ee76a9599fc
- https://git.kernel.org/stable/c/8573571060ca466cbef2c6f03306b2cc7b883506
- https://git.kernel.org/stable/c/a0609097fd10d618aed4864038393dd75131289e
- https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.19
Related Security Bulletins
- Use-after-free in Linux kernel smb server
- Debian update for linux
- Ubuntu update for linux
- Ubuntu update for linux-oem-6.11
- Ubuntu update for linux-lowlatency
- Ubuntu update for linux-azure
- Ubuntu update for linux-nvidia
- Ubuntu update for linux
- Ubuntu update for linux-realtime
- Ubuntu update for linux-aws-6.8
- Ubuntu update for linux-realtime-6.8
- Ubuntu update for linux-ibm
- Ubuntu update for linux-hwe-6.8
- Ubuntu update for linux-raspi
- Ubuntu update for linux-hwe-6.8
- Ubuntu update for linux-raspi-realtime
- Ubuntu update for linux-azure
- Ubuntu update for linux-oracle
- Ubuntu update for linux-azure-nvidia
- Ubuntu update for linux-oracle-6.8
- 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