# CVE-2026-99427: smb: client: fix OOB last\_entry pointer from unbounded LastNameOffset

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:40:37.965Z
- **Modified:** 2026-11-23T08:17:46.363Z

## Who should check

- Anyone running Linux \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< f9545b63ec9a58dbca0b9ac48424e263b776842d; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 9181a0429c8c457a1231f6b50edd7a8e0ef6058f; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 729ad2e6e48a6bc8a688027746955014499b76fc; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< c6c79b3ba7ce4d94f1d49e7b44010dca3b601b9c; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 9bb37c10bbd57a4a2b7fa61f7c4af479225d0c11; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< daee49d7a51f1edb062581d49684c9cbfb3d7dc9; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< d6074ea8379b4bee953883f3bfa684cbc284eeeb; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 570c783a96f054dd3ac409a92772e9afb705d21c; bc15485e6a3cd20829cfa58bc9111e0bfc9cf303; 282333bd7f759cdd9362e793b85db08780516416; …
- Anyone running Linux 2.6.28

## Description

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

smb: client: fix OOB last\_entry pointer from unbounded LastNameOffset

CIFSFindFirst() and CIFSFindNext() locate the last entry of a
TRANS2\_FIND\_FIRST2 or TRANS2\_FIND\_NEXT2 response by adding the
LastNameOffset of the response parameters to the start of the data
area, and store the result in psrch\_inf-\>last\_entry. MS-CIFS 2.2.6.2.2
defines that offset as the offset of the entry's file name; the client
follows the reading of NT and Samba servers, which point it at the
entry. LastNameOffset is only checked against CIFSMaxBufSize, which
says nothing about the response actually received: validate\_t2() lets
the data area start up to 1024 bytes into the buffer, and SendReceive()
copies at most CIFSMaxBufSize + MAX\_CIFS\_HDR\_SIZE bytes of a response,
16468 by default, into a cifs\_request allocation of CIFSMaxBufSize +
MAX\_SMB2\_HDR\_SIZE bytes, 16588 by default. The pointer itself can
therefore be placed anywhere from the end of the received data to 820
bytes past the end of the allocation.

The read through that pointer is far larger than its displacement.
find\_cifs\_entry() hands last\_entry to cifs\_save\_resume\_key() after every
FindNext and after the FindFirst of a search rewind, and
cifs\_fill\_dirent() takes the length of the name from the entry itself: a
\_\_le32 FileNameLength for most levels, a \_\_u8 for
SMB\_FIND\_FILE\_INFO\_STANDARD, and for SMB\_FIND\_FILE\_UNIX the result of a
scan for the terminating NUL over up to PATH\_MAX + 1 UTF-16 units. The
name is recorded as the resume name of the search, and the next
CIFSFindNext() rejects only a recorded length of PATH\_MAX or more before
copying the name into the ResumeFileName of its request and sending it
with the resume key taken from the same entry: up to 4 KiB of memory
from past the end of the allocation leaks to the server, and for
SMB\_FIND\_FILE\_UNIX the NUL scan runs about twice as far before the
length is even known. The entry does not have to lie outside the
response for that either: a maximal response ends about 120 bytes before
the end of the allocation, so an entry in its last bytes with a name
just under PATH\_MAX has nearly all of that name copied from past the
allocation.

It needs nothing unusual from the client: a FindNext response that
reports no entries and does not end the search makes find\_cifs\_entry()
send the next FindNext at once, carrying whatever was parsed at
LastNameOffset, and a search rewind can do the same after its
FindFirst. SMB1 is not negotiated by default: this takes a malicious
or compromised server, a mount of it with an explicit vers=1.0, which
CONFIG\_CIFS\_ALLOW\_INSECURE\_LEGACY (default y) permits, and a directory
listing on that mount.

With KASAN enabled, a response that places the last entry past the
buffer, with a large DataOffset and a LastNameOffset near the end of
its range, gives:

 ==================================================================
 BUG: KASAN: slab-out-of-bounds in cifs\_save\_resume\_key.isra.0+0x7aa/0x7f0
 Read of size 4 at addr ffff88807b55c33b by task ls/83

 CPU: 1 UID: 0 PID: 83 Comm: ls Not tainted 7.3.0-rc4-00457-gf14572c203d5 \#69 PREEMPT(lazy)
 Call Trace:
  \<TASK\>
  kasan\_report+0xdf/0x1a0
  cifs\_save\_resume\_key.isra.0+0x7aa/0x7f0
  cifs\_readdir+0x1ed6/0x29c0
  iterate\_dir+0x1c0/0x570
  \_\_x64\_sys\_getdents64+0x133/0x270
  do\_syscall\_64+0x109/0x5d0
  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
  \</TASK\>

 Allocated by task 83 on cpu 0 at 19.317556s:
  cifs\_buf\_get+0x36/0x90
  smb\_init+0x4f/0x110
  CIFSFindNext+0xf7/0x14c0
  cifs\_readdir+0xf51/0x29c0

 The buggy address belongs to the object at ffff88807b558000
  which belongs to the cache cifs\_request of size 16588
 The buggy address is located 623 bytes to the right of
  allocated 16588-byte region \[ffff88807b558000, ffff88807b55c0cc)
 ==================================================================

