Use-after-free in Linux kernel - CVE-2025-39953
Published: October 4, 2025
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 DEFINE_PERCPU_RWSEM(), css_release_work_fn(), css_release(), css_create(), css_killed_ref_fn() and cgroup_wq_init() functions in kernel/cgroup/cgroup.c. A local user can escalate privileges on the system.
Affected software
Debian Linux
Ubuntu
openEuler
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-nvidia-tegra-igx (Ubuntu package)
linux-nvidia-tegra (Ubuntu package)
linux-intel-iotg-5.15 (Ubuntu package)
linux-gcp-5.15 (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-intel-iotg (Ubuntu package)
linux-raspi (Ubuntu package)
linux-aws-5.15 (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux (Debian package)
python3-perf-debuginfo
kernel
bpftool
bpftool-debuginfo
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python3-perf
kernel-extra-modules
linux-xilinx (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-realtime (Ubuntu package)
How to mitigate CVE-2025-39953
linux (Ubuntu package) - addressed in versions 5.15.0.170.143, 5.15.0.170.159, 5.15.0-170.180, 5.15.0-170.180~20.04.1, 5.15.0.170.180~20.04.1, 5.15.0-170.180~20.04.3, 5.15.0.170.180~20.04.3, 5.15.0.1083.82, 5.15.0-1083.91, 5.15.0.1094.90, 5.15.0-1094.97, 5.15.0.1094.97~20.04.1, 5.15.0-1094.97~20.04.1, 5.15.0.1096.95, 5.15.0-1096.102, 5.15.0.1100.96, 5.15.0.1100.103, 5.15.0-1100.107, 5.15.0-1100.109, 6.8.0-106.106, 6.8.0-106.106.1, 6.8.0-106.106.1~22.04.1, 6.8.0-106.106~22.04.1, 6.8.0-1035.38, 6.8.0-1047.48, 6.8.0-1047.48~22.04.1, 6.8.0-1048.53, 6.8.0-1049.49, 6.8.0-1049.49~22.04.1, 6.8.0-1050.53, 6.8.0-1052.55, 6.8.0-1052.55~22.04.1
linux-nvidia-tegra-igx (Ubuntu package) - addressed in versions 5.15.0-1041.41+1, 5.15.0.1041.43
linux-nvidia-tegra (Ubuntu package) - addressed in versions 5.15.0-1052.52, 5.15.0.1052.52, 5.15.0.1052.52~20.04.2, 5.15.0-1052.52~20.04.2
linux-intel-iotg-5.15 (Ubuntu package) - addressed in versions 5.15.0.1064.67, 5.15.0-1064.68, 5.15.0-1095.101~20.04.1, 5.15.0.1095.101~20.04.1
linux-gcp-5.15 (Ubuntu package) - addressed in versions 5.15.0.1092.88, 5.15.0-1092.97, 5.15.0.1097.93, 5.15.0-1097.103, 5.15.0-1097.103~20.04.1, 5.15.0.1097.103~20.04.1, 5.15.0.1100.109~20.04.1, 5.15.0-1100.109~20.04.1
linux-intel-iot-realtime (Ubuntu package) - addressed in versions 5.15.0-1092.94, 5.15.0.1092.96, 5.15.0.1099.103, 5.15.0-1099.108
linux-nvidia (Ubuntu package) - addressed in versions 5.15.0.1095.95, 5.15.0-1095.96, 6.8.0-1049.52, 6.8.0-1049.52.1, 6.8.0-1049.52~22.04.1
linux-intel-iotg (Ubuntu package) - addressed in versions 5.15.0.1095.95, 5.15.0-1095.101
linux-raspi (Ubuntu package) - addressed in versions 5.15.0.1097.95, 5.15.0-1097.100, 6.8.0-1050.54, 6.8.0-2040.41
linux-aws-5.15 (Ubuntu package) - addressed in versions 5.15.0.1100.107~20.04.1, 5.15.0-1100.107~20.04.2
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1109.94, 5.15.0-1109.118+fips1, 6.8.0-1052.58+fips1
linux-azure (Ubuntu package) - addressed in versions 5.15.0.1109.107, 5.15.0-1109.118, 6.8.0-1051.57
linux-azure-5.15 (Ubuntu package) - update to 5.15.0-1110.119~20.04.1
linux (Debian package) - update to 6.1.158-1
python3-perf-debuginfo - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
bpftool - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
bpftool-debuginfo - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-debuginfo - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-debugsource - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-devel - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-headers - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-source - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-tools - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-tools-debuginfo - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-tools-devel - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
perf - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
perf-debuginfo - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
python3-perf - addressed in versions 6.6.0-112.0.0.104, 6.6.0-112.0.0.115, 6.6.0-112.0.0.118
kernel-extra-modules - update to 6.6.0-112.0.0.118
linux-xilinx (Ubuntu package) - update to 6.8.0-1029.30
linux-aws-6.8 (Ubuntu package) - update to 6.8.0-1050.53~22.04.1
linux-azure-6.8 (Ubuntu package) - update to 6.8.0-1051.57~22.04.1
linux-realtime (Ubuntu package) - addressed in versions 6.8.1-1045.46, 6.8.1-1045.46~22.04.1
External References
- https://git.kernel.org/stable/c/05e0b03447cf215ec384210441b34b7a3b16e8b0
- https://git.kernel.org/stable/c/4a1e3ec28e8062cd9f339aa6a942df9c5bcb6811
- https://git.kernel.org/stable/c/79f919a89c9d06816dbdbbd168fa41d27411a7f9
- https://git.kernel.org/stable/c/993049c9b1355c78918344a6403427d53f9ee700
- https://git.kernel.org/stable/c/a0c896bda7077aa5005473e2c5b3c27173313b4c
- https://git.kernel.org/stable/c/cabadd7fd15f97090f752fd22dd7f876a0dc3dc4
- https://git.kernel.org/stable/c/ded4d207a3209a834b6831ceec7f39b934c74802
- https://git.kernel.org/stable/c/f2795d1b92506e3adf52a298f7181032a1525e04
Related Security Bulletins
- Use-after-free in Linux kernel cgroup
- openEuler 24.03 LTS SP2 update for kernel
- openEuler 24.03 LTS SP1 update for kernel
- openEuler 24.03 LTS update for kernel
- Debian update for linux
- Ubuntu update for linux-intel-iot-realtime
- Ubuntu update for linux
- Ubuntu update for linux-nvidia-tegra
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-aws-5.15
- Ubuntu update for linux-gcp-5.15
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-nvidia-tegra-igx
- Ubuntu update for linux-intel-iotg-5.15
- Ubuntu update for linux-intel-iotg
- Ubuntu update for linux
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-realtime
- Ubuntu update for linux-aws-6.8
- Ubuntu update for linux-azure-6.8
- Ubuntu update for linux-azure
- Ubuntu update for linux-raspi
- Ubuntu update for linux-raspi
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-azure
- Ubuntu update for linux-azure-5.15
- Ubuntu update for linux-xilinx