Buffer overflow in Linux kernel - CVE-2025-39795
Published: September 16, 2025
Vulnerability identifier: #VU115535
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-39795
CWE-ID: CWE-119
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 memory corruption within the blk_stack_limits() function in block/blk-settings.c. A local user can escalate privileges on the system.
Affected software
Linux kernel
Debian Linux
Ubuntu
openEuler
perf-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
python3-perf
python3-perf-debuginfo
kernel-debuginfo
kernel
bpftool
bpftool-debuginfo
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-gcp (Ubuntu package)
linux-kvm (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
linux-raspi (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux (Debian package)
kernel-extra-modules
linux-lowlatency (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-aws (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)
Debian Linux
Ubuntu
openEuler
perf-debuginfo
kernel-debugsource
kernel-devel
kernel-headers
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
python3-perf
python3-perf-debuginfo
kernel-debuginfo
kernel
bpftool
bpftool-debuginfo
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-gcp (Ubuntu package)
linux-kvm (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
linux-raspi (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux (Debian package)
kernel-extra-modules
linux-lowlatency (Ubuntu package)
linux-hwe-6.8 (Ubuntu package)
linux-xilinx (Ubuntu package)
linux-aws (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-39795
Install update from vendor's repository.
perf-debuginfo - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-debugsource - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-devel - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-headers - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-source - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-tools - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-tools-debuginfo - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-tools-devel - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
perf - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
python3-perf - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
python3-perf-debuginfo - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-debuginfo - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
bpftool - addressed in versions 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
bpftool-debuginfo - addressed in versions 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.163.94, 5.15.0-163.173+fips1, 5.15.0.1097.87, 5.15.0.1097.93, 5.15.0-1097.104+fips1, 5.15.0-1097.106+fips1, 6.8.0-100.100+fips1, 6.8.0-1046.49+fips1
linux (Ubuntu package) - addressed in versions 5.15.0.163.140, 5.15.0.163.158, 5.15.0-163.173, 5.15.0-163.173~20.04.1, 5.15.0.163.173~20.04.1, 5.15.0-1038.38, 5.15.0.1038.40, 5.15.0-1049.49, 5.15.0.1049.49, 5.15.0.1049.49~20.04.1, 5.15.0-1049.49~20.04.1, 5.15.0.1061.64, 5.15.0-1061.65, 5.15.0.1091.87, 5.15.0-1091.94, 5.15.0.1091.94~20.04.1, 5.15.0-1091.94~20.04.1, 5.15.0.1092.92, 5.15.0-1092.93, 5.15.0-1092.98~20.04.1, 5.15.0.1092.98~20.04.1, 5.15.0.1094.90, 5.15.0-1094.100, 5.15.0-1094.100~20.04.1, 5.15.0.1094.100~20.04.1, 5.15.0.1097.100, 5.15.0-1097.104, 5.15.0.1097.104~20.04.1, 5.15.0-1097.104~20.04.1, 5.15.0.1097.106~20.04.1, 5.15.0-1097.106~20.04.1, 6.8.0-100.100, 6.8.0-1047.51
linux-gcp (Ubuntu package) - addressed in versions 5.15.0.1080.79, 5.15.0-1080.88, 5.15.0.1093.92, 5.15.0-1093.99, 5.15.0.1097.93, 5.15.0-1097.106, 6.8.0-1043.48, 6.8.0-1047.50~22.04.2
linux-kvm (Ubuntu package) - addressed in versions 5.15.0.1089.85, 5.15.0-1089.94
linux-intel-iot-realtime (Ubuntu package) - addressed in versions 5.15.0-1089.91, 5.15.0.1089.93, 5.15.0.1096.100, 5.15.0-1096.105
linux-raspi (Ubuntu package) - addressed in versions 5.15.0.1091.89, 5.15.0-1091.94
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1101.86, 5.15.0-1101.110+fips1, 6.8.0-1046.52+fips1
linux-azure (Ubuntu package) - addressed in versions 5.15.0.1101.99, 5.15.0-1101.110, 6.8.0-1046.52
linux-azure-5.15 (Ubuntu package) - addressed in versions 5.15.0.1102.111~20.04.1, 5.15.0-1102.111~20.04.1
linux (Debian package) - update to 6.1.153-1
kernel-extra-modules - update to 6.6.0-113.0.0.119
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
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
kernel-debugsource - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-devel - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-headers - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-source - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-tools - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-tools-debuginfo - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-tools-devel - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
perf - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
python3-perf - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
python3-perf-debuginfo - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel-debuginfo - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
kernel - addressed in versions 5.10.0-286.0.0.188, 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
bpftool - addressed in versions 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
bpftool-debuginfo - addressed in versions 5.10.0-286.0.0.189, 6.6.0-113.0.0.105, 6.6.0-113.0.0.117, 6.6.0-113.0.0.119
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.163.94, 5.15.0-163.173+fips1, 5.15.0.1097.87, 5.15.0.1097.93, 5.15.0-1097.104+fips1, 5.15.0-1097.106+fips1, 6.8.0-100.100+fips1, 6.8.0-1046.49+fips1
linux (Ubuntu package) - addressed in versions 5.15.0.163.140, 5.15.0.163.158, 5.15.0-163.173, 5.15.0-163.173~20.04.1, 5.15.0.163.173~20.04.1, 5.15.0-1038.38, 5.15.0.1038.40, 5.15.0-1049.49, 5.15.0.1049.49, 5.15.0.1049.49~20.04.1, 5.15.0-1049.49~20.04.1, 5.15.0.1061.64, 5.15.0-1061.65, 5.15.0.1091.87, 5.15.0-1091.94, 5.15.0.1091.94~20.04.1, 5.15.0-1091.94~20.04.1, 5.15.0.1092.92, 5.15.0-1092.93, 5.15.0-1092.98~20.04.1, 5.15.0.1092.98~20.04.1, 5.15.0.1094.90, 5.15.0-1094.100, 5.15.0-1094.100~20.04.1, 5.15.0.1094.100~20.04.1, 5.15.0.1097.100, 5.15.0-1097.104, 5.15.0.1097.104~20.04.1, 5.15.0-1097.104~20.04.1, 5.15.0.1097.106~20.04.1, 5.15.0-1097.106~20.04.1, 6.8.0-100.100, 6.8.0-1047.51
linux-gcp (Ubuntu package) - addressed in versions 5.15.0.1080.79, 5.15.0-1080.88, 5.15.0.1093.92, 5.15.0-1093.99, 5.15.0.1097.93, 5.15.0-1097.106, 6.8.0-1043.48, 6.8.0-1047.50~22.04.2
linux-kvm (Ubuntu package) - addressed in versions 5.15.0.1089.85, 5.15.0-1089.94
linux-intel-iot-realtime (Ubuntu package) - addressed in versions 5.15.0-1089.91, 5.15.0.1089.93, 5.15.0.1096.100, 5.15.0-1096.105
linux-raspi (Ubuntu package) - addressed in versions 5.15.0.1091.89, 5.15.0-1091.94
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1101.86, 5.15.0-1101.110+fips1, 6.8.0-1046.52+fips1
linux-azure (Ubuntu package) - addressed in versions 5.15.0.1101.99, 5.15.0-1101.110, 6.8.0-1046.52
linux-azure-5.15 (Ubuntu package) - addressed in versions 5.15.0.1102.111~20.04.1, 5.15.0-1102.111~20.04.1
linux (Debian package) - update to 6.1.153-1
kernel-extra-modules - update to 6.6.0-113.0.0.119
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
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
- https://git.kernel.org/stable/c/14beeef4aafecc8a41de534e31fb5be94739392f
- https://git.kernel.org/stable/c/31f2f080898e50cbf2bae62d35f9f2a997547b38
- https://git.kernel.org/stable/c/3b9d69f0e68aa6b0acd9791c45d445154a8c66e9
- https://git.kernel.org/stable/c/418751910044649baa2b424ea31cce3fc4dcc253
- https://git.kernel.org/stable/c/448dfecc7ff807822ecd47a5c052acedca7d09e8
- https://git.kernel.org/stable/c/46aa80ef49594ed7de685ecbc673b291e9a2c159
- https://git.kernel.org/stable/c/5e276e6ff9aacf8901b9c3265c3cdd2568c9fff2
- https://git.kernel.org/stable/c/8b3ce085b52e674290cbfdd07034e7653ffbe4dc
Related Security Bulletins
- Buffer overflow in Linux kernel block
- Debian update for linux
- openEuler 24.03 LTS SP1 update for kernel
- openEuler 24.03 LTS update for kernel
- openEuler 22.03 LTS SP4 update for kernel
- openEuler 22.03 LTS SP3 update for kernel
- openEuler 24.03 LTS SP2 update for kernel
- Ubuntu update for linux
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-intel-iot-realtime
- Ubuntu update for linux-azure
- Ubuntu update for linux-gcp
- Ubuntu update for linux-raspi
- Ubuntu update for linux-kvm
- Ubuntu update for linux-azure-5.15
- Ubuntu update for linux
- Ubuntu update for linux-realtime-6.8
- Ubuntu update for linux-gcp-6.8
- Ubuntu update for linux-aws-fips
- Ubuntu update for linux-raspi-realtime
- Ubuntu update for linux-aws
- Ubuntu update for linux-gcp-fips
- Ubuntu update for linux-hwe-6.8
- Ubuntu update for linux-lowlatency
- Ubuntu update for linux-gcp
- Ubuntu update for linux-nvidia-lowlatency
- Ubuntu update for linux-xilinx
- Ubuntu update for linux-ibm
- Ubuntu update for linux-azure-fips
- Ubuntu update for linux-azure
- Ubuntu update for linux-azure-6.8