HIGH Introduced in 3.6
smb client Symlink Leak
CVE-2026-98451
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
KernelScan AI5.5MEDIUM
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 3.6 | 5.10.273 | bc585d5a381a |
| 5.15 | 3.6 | 5.15.224 | 26f4bca335e7 |
| 6.1 | 3.6 | 6.1.191 | 51c7b0593f6e |
| 6.12 | 3.6 | 6.12.113 | ed03d547598c |
| 6.18 | 3.6 | 6.18.56 | 70a7918fda54 |
| 6.6 | 3.6 | 6.6.160 | 045532f920d8 |
| 7.2 | 3.6 | 7.2.9 | 3c07deb26273 |
| mainline | 3.6 | 7.3 | e66cf1625ec4 |
| cip/6.12 | 3.6 | 6.12.114-cip34 | ed03d547598c |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip116) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |