KernelScan.io

HIGH Introduced in 3.6

smb client Symlink Leak

CVE-2026-98451

CVSS 8.8 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

KernelScan AI5.5MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: smb: client: use finish_no_open() for non-regular inodes An O_CREAT open can find an existing symlink or another non-regular inode. cifs_atomic_open() calls finish_open() on it and attaches a cifsFileInfo. Symlink inodes have no CIFS release operation, so the dentry reference held by cifsFileInfo is leaked. FMODE_OPENED also prevents the VFS from following the symlink. Track whether cifs_do_create() returned an open server handle. For non-regular inodes, close the handle if present, remove the pending open, and call finish_no_open() so the VFS can continue the lookup. Do not set FMODE_CREATED unless a regular file was opened. For O_NOFOLLOW with __O_REGULAR, return -ELOOP before the VFS's -EFTYPE check. Defer closing a legacy POSIX handle on a non-regular inode until after inode lookup. This avoids closing it again if lookup fails.

02

Engine v0.9.0

Risk summary

A local user who can mount an SMB share and create a symlink on it can trigger a dentry reference leak in the kernel's SMB client. Repeated exploitation exhausts kernel memory, leading to denial of service. The bug is reachable from an unprivileged context once the share is mounted.

Affectedfs/smb/client/dir.c (smb client)

Vulnerability analysis

When an O_CREAT open encounters an existing symlink or other non-regular inode on an SMB share, the SMB client incorrectly calls finish_open() and attaches a cifsFileInfo structure to it. Because symlink inodes lack a CIFS release operation, the dentry reference held by that structure is never released, leaking a kernel reference each time the path is taken. Additionally, FMODE_OPENED prevents the VFS from following the symlink, breaking normal lookup semantics. The fix tracks whether the server actually returned an open handle; for non-regular inodes it closes any handle, removes the pending open state, and calls finish_no_open() so the VFS can continue the lookup. FMODE_CREATED is now set only for regular files, and O_NOFOLLOW with __O_REGULAR returns -ELOOP early. The vulnerability requires a local user with access to a mounted SMB share — no special privileges beyond the ability to create a symlink on that share.

03

BranchIntroducedFixed inPatch commit
5.103.65.10.273bc585d5a381a
5.153.65.15.22426f4bca335e7
6.13.66.1.19151c7b0593f6e
6.123.66.12.113ed03d547598c
6.183.66.18.5670a7918fda54
6.63.66.6.160045532f920d8
7.23.67.2.93c07deb26273
mainline3.67.3e66cf1625ec4
cip/6.123.66.12.114-cip34ed03d547598c

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip137-rt51)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip116)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)