Use-after-free in Linux kernel - CVE-2026-31718
Published: May 2, 2026
Vulnerability details
The vulnerability allows a remote user to cause a denial of service.
The vulnerability exists due to a use-after-free in __ksmbd_close_fd() when processing durable file handles that survive session disconnect and are later timed out by the durable scavenger. A remote user can trigger session disconnect without SMB2_LOGOFF and cause lock cleanup to access a freed connection object to cause a denial of service.
The issue occurs when a durable file handle is preserved for later reconnection and byte-range locks remain associated with the old connection.
Affected software
Ubuntu
linux (Ubuntu package)
linux-realtime (Ubuntu package)
linux-oracle (Ubuntu package)
linux-aws (Ubuntu package)
linux-raspi (Ubuntu package)
linux-gcp (Ubuntu package)
linux-hwe-6.17 (Ubuntu package)
linux-gcp-6.17 (Ubuntu package)
linux-oracle-6.17 (Ubuntu package)
linux-azure-6.17 (Ubuntu package)
linux-oem-6.17 (Ubuntu package)
linux-nvidia-6.17 (Ubuntu package)
linux-aws-6.17 (Ubuntu package)
linux-azure (Ubuntu package)
linux-realtime-6.17 (Ubuntu package)
linux-nvidia (Ubuntu package)
linux-ibm (Ubuntu package)
linux-azure-fde (Ubuntu package)
linux-azure-fde-6.17 (Ubuntu package)
How to mitigate CVE-2026-31718
linux (Ubuntu package) - addressed in versions 6.17.0-40.40, 7.0.0-27.27
linux-realtime (Ubuntu package) - addressed in versions 6.17.0-1017.19, 7.0.0-27.27.1
linux-oracle (Ubuntu package) - addressed in versions 6.17.0-1018.18, 7.0.0-1007.7
linux-aws (Ubuntu package) - addressed in versions 6.17.0-1019.19, 7.0.0-1008.8
linux-raspi (Ubuntu package) - addressed in versions 6.17.0-1021.21, 7.0.0-1014.14
linux-gcp (Ubuntu package) - addressed in versions 6.17.0-1020.22, 7.0.0-1007.7
linux-hwe-6.17 (Ubuntu package) - update to 6.17.0-40.40~24.04.1
linux-gcp-6.17 (Ubuntu package) - update to 6.17.0-1020.22~24.04.1
linux-oracle-6.17 (Ubuntu package) - update to 6.17.0-1018.18~24.04.1
linux-azure-6.17 (Ubuntu package) - update to 6.17.0-1021.21~24.04.1
linux-oem-6.17 (Ubuntu package) - update to 6.17.0-1028.28
linux-nvidia-6.17 (Ubuntu package) - update to 6.17.0-1026.26
linux-aws-6.17 (Ubuntu package) - update to 6.17.0-1019.19~24.04.1
linux-azure (Ubuntu package) - update to 7.0.0-1010.10
linux-realtime-6.17 (Ubuntu package) - update to 6.17.0-1017.19~24.04.1
linux-nvidia (Ubuntu package) - update to 7.0.0-1013.13
linux-ibm (Ubuntu package) - update to 7.0.0-1009.9
linux-azure-fde (Ubuntu package) - update to 7.0.0-1009.9
linux-azure-fde-6.17 (Ubuntu package) - update to 6.17.0-1018.18~24.04.1
External References
Related Security Bulletins
- Use-after-free in Linux kernel smb server
- Ubuntu update for linux
- Ubuntu update for linux-oem-6.17
- Ubuntu update for linux
- Ubuntu update for linux-raspi
- Ubuntu update for linux-nvidia-6.17
- Ubuntu update for linux-nvidia
- Ubuntu update for linux-raspi
- Ubuntu update for linux-hwe-6.17
- Ubuntu update for linux-raspi
- Ubuntu update for linux-azure
- Ubuntu update for linux-azure-fde-6.17
- Ubuntu update for linux-azure-6.17