Cloudanix VulnDB

CVE-2025-68817

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Jan 13, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in Linux file-sharing code can let someone already on the computer take full control of the machine.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Full Compromise
Component
OS kernel
Class
Use After Free
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

Use-after-free in ksmbd_tree_connect_put where a tree-connection object is freed on one concurrent disconnect path while another path retains a reference and performs subsequent put or write operations on the freed object.

Why it matters to the business

Local attackers can achieve arbitrary code execution with kernel privileges on Linux systems exposing ksmbd, resulting in full host compromise, data theft, or persistence; high prevalence of Linux kernels increases organizational exposure.

How an attack unfolds

An attacker with local access triggers concurrent SMB tree-connect and disconnect operations against ksmbd; the race frees the tcon object on one path while the other path dereferences it, enabling memory corruption that is turned into kernel code execution.

How to fix it

Upgrade the Linux kernel to a fixed version such as 5.15.199 or apply commit 446beed646b2e426dd53d27358365f8678e1dd01; disable ksmbd if SMB server functionality is not required.

How to confirm the fix worked

Confirm the running kernel version matches or exceeds a listed fixed release and verify the vulnerable ksmbd_tree_connect_put code path is absent via source inspection or kernel symbol checks.

Typical attack path

  1. Obtain local unprivileged access to a Linux host running ksmbd
  2. Issue concurrent SMB tree connect and disconnect requests to induce the race
  3. Trigger use-after-free on the freed tcon object via put/write
  4. Leverage resulting memory corruption for privilege escalation to kernel

How to detect it

Review kernel logs for ksmbd-related crashes, oops, or use-after-free warnings around SMB tree connect activity; no public exploitation artifacts are known.

What your security team should do

  • Apply the listed kernel updates or commit across all affected systems without delay
  • Disable ksmbd where SMB serving is unnecessary to reduce attack surface
  • Audit systems for ksmbd usage and prioritize patching of internet-facing or multi-user hosts

The record

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in ksmbd_tree_connect_put under concurrency Under high concurrency, A tree-connection object (tcon) is freed on a disconnect path while another path still holds a reference and later executes *_put()/write on it.

Affected packages

Ecosystem Package Introduced Fixed
Linux Kernel 0 5.15.199
Mageia:9 kernel 0 6.6.120-1.mga9
Mageia:9 kernel-linus 0 6.6.120-1.mga9
Mageia:9 kmod-virtualbox 0 7.1.14-14.mga9
Mageia:9 kmod-xtables-addons 0 3.24-88.mga9

Related vulnerabilities