CVE-2025-68295
BaseFortify
Publication date: 2025-12-16
Last updated on: 2025-12-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a memory leak in the Linux kernel's SMB client code, specifically in the function cifs_construct_tcon(). When using a multiuser mount with a specified domain and cifscreds, the function cifs_set_cifscreds() sets the domain name in the context structure without freeing it properly before exiting cifs_construct_tcon(), causing a memory leak.
How can this vulnerability impact me? :
The memory leak can cause increased memory usage over time when using multiuser CIFS mounts with domain credentials, potentially leading to resource exhaustion or degraded system performance.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by using the kmemleak debugging tool in the Linux kernel. The following commands can be used to detect the memory leak related to this vulnerability: 1. Mount the CIFS share with multiuser and domain options: mount.cifs //srv/share /mnt -o domain=ZELDA,multiuser 2. Switch to a test user: su - testuser 3. Add CIFS credentials: cifscreds add -d ZELDA -u testuser 4. Access the mounted share: ls /mnt/1 5. Unmount the share: umount /mnt 6. Trigger kmemleak scan: echo scan > /sys/kernel/debug/kmemleak 7. Check kmemleak output: cat /sys/kernel/debug/kmemleak If unreferenced objects related to the domain name appear, it indicates the presence of the memory leak vulnerability.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves updating the Linux kernel to a version where this vulnerability is fixed. The fix addresses the memory leak in cifs_construct_tcon() by properly freeing the domain name set by cifs_set_cifscreds(). Until the update is applied, avoid using multiuser mounts with the domain option and cifscreds, or monitor and manage memory usage carefully.