UBUNTU-CVE-2025-40082: XEE

Published Oct 28, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved: hfsplus: fix slab-out-of-bounds read in hfsplusuni2asc() BUG: KASAN: slab-out-of-bounds in hfsplusuni2asc+0xa71/0xb90 fs/hfsplus/unicode.c:186 Read of size 2 at addr ffff8880289ef218 by task syz.6.248/14290 CPU: 0 UID: 0 PID: 14290 Comm: syz.6.248 Not tainted 6.16.4 #1 PREEMPT(full) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 Call Trace: <TASK> dumpstack lib/dumpstack.c:94 [inline] dumpstacklvl+0x116/0x1b0 lib/dumpstack.c:120 printaddressdescription mm/kasan/report.c:378 [inline] printreport+0xca/0x5f0 mm/kasan/report.c:482 kasanreport+0xca/0x100 mm/kasan/report.c:595 hfsplusuni2asc+0xa71/0xb90 fs/hfsplus/unicode.c:186 hfspluslistxattr+0x5b6/0xbd0 fs/hfsplus/xattr.c:738 vfslistxattr+0xbe/0x140 fs/xattr.c:493 listxattr+0xee/0x190 fs/xattr.c:924 filenamelistxattr fs/xattr.c:958 [inline] pathlistxattrat+0x143/0x360 fs/xattr.c:988 dosyscallx64 arch/x86/entry/syscall64.c:63 [inline] dosyscall64+0xcb/0x4c0 arch/x86/entry/syscall64.c:94 entrySYSCALL64afterhwframe+0x77/0x7f RIP: 0033:0x7fe0e9fae16d Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe0eae67f98 EFLAGS: 00000246 ORIGRAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007fe0ea205fa0 RCX: 00007fe0e9fae16d RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000000 RBP: 00007fe0ea0480f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe0ea206038 R14: 00007fe0ea205fa0 R15: 00007fe0eae48000 </TASK> Allocated by task 14290: kasansavestack+0x24/0x50 mm/kasan/common.c:47 kasansavetrack+0x14/0x30 mm/kasan/common.c:68 poisonkmallocredzone mm/kasan/common.c:377 [inline] kasankmalloc+0xaa/0xb0 mm/kasan/common.c:394 kasankmalloc include/linux/kasan.h:260 [inline] dokmallocnode mm/slub.c:4333 [inline] kmallocnoprof+0x219/0x540 mm/slub.c:4345 kmallocnoprof include/linux/slab.h:909 [inline] hfsplusfindinit+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfspluslistxattr+0x331/0xbd0 fs/hfsplus/xattr.c:697 vfslistxattr+0xbe/0x140 fs/xattr.c:493 listxattr+0xee/0x190 fs/xattr.c:924 filenamelistxattr fs/xattr.c:958 [inline] pathlistxattrat+0x143/0x360 fs/xattr.c:988 dosyscallx64 arch/x86/entry/syscall64.c:63 [inline] dosyscall64+0xcb/0x4c0 arch/x86/entry/syscall64.c:94 entrySYSCALL64afterhwframe+0x77/0x7f When hfsplusuni2asc is called from hfspluslistxattr, it actually passes in a struct hfsplusattrunistr. The size of the corresponding structure is different from that of hfsplusunistr, so the previous fix (94458781aee6) is insufficient. The pointer on the unicode buffer is still going beyond the allocated memory. This patch introduces two warpper functions hfsplusuni2ascxattrstr and hfsplusuni2ascstr to process two unicode buffers, struct hfsplusattrunistr and struct hfsplusunistr respectively. When ustrlen value is bigger than the allocated memory size, the ustrlen value is limited to an safe size.

Affected Software

