CVE-2025-21660

ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked

MEDIUM
5.5
CVSS Score
Published: January 21, 2025 at 12:18 PM UTC
Updated: June 17, 2026 at 08:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked When `ksmbd_vfs_kern_path_locked` met an error and it is not the last entry, it will exit without restoring changed path buffer. But later this buffer may be used as the filename for creation.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.10.13v ≥ 6.11.26.1.113 ≤ v < 6.1.1256.10.13 ≤ v < 6.116.11.2 ≤ v < 6.126.11.2 ≤ v < 6.12.106.12 ≤ v < 6.12.106.12 ≤ v < 6.136.6.54 ≤ v < 6.6.726.1.1136.10.136.11.26.126.13 rc16.13 rc26.13 rc36.13 rc46.13 rc56.13 rc66.6.546ab95e27b77730de3fa2d601db3764490c5eede2c1e27b70e79050530c671b9dab688386c86f039ac5a709f08d40b1a082e44ffcde1aea4d2822ddd5d1b2d2a9c912fc7b788985fbaf944e80f4b3f2afd205cb1a13b37b2660df70a972dedc8c4ba1c2e8
Vendor states this is fixed in 13e41c58c74baa71f34c0830eaa3c29d53a6e964 (fixed)
Vendor states this is fixed in 2ac538e40278a2c0c051cca81bcaafc547d61372 (fixed)
Vendor states this is fixed in 51669f4af5f7959565b48e55691ba92fabf5c587 (fixed)
Vendor states this is fixed in 65b31b9d992c0fb0685c51a0cf09993832734fc4 (fixed)
Vendor states this is fixed in 6.1.125 (unaffected)
Affected range stops below 6.11, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.12.10 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.72 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card