CVE-2025-68295

Linux Kernel - Memory Leak in SMB Client TCON Construction

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix memory leak in cifs_construct_tcon() When having a multiuser mount with domain= specified and using cifscreds, cifs_set_cifscreds() will end up setting @ctx->domainname, so it needs to be freed before leaving cifs_construct_tcon(). This fixes the following memory leak reported by kmemleak: mount.cifs //srv/share /mnt -o domain=ZELDA,multiuser,... su - testuser cifscreds add -d ZELDA -u testuser ... ls /mnt/1 ... umount /mnt echo scan > /sys/kernel/debug/kmemleak cat /sys/kernel/debug/kmemleak unreferenced object 0xffff8881203c3f08 (size 8): comm "ls", pid 5060, jiffies 4307222943 hex dump (first 8 bytes): 5a 45 4c 44 41 00 cc cc ZELDA... backtrace (crc d109a8cf): __kmalloc_node_track_caller_noprof+0x572/0x710 kstrdup+0x3a/0x70 cifs_sb_tlink+0x1209/0x1770 [cifs] cifs_get_fattr+0xe1/0xf50 [cifs] cifs_get_inode_info+0xb5/0x240 [cifs] cifs_revalidate_dentry_attr+0x2d1/0x470 [cifs] cifs_getattr+0x28e/0x450 [cifs] vfs_getattr_nosec+0x126/0x180 vfs_statx+0xf6/0x220 do_statx+0xab/0x110 __x64_sys_statx+0xd5/0x130 do_syscall_64+0xbb/0x380 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Scores

EPSS 0.0008
EPSS Percentile 22.7%

Details

Status published
Products (32)
linux/Kernel 5.11.0 - 5.15.197linux
linux/Kernel 5.16.0 - 6.1.159linux
linux/Kernel 5.3.0 - 5.10.247linux
linux/Kernel 6.13.0 - 6.17.11linux
linux/Kernel 6.2.0 - 6.6.119linux
linux/Kernel 6.7.0 - 6.12.61linux
Linux/Linux < 5.3
Linux/Linux 1456d3cea31114137fabf1110d20a2e2c6d6060f
Linux/Linux 16764d7486d02b1699ae16e91d7a577602398b17
Linux/Linux 325fa2a6729b74b2806b31725940cb54658515e5
... and 22 more
Published Dec 16, 2025
Tracked Since Feb 18, 2026