# CVE-2025-68295: smb: client: fix memory leak in cifs\_construct\_tcon()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-16T15:06:14.977Z
- **Modified:** 2026-10-14T16:10:00.250Z

## Who should check

- Anyone running Linux \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< ff8f9bd1c46ee02d5558293915d42e82646d5ee9; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< d146e96fef876492979658dce644305de35878d4; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< 3dd546e867e94c2f954bca45a961b6104ba708b6; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< f62ffdfb431bdfa4b6d24233b7fd830eca0b801e; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< f15288c137d960836277d0e3ecc62de68e52f00f; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< a67e91d5f446e455dd9201cdd6e865f7078d251d; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< 3184b6a5a24ec9ee74087b2a550476f386df7dc2; 1456d3cea31114137fabf1110d20a2e2c6d6060f; 16764d7486d02b1699ae16e91d7a577602398b17; 904847402bd74a28164bd4d8da082d1eace7c190; …
- Anyone running Linux 5.3

## 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

## Affected and fixed versions

- Linux: \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< ff8f9bd1c46ee02d5558293915d42e82646d5ee9; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< d146e96fef876492979658dce644305de35878d4; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< 3dd546e867e94c2f954bca45a961b6104ba708b6; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< f62ffdfb431bdfa4b6d24233b7fd830eca0b801e; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< f15288c137d960836277d0e3ecc62de68e52f00f; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< a67e91d5f446e455dd9201cdd6e865f7078d251d; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< 3184b6a5a24ec9ee74087b2a550476f386df7dc2; 1456d3cea31114137fabf1110d20a2e2c6d6060f; 16764d7486d02b1699ae16e91d7a577602398b17; 904847402bd74a28164bd4d8da082d1eace7c190; … (cvelist)
- Linux: 5.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68295. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68295.md
Affected: Linux >= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, < ff8f9bd1c46ee02d5558293915d42e82646d5ee9; >= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, < d146e96fef876492979658dce644305de35878d4; >= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, < 3dd546e867e94c2f954bca45a961b6104ba708b6; >= f2aee329a68f5a907bcff11…
Fixed in: Linux 3dd546e867e94c2f954bca45a961b6104ba708b6, Linux 3184b6a5a24ec9ee74087b2a550476f386df7dc2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68295 being exploited?

There is no confirmed exploitation: CVE-2025-68295 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68295?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68295?

Linux \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< ff8f9bd1c46ee02d5558293915d42e82646d5ee9; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< d146e96fef876492979658dce644305de35878d4; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< 3dd546e867e94c2f954bca45a961b6104ba708b6; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< f62ffdfb431bdfa4b6d24233b7fd830eca0b801e; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< f15288c137d960836277d0e3ecc62de68e52f00f; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< a67e91d5f446e455dd9201cdd6e865f7078d251d; \>= f2aee329a68f5a907bcff11a109dfe17c0b41aeb, \< 3184b6a5a24ec9ee74087b2a550476f386df7dc2; 1456d3cea31114137fabf1110d20a2e2c6d6060f; 16764d7486d02b1699ae16e91d7a577602398b17; 904847402bd74a28164bd4d8da082d1eace7c190; …; Linux 5.3.

### Is there a fix for CVE-2025-68295?

Yes. Fixed in Linux 3dd546e867e94c2f954bca45a961b6104ba708b6, Linux 3184b6a5a24ec9ee74087b2a550476f386df7dc2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-68295?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ff8f9bd1c46ee02d5558293915d42e82646d5ee9>
- other: <https://git.kernel.org/stable/c/d146e96fef876492979658dce644305de35878d4>
- other: <https://git.kernel.org/stable/c/3dd546e867e94c2f954bca45a961b6104ba708b6>
- other: <https://git.kernel.org/stable/c/f62ffdfb431bdfa4b6d24233b7fd830eca0b801e>
- other: <https://git.kernel.org/stable/c/f15288c137d960836277d0e3ecc62de68e52f00f>
- other: <https://git.kernel.org/stable/c/a67e91d5f446e455dd9201cdd6e865f7078d251d>
- other: <https://git.kernel.org/stable/c/3184b6a5a24ec9ee74087b2a550476f386df7dc2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68295>

HTML: <https://flawdb.com/CVE-2025-68295> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68295>
