Use-after-free in Linux kernel - CVE-2025-40243
Published: December 4, 2025
Vulnerability identifier: #VU119167
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-40243
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 hfs_mdb_get() function in fs/hfs/mdb.c. A local user can escalate privileges on the system.
Affected software
Linux kernel
Ubuntu
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-xilinx (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-realtime (Ubuntu package)
linux-aws (Ubuntu package)
linux-gcp (Ubuntu package)
linux-oem-6.17 (Ubuntu package)
Ubuntu
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-xilinx (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-azure-6.8 (Ubuntu package)
linux-realtime (Ubuntu package)
linux-aws (Ubuntu package)
linux-gcp (Ubuntu package)
linux-oem-6.17 (Ubuntu package)
How to mitigate CVE-2025-40243
Install update from vendor's repository.
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.170.97, 5.15.0-170.180+fips1, 5.15.0.1100.90, 5.15.0.1100.96, 5.15.0-1100.107+fips1, 5.15.0-1100.109+fips1, 6.8.0-106.106+fips1, 6.8.0-1050.53+fips1, 6.8.0-1052.55+fips1
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, 6.17.0-14.14, 6.17.0-1006.7, 6.17.0-1008.8
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, 6.17.0-1008.8
linux-azure-5.15 (Ubuntu package) - update to 5.15.0-1110.119~20.04.1
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
linux-aws (Ubuntu package) - update to 6.17.0-1007.7
linux-gcp (Ubuntu package) - update to 6.17.0-1007.7
linux-oem-6.17 (Ubuntu package) - update to 6.17.0-1011.11
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, 6.17.0-14.14, 6.17.0-1006.7, 6.17.0-1008.8
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, 6.17.0-1008.8
linux-azure-5.15 (Ubuntu package) - update to 5.15.0-1110.119~20.04.1
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
linux-aws (Ubuntu package) - update to 6.17.0-1007.7
linux-gcp (Ubuntu package) - update to 6.17.0-1007.7
linux-oem-6.17 (Ubuntu package) - update to 6.17.0-1011.11
External References
- https://git.kernel.org/stable/c/2048ec5b98dbdfe0b929d2e42dc7a54c389c53dd
- https://git.kernel.org/stable/c/2a112cdd66f5a132da5235ca31a320528c86bf33
- https://git.kernel.org/stable/c/3b447fd401824e1ccf0b769188edefe866a1e676
- https://git.kernel.org/stable/c/502fa92a71f344611101bd04ef1a595b8b6014f5
- https://git.kernel.org/stable/c/bf1683078fbdd09a7f7f9b74121ebaa03432bd00
- https://git.kernel.org/stable/c/cfafefcb0e1fc60135f7040f4aed0a4aef4f76ca
- https://git.kernel.org/stable/c/e148ed5cda8fd96d4620c4622fb02f552a2d166a
- https://git.kernel.org/stable/c/fc56548fca732f3d3692c83b40db796259a03887
Related Security Bulletins
- Use-after-free in Linux kernel hfs
- Ubuntu update for linux-gcp
- Ubuntu 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-aws
- Ubuntu update for linux-gcp-5.15
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-oem-6.17
- 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-azure
- 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