169 affected componentsFixes available
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.15<5.15.0-1111.118~20.04.1
5.15.0-1111.118~20.04.1
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.15<5.15.0-1116.125~20.04.1
5.15.0-1116.125~20.04.1
ubuntu/linux-azure-5.8*
ubuntu/linux-azure-fde*
ubuntu/linux-azure-fde-5.15<5.15.0-1116.125~20.04.1
5.15.0-1116.125~20.04.1
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.15<5.15.0-1111.121~20.04.1
5.15.0-1111.121~20.04.1
ubuntu/linux-gcp-5.8*
ubuntu/linux-gke*
ubuntu/linux-gke-5.15*
ubuntu/linux-gkeop*
ubuntu/linux-gkeop-5.15*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.15<5.15.0-185.195~20.04.1
5.15.0-185.195~20.04.1
ubuntu/linux-hwe-5.8*
ubuntu/linux-ibm-5.15<5.15.0-1105.109~20.04.1
5.15.0-1105.109~20.04.1
ubuntu/linux-intel-5.13*
ubuntu/linux-intel-iotg-5.15<5.15.0-1106.112~20.04.1
5.15.0-1106.112~20.04.1
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-183.193~20.04.1
5.15.0-183.193~20.04.1
ubuntu/linux-nvidia-tegra-5.15<5.15.0-1063.63~20.04.1
5.15.0-1063.63~20.04.1
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.15<5.15.0-1108.114~20.04.1
5.15.0-1108.114~20.04.1
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.15<5.15.0-1105.109~20.04.1
5.15.0-1105.109~20.04.1
ubuntu/linux-riscv-5.8*
ubuntu/linux<5.15.0-185.195
5.15.0-185.195
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws<5.15.0-1111.118
5.15.0-1111.118
ubuntu/linux-aws-5.19*
ubuntu/linux-aws-6.2*
ubuntu/linux-aws-6.5*
ubuntu/linux-aws-6.8<6.8.0-1057.60~22.04.1
6.8.0-1057.60~22.04.1
ubuntu/linux-azure<5.15.0-1116.125
5.15.0-1116.125
ubuntu/linux-azure-5.19*
ubuntu/linux-azure-6.2*
ubuntu/linux-azure-6.5*
ubuntu/linux-azure-6.8<6.8.0-1059.65~22.04.1
6.8.0-1059.65~22.04.1
ubuntu/linux-azure-fde<5.15.0-1116.125
5.15.0-1116.125
ubuntu/linux-azure-fde-5.19*
ubuntu/linux-azure-fde-6.2*
ubuntu/linux-azure-fde-6.8<6.8.0-1058.65~22.04.1
6.8.0-1058.65~22.04.1
ubuntu/linux-gcp<5.15.0-1111.121
5.15.0-1111.121
ubuntu/linux-gcp-5.19*
ubuntu/linux-gcp-6.2*
ubuntu/linux-gcp-6.5*
ubuntu/linux-gcp-6.8<6.8.0-1060.63~22.04.1
6.8.0-1060.63~22.04.1
ubuntu/linux-gke<5.15.0-1107.113
5.15.0-1107.113
ubuntu/linux-gkeop<5.15.0-1094.102
5.15.0-1094.102
ubuntu/linux-hwe-5.19*
ubuntu/linux-hwe-6.2*
ubuntu/linux-hwe-6.5*
ubuntu/linux-hwe-6.8<6.8.0-124.124~22.04.1
6.8.0-124.124~22.04.1
ubuntu/linux-ibm<5.15.0-1105.109
5.15.0-1105.109
ubuntu/linux-ibm-6.8<6.8.0-1055.56~22.04.1
6.8.0-1055.56~22.04.1
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-intel-iotg<5.15.0-1106.112
5.15.0-1106.112
ubuntu/linux-kvm<5.15.0-1103.108
5.15.0-1103.108
ubuntu/linux-lowlatency<5.15.0-183.193
5.15.0-183.193
ubuntu/linux-lowlatency-hwe-5.19*
ubuntu/linux-lowlatency-hwe-6.2*
ubuntu/linux-lowlatency-hwe-6.5*
ubuntu/linux-lowlatency-hwe-6.8<6.8.0-117.117.1~22.04.1
6.8.0-117.117.1~22.04.1
ubuntu/linux-nvidia<5.15.0-1106.107
5.15.0-1106.107
ubuntu/linux-nvidia-6.2*
ubuntu/linux-nvidia-6.5*
ubuntu/linux-nvidia-6.8<6.8.0-1054.57~22.04.1
6.8.0-1054.57~22.04.1
ubuntu/linux-nvidia-tegra<5.15.0-1063.63
5.15.0-1063.63
ubuntu/linux-nvidia-tegra-igx<5.15.0-1052.52
5.15.0-1052.52
ubuntu/linux-oem-5.17*
ubuntu/linux-oem-6.0*
ubuntu/linux-oem-6.1*
ubuntu/linux-oem-6.5*
ubuntu/linux-oracle<5.15.0-1108.114
5.15.0-1108.114
ubuntu/linux-oracle-6.5*
ubuntu/linux-oracle-6.8<6.8.0-1054.55~22.04.1
6.8.0-1054.55~22.04.1
ubuntu/linux-raspi<5.15.0-1105.108
5.15.0-1105.108
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.19*
ubuntu/linux-riscv-6.5*
ubuntu/linux-riscv-6.8<6.8.0-117.117~22.04.1
6.8.0-117.117~22.04.1
ubuntu/linux-starfive-5.19*
ubuntu/linux-starfive-6.2*
ubuntu/linux-starfive-6.5*
ubuntu/linux-xilinx-zynqmp<5.15.0-1074.78
5.15.0-1074.78
ubuntu/linux-bluefield<5.15.0-1095.97
5.15.0-1095.97
ubuntu/linux-intel-iot-realtime<5.15.0-1103.105
5.15.0-1103.105
ubuntu/linux-realtime<5.15.0-1110.119
5.15.0-1110.119
ubuntu/linux-realtime-6.8<6.8.1-1051.52~22.04.1
6.8.1-1051.52~22.04.1
ubuntu/linux-aws-fips<5.15.0-1111.118+fips1
5.15.0-1111.118+fips1
ubuntu/linux-azure-fips<5.15.0-1116.125+fips1
5.15.0-1116.125+fips1
ubuntu/linux-fips<5.15.0-185.195+fips1
5.15.0-185.195+fips1
ubuntu/linux-gcp-fips<5.15.0-1111.121+fips1
5.15.0-1111.121+fips1
ubuntu/linux<6.8.0-117.117
6.8.0-117.117
ubuntu/linux-aws<6.8.0-1055.58
6.8.0-1055.58
ubuntu/linux-aws-6.17<6.17.0-1007.7~24.04.1
6.17.0-1007.7~24.04.1
ubuntu/linux-azure<6.8.0-1056.62
6.8.0-1056.62
ubuntu/linux-azure-6.11*
ubuntu/linux-azure-fde<6.8.0-1058.65
6.8.0-1058.65
ubuntu/linux-gcp<6.8.0-1058.61
6.8.0-1058.61
ubuntu/linux-gcp-6.11*
ubuntu/linux-gcp-6.17<6.17.0-1008.8~24.04.1
6.17.0-1008.8~24.04.1
ubuntu/linux-gke<6.8.0-1054.60
6.8.0-1054.60
ubuntu/linux-gkeop<6.8.0-1041.44
6.8.0-1041.44
ubuntu/linux-hwe-6.11*
ubuntu/linux-ibm<6.8.0-1055.56
6.8.0-1055.56
ubuntu/linux-lowlatency<6.8.0-117.117.1
6.8.0-117.117.1
ubuntu/linux-lowlatency-hwe-6.11*
ubuntu/linux-nvidia<6.8.0-1054.57
6.8.0-1054.57
ubuntu/linux-nvidia-6.17<6.17.0-1008.8
6.17.0-1008.8
ubuntu/linux-nvidia-lowlatency<6.8.0-1054.57.1
6.8.0-1054.57.1
ubuntu/linux-nvidia-tegra<6.8.0-1024.24
6.8.0-1024.24
ubuntu/linux-oem-6.11*
ubuntu/linux-oem-6.17<6.17.0-1011.11
6.17.0-1011.11
ubuntu/linux-oem-6.8*
ubuntu/linux-oracle<6.8.0-1054.55
6.8.0-1054.55
ubuntu/linux-oracle-6.17<6.17.0-1007.7~24.04.1
6.17.0-1007.7~24.04.1
ubuntu/linux-raspi<6.8.0-1056.60
6.8.0-1056.60
ubuntu/linux-raspi-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-xilinx<6.8.0-1032.33
6.8.0-1032.33
ubuntu/linux-bluefield<6.8.0-1022.26
6.8.0-1022.26
ubuntu/linux-raspi-realtime<6.8.0-2045.46
6.8.0-2045.46
ubuntu/linux-realtime<6.8.1-1051.52
6.8.1-1051.52
ubuntu/linux-realtime-6.17<6.17.0-1006.7~24.04.1
6.17.0-1006.7~24.04.1
ubuntu/linux-aws-fips<6.8.0-1055.58+fips1
6.8.0-1055.58+fips1
ubuntu/linux-azure-fips<6.8.0-1059.65+fips1
6.8.0-1059.65+fips1
ubuntu/linux-fips<6.8.0-116.116+fips1
6.8.0-116.116+fips1
ubuntu/linux-gcp-fips<6.8.0-1058.61+fips1
6.8.0-1058.61+fips1
ubuntu/linux<6.17.0-14.14
6.17.0-14.14
ubuntu/linux-aws<6.17.0-1007.7
6.17.0-1007.7
ubuntu/linux-azure<6.17.0-1008.8
6.17.0-1008.8
ubuntu/linux-azure-fde*
ubuntu/linux-gcp<6.17.0-1007.7
6.17.0-1007.7
ubuntu/linux-oracle<6.17.0-1007.7
6.17.0-1007.7
ubuntu/linux-raspi<6.17.0-1008.8
6.17.0-1008.8
ubuntu/linux-realtime<6.17.0-1006.7
6.17.0-1006.7
ubuntu/linux-riscv<6.17.0-14.14.1
6.17.0-14.14.1

Event History

Oct 28, 2025
CVE Published
via OSV·12:15 PM
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203