PT-2026-36348 · Linux+1 · Linux Kernel+1

CVE-2026-31718

·

Published

2026-04-04

·

Updated

2026-07-24

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A use-after-free issue exists in the ksmbd module of the Linux kernel. When a durable file handle persists after a session disconnect (TCP close without SMB2 LOGOFF), the session fd check() function sets fp->conn to NULL but fails to clean up byte-range locks on fp->lock list. Subsequently, when the durable scavenger thread times out and invokes the ksmbd close fd() function, it attempts to acquire a spin lock using fp->conn->llist lock. Since fp->conn is NULL and the original connection object was already freed by ksmbd tcp disconnect(), a slab use-after-free occurs. This is caused by asymmetric cleanup where lock entries (smb lock->clist) remain dangling on the freed conn->lock list while fp->conn is nulled.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

RCE

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-10729
CVE-2026-31718
OPENSUSE-SU-2026:10793-1
USN-8488-1
USN-8488-2
USN-8490-1
USN-8490-2
USN-8491-1
USN-8507-1
USN-8508-1
USN-8545-1
USN-8546-1
USN-8569-1
USN-8603-1
USN-8604-1
USN-8605-1

Affected Products

Linuxmint
Linux Kernel