Menu

Star on GitHub · 3.2k

CVE-2025-68295

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,…

Published Dec 16, 2025EPSS 0.21%

Overview

CVE-2025-68295 is a known-severity vulnerability. It was published on December 16, 2025.

Technical 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_inod

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-68295?

CVE-2025-68295 is a known-severity vulnerability. It was published on December 16, 2025.

How severe is CVE-2025-68295?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

How do I fix or remediate CVE-2025-68295?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-68295?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-68295 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.