CVE-2026-31718: Linux kernel · ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical · fixed in 6.17.0-1019.19~24.04.1 : patch Linux kernel as a priority.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.17.0-1019.19~24.04.1, 6.17.0-1021.21~24.04.1, 6.17.0-1020.22~24.04.1 +21
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 26.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 26.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 26.04 LTSlinux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 26.04 LTSlinux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 26.04 LTSlinux-ibmpkg:deb/ubuntu/linux-ibm?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in updated Linux kernel packages. Users should apply the latest kernel updates for their distribution and reboot the system to ensure the fix is active. Due to an ABI change in the kernel update, recompilation and reinstallation of all third-party kernel modules are required. Follow vendor instructions carefully to complete the update process.
Description
A use-after-free vulnerability was discovered and fixed in the Linux kernel's ksmbd component, specifically in the __ksmbd_close_fd() function related to durable file handle management. The issue arises when a durable file handle survives a session disconnect without proper cleanup of byte-range locks, leading to a use-after-free condition when the durable scavenger thread attempts to clean up. This vulnerability has a high severity with a CVSS score of 9.8 and affects multiple Linux kernel versions prior to 6.17.0-1026.26 and related builds. A patch is available and included in updated Linux kernel packages. Users should update and reboot to apply the fix and recompile any third-party kernel modules due to ABI changes.
References
- ubuntu.com/security/CVE-2026-31718 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-31718 (opens in a new tab)
- git.kernel.org/linus/235e32320a470fcd3998fb3774f2290a0eb302a1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8488-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8490-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8491-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8488-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8507-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8508-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8490-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8545-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8546-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8569-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8603-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8604-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8605-1 (opens in a new tab)