Improper access control in Linux kernel - CVE-2026-31717

 

Improper access control in Linux kernel - CVE-2026-31717

Published: May 2, 2026 / Updated: May 15, 2026


Vulnerability identifier: #VU128984
CSH Severity: Low
CVSS v4: 2.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-31717
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote user to hijack an orphaned durable handle.

The vulnerability exists due to improper access control in durable handle reconnect validation in ksmbd when processing SMB2 durable handle reconnect requests. A remote user can predict or brute-force the persistent ID and reconnect to the orphaned handle to hijack an orphaned durable handle.

The issue occurs because the reconnecting user's security context is not verified against the original opener's identity.


Affected software

Linux kernel
Debian Linux
openEuler
Ubuntu
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 (Debian package)
linux (Ubuntu package)
linux-azure (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-raspi (Ubuntu package)

How to mitigate CVE-2026-31717

Install security update from vendor's repository.

Linux kernel - update to 7.0 rc3
python3-perf-debuginfo - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
bpftool - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
bpftool-debuginfo - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-debuginfo - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-debugsource - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-devel - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-headers - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-source - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-tools - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-tools-debuginfo - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-tools-devel - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
perf - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
perf-debuginfo - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
python3-perf - addressed in versions 6.6.0-145.1.19.156, 6.6.0-145.3.17.150
kernel-extra-modules - update to 6.6.0-145.3.17.150
linux (Debian package) - update to 6.12.94-1
linux (Ubuntu package) - update to 7.0.0-27.27
linux-azure (Ubuntu package) - addressed in versions 7.0.0-1009.9, 7.0.0-1010.10
linux-nvidia (Ubuntu package) - update to 7.0.0-1013.13
linux-raspi (Ubuntu package) - update to 7.0.0-1014.14

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins