Out-of-bounds write in Linux kernel - CVE-2026-31705

 

Out-of-bounds write in Linux kernel - CVE-2026-31705

Published: May 2, 2026


Vulnerability identifier: #VU128990
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-31705
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to cause a denial of service.

The vulnerability exists due to an out-of-bounds write in smb2_get_ea() when processing crafted QUERY_INFO compound requests. A remote user can send a specially crafted request to cause a denial of service.

The issue occurs when EA alignment padding is applied after an EA value exactly fills the remaining response buffer, causing 1 to 3 bytes to be written past the boundary into adjacent kernel heap memory.


Affected software

Linux kernel
Ubuntu
Anolis OS
linux (Ubuntu package)
linux-fips (Ubuntu package)
linux-lowlatency (Ubuntu package)
linux-azure-5.15 (Ubuntu package)
linux-nvidia-tegra-igx (Ubuntu package)
linux-raspi (Ubuntu package)
linux-oracle (Ubuntu package)
linux-aws-5.15 (Ubuntu package)
linux-azure-fde-5.15 (Ubuntu package)
kernel-tools-libs
kernel-tools-libs-devel
python3-perf
bpftool
kernel
kernel-debug
kernel-debug-devel
kernel-devel
kernel-headers
kernel-tools
perf
linux-hwe-6.8 (Ubuntu package)
linux-ibm (Ubuntu package)
linux-oracle-6.8 (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-aws-6.8 (Ubuntu package)
linux-aws (Ubuntu package)
linux-azure-fde (Ubuntu package)
linux-azure-fde-6.8 (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-gcp-fips (Ubuntu package)
linux-azure-6.17 (Ubuntu package)
linux-oracle-6.17 (Ubuntu package)
linux-nvidia-6.17 (Ubuntu package)

How to mitigate CVE-2026-31705

Install security update from vendor's repository.

Linux kernel - update to 7.0 rc3
linux (Ubuntu package) - addressed in versions 5.15.0.187.167, 5.15.0-187.197, 5.15.0.1065.65, 5.15.0-1065.67, 5.15.0-1065.67~20.04.1, 5.15.0.1076.79~20.04.1, 5.15.0-1076.80, 5.15.0.1096.95, 5.15.0-1096.104, 5.15.0.1105.101, 5.15.0-1105.107, 5.15.0.1105.109, 5.15.0-1105.110, 5.15.0.1107.104, 5.15.0.1107.111, 5.15.0-1107.111~20.04.1, 5.15.0.1108.107, 5.15.0.1108.108, 5.15.0-1108.109, 5.15.0-1108.114, 5.15.0-1108.114~20.04.1, 5.15.0-1110.116~20.04.1, 5.15.0.1112.116, 5.15.0-1112.121, 5.15.0.1113.109, 5.15.0.1113.116, 5.15.0-1113.120, 5.15.0-1113.120+fips1, 5.15.0.1118.103, 5.15.0.1118.116, 5.15.0-1118.127, 5.15.0-1118.127+fips1, 6.8.0-136.136, 6.8.0-1046.50, 6.8.0-1059.67, 6.8.0-1064.72, 6.8.0-1064.72~22.04.1, 6.8.1-1056.57, 6.8.1-1056.57~22.04.2, 7.0.0-27.27
linux-fips (Ubuntu package) - addressed in versions 5.15.0.190.111, 5.15.0-190.200+fips1, 5.15.0.1110.109, 5.15.0-1110.116, 6.8.0-136.136+fips2, 6.8.0-136.136.2, 6.8.0-136.136.2~22.04.1, 6.8.0-1058.61
linux-lowlatency (Ubuntu package) - addressed in versions 5.15.0.190.157, 5.15.0-190.200
linux-azure-5.15 (Ubuntu package) - addressed in versions 5.15.0-190.200~20.04.1, 5.15.0.1114.104, 5.15.0.1114.111, 5.15.0-1114.124, 5.15.0-1114.124+fips1, 5.15.0-1119.128~20.04.1
linux-nvidia-tegra-igx (Ubuntu package) - addressed in versions 5.15.0-1054.54, 5.15.0.1054.56
linux-raspi (Ubuntu package) - addressed in versions 5.15.0.1108.106, 5.15.0-1108.111, 6.8.0-1061.65, 6.8.0-2050.52, 7.0.0-1014.14
linux-oracle (Ubuntu package) - addressed in versions 5.15.0.1110.106, 5.15.0-1110.116
linux-aws-5.15 (Ubuntu package) - addressed in versions 5.15.0-1114.121~20.04.1, 5.15.0-1114.124~20.04.1
linux-azure-fde-5.15 (Ubuntu package) - update to 5.15.0-1118.127~20.04.1
kernel-tools-libs - update to 6.6.102-6
kernel-tools-libs-devel - update to 6.6.102-6
python3-perf - update to 6.6.102-6
bpftool - update to 6.6.102-6
kernel - update to 6.6.102-6
kernel-debug - update to 6.6.102-6
kernel-debug-devel - update to 6.6.102-6
kernel-devel - update to 6.6.102-6
kernel-headers - update to 6.6.102-6
kernel-tools - update to 6.6.102-6
perf - update to 6.6.102-6
linux-hwe-6.8 (Ubuntu package) - update to 6.8.0-136.136~22.04.1
linux-ibm (Ubuntu package) - addressed in versions 6.8.0-1030.31, 6.8.0-1033.34, 6.8.0-1061.62, 6.8.0-1061.62~22.04.1
linux-oracle-6.8 (Ubuntu package) - update to 6.8.0-1058.61~22.04.1
linux-nvidia (Ubuntu package) - addressed in versions 6.8.0-1059.62, 6.8.0-1059.62.1, 6.8.0-1059.62~22.04.1, 7.0.0-1013.13
linux-aws-6.8 (Ubuntu package) - addressed in versions 6.8.0-1061.64+fips1, 6.8.0-1061.64~22.04.1
linux-aws (Ubuntu package) - update to 6.8.0-1061.64+1
linux-azure-fde (Ubuntu package) - update to 6.8.0-1062.69
linux-azure-fde-6.8 (Ubuntu package) - update to 6.8.0-1062.69~22.04.1
linux-azure (Ubuntu package) - addressed in versions 6.8.0-1063.71, 6.8.0-1063.71~22.04.1, 7.0.0-1009.9, 7.0.0-1010.10
linux-azure-fips (Ubuntu package) - update to 6.8.0-1063.71+fips2
linux-gcp-fips (Ubuntu package) - update to 6.8.0-1064.72+fips1
linux-azure-6.17 (Ubuntu package) - addressed in versions 6.17.0-42.42+1, 6.17.0-1019.22, 6.17.0-1022.22, 6.17.0-1022.25, 6.17.0-1032.32
linux-oracle-6.17 (Ubuntu package) - update to 6.17.0-1020.20
linux-nvidia-6.17 (Ubuntu package) - update to 6.17.0-1031.31

External References

Related Security Bulletins