Menu

Star on GitHub · 3.2k

CVE-2025-68219

In the Linux kernel, the following vulnerability has been resolved: cifs: fix memory leak in smb3_fs_context_parse_param error path Add proper cleanup of ctx->source and fc->source to the cifs_pa…

Published Dec 16, 2025EPSS 0.20%

Overview

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

Technical description

In the Linux kernel, the following vulnerability has been resolved:

cifs: fix memory leak in smb3_fs_context_parse_param error path

Add proper cleanup of ctx->source and fc->source to the

cifs_parse_mount_err error handler. This ensures that memory allocated

for the source strings is correctly freed on all error paths, matching

the cleanup already performed in the success path by

smb3_cleanup_fs_context_contents().

Pointers are also set to NULL after freeing to prevent potential

double-free issues.

This change fixes a memory leak originally detected by syzbot. The

leak occurred when processing Opt_source mount options if an error

happened after ctx->source and fc->source were successfully

allocated but before the function completed.

The specific leak sequence was:

1. ctx->source = smb3_fs_context_fullpath(ctx, '/') allocates memory

2. fc->source = kstrdup(ctx->source, GFP_KERNEL) allocates more memory

3. A subsequent error jumps to cifs_parse_mount_err

4. The old error handler free

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-68219?

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

How severe is CVE-2025-68219?

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-68219?

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-68219?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-68219 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.