The four bytes read there are the FileNameLength of the entry, which
cifs\_fill\_dirent() tak
---truncated---

## Affected and fixed versions

- Linux: \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< f9545b63ec9a58dbca0b9ac48424e263b776842d; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 9181a0429c8c457a1231f6b50edd7a8e0ef6058f; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 729ad2e6e48a6bc8a688027746955014499b76fc; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< c6c79b3ba7ce4d94f1d49e7b44010dca3b601b9c; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 9bb37c10bbd57a4a2b7fa61f7c4af479225d0c11; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< daee49d7a51f1edb062581d49684c9cbfb3d7dc9; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< d6074ea8379b4bee953883f3bfa684cbc284eeeb; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 570c783a96f054dd3ac409a92772e9afb705d21c; bc15485e6a3cd20829cfa58bc9111e0bfc9cf303; 282333bd7f759cdd9362e793b85db08780516416; … (cvelist)
- Linux: 2.6.28 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99427. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99427.md
Affected: Linux >= 0752f1522a9120f731232919f7ad904e9e22b8ce, < f9545b63ec9a58dbca0b9ac48424e263b776842d; >= 0752f1522a9120f731232919f7ad904e9e22b8ce, < 9181a0429c8c457a1231f6b50edd7a8e0ef6058f; >= 0752f1522a9120f731232919f7ad904e9e22b8ce, < 729ad2e6e48a6bc8a688027746955014499b76fc; >= 0752f1522a9120f73123291…
Fixed in: Linux 9181a0429c8c457a1231f6b50edd7a8e0ef6058f, Linux 729ad2e6e48a6bc8a688027746955014499b76fc, Linux 9bb37c10bbd57a4a2b7fa61f7c4af479225d0c11, Linux 570c783a96f054dd3ac409a92772e9afb705d21c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99427 being exploited?

There is no confirmed exploitation: CVE-2026-99427 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99427?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99427?

Linux \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< f9545b63ec9a58dbca0b9ac48424e263b776842d; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 9181a0429c8c457a1231f6b50edd7a8e0ef6058f; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 729ad2e6e48a6bc8a688027746955014499b76fc; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< c6c79b3ba7ce4d94f1d49e7b44010dca3b601b9c; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 9bb37c10bbd57a4a2b7fa61f7c4af479225d0c11; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< daee49d7a51f1edb062581d49684c9cbfb3d7dc9; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< d6074ea8379b4bee953883f3bfa684cbc284eeeb; \>= 0752f1522a9120f731232919f7ad904e9e22b8ce, \< 570c783a96f054dd3ac409a92772e9afb705d21c; bc15485e6a3cd20829cfa58bc9111e0bfc9cf303; 282333bd7f759cdd9362e793b85db08780516416; …; Linux 2.6.28.

### Is there a fix for CVE-2026-99427?

Yes. Fixed in Linux 9181a0429c8c457a1231f6b50edd7a8e0ef6058f, Linux 729ad2e6e48a6bc8a688027746955014499b76fc, Linux 9bb37c10bbd57a4a2b7fa61f7c4af479225d0c11, Linux 570c783a96f054dd3ac409a92772e9afb705d21c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99427?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f9545b63ec9a58dbca0b9ac48424e263b776842d>
- other: <https://git.kernel.org/stable/c/9181a0429c8c457a1231f6b50edd7a8e0ef6058f>
- other: <https://git.kernel.org/stable/c/729ad2e6e48a6bc8a688027746955014499b76fc>
- other: <https://git.kernel.org/stable/c/c6c79b3ba7ce4d94f1d49e7b44010dca3b601b9c>
- other: <https://git.kernel.org/stable/c/9bb37c10bbd57a4a2b7fa61f7c4af479225d0c11>
- other: <https://git.kernel.org/stable/c/daee49d7a51f1edb062581d49684c9cbfb3d7dc9>
- other: <https://git.kernel.org/stable/c/d6074ea8379b4bee953883f3bfa684cbc284eeeb>
- other: <https://git.kernel.org/stable/c/570c783a96f054dd3ac409a92772e9afb705d21c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99427>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99427> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99427>
