# CVE-2026-99526: smb: client: fix use-after-free infoleak via the readdir resume name

- **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:44:38.249Z
- **Modified:** 2026-11-23T08:17:54.697Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6386f2f406ccebfb66997b288a694e35e61d2d54; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 44deaa4a4cbd8c9e4cd0c577ac78090c3372428e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d065da30398162e477d427c7b3cb83589f043614; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 24e83a84521e2812a31eba38ee7c1285af2b3ab1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c8f8029fe07634b626e96472b584b29a33993b8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a3481ed0aea2fc41a6d892a586b6eb7a97662034; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 59131dd72f62b198fc9ea1489ad9d3573154f684
- Anyone running Linux 2.6.12

## Description

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

smb: client: fix use-after-free infoleak via the readdir resume name

CIFSFindNext() copies the resume name that cifs\_save\_resume\_key()
recorded from the last entry of the previous response into its request;
psrch\_inf-\>presume\_name points into the response buffer that entry came
from, and nothing ever clears it. find\_cifs\_entry() records a new
name only from a response with a usable last entry, and cifs\_readdir()
only from an entry it walks to, so a response that carries no entries
and leaves last\_entry NULL, because CIFSFindFirst() or CIFSFindNext()
rejected LastNameOffset, refreshes neither and presume\_name keeps
pointing into the previous response. That buffer has already been
released: by CIFSFindNext() before it installs the new response, or by
find\_cifs\_entry() when it rewinds the search, which does not drop the
name either and can then fail in initiate\_cifs\_search() before a new
response replaces it. The next CIFSFindNext() then copies up to
PATH\_MAX - 1 bytes of the resume name out of the released buffer into
its request and sends them to the server: a use-after-free read
that leaks kernel memory to a malicious or compromised server, which
can provoke it with a single FindNext response that carries no entries
and a LastNameOffset above CIFSMaxBufSize, which is all the existing
check rejects.

With KASAN enabled, a server that answers a listing that way gives:

 CIFS: VFS: ignoring corrupt resume name
 ==================================================================
 BUG: KASAN: slab-use-after-free in CIFSFindNext+0x8ca/0x14c0
 Read of size 4080 at addr ffff88807c823f98 by task ls/83

 CPU: 0 UID: 0 PID: 83 Comm: ls Tainted: G    B               7.3.0-rc4-00457-gf14572c203d5 \#69 PREEMPT(lazy)
 Tainted: \[B\]=BAD\_PAGE
 Call Trace:
  \<TASK\>
  kasan\_report+0xdf/0x1a0
  kasan\_check\_range+0x10f/0x1e0
  \_\_asan\_memcpy+0x23/0x60
  CIFSFindNext+0x8ca/0x14c0
  cifs\_readdir+0xf51/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 1 at 13.497119s:
  cifs\_buf\_get+0x36/0x90
  smb\_init+0x4f/0x110
  CIFSFindNext+0xf7/0x14c0
  cifs\_readdir+0xf51/0x29c0

 Freed by task 83 on cpu 0 at 13.584018s:
  cifs\_buf\_release+0x41/0x80
  CIFSFindNext+0xfce/0x14c0
  cifs\_readdir+0xf51/0x29c0

 The buggy address is located 16280 bytes inside of
  freed 16588-byte region \[ffff88807c820000, ffff88807c8240cc)
 ==================================================================

The same memcpy() first reads past the end of that object while it is
still live, a slab-out-of-bounds read that the following patches
bound; that is the taint the report above carries.

SMB1 is not negotiated by default; reaching this code requires an
explicit vers=1.0 mount.

Clear presume\_name and resume\_name\_len whenever a new response is
installed and when the rewind path releases the search buffer, so that
the name never outlives the buffer it points into, and reset
resume\_key with them, since it was taken from the same entry and would
otherwise be sent with an empty name. A response without a usable
last entry then continues the search with an empty resume name rather
than a stale one; CIFSFindNext() skips the copy of a zero-length name
so that it never runs on the NULL pointer.

The next patch in the series leaves last\_entry NULL for a response
that carries no entries, and bounds LastNameOffset against the
received response rather than against CIFSMaxBufSize. Responses that
are given a last entry today then take the path fixed here, so that
patch must not be applied without this one.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6386f2f406ccebfb66997b288a694e35e61d2d54; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 44deaa4a4cbd8c9e4cd0c577ac78090c3372428e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d065da30398162e477d427c7b3cb83589f043614; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 24e83a84521e2812a31eba38ee7c1285af2b3ab1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c8f8029fe07634b626e96472b584b29a33993b8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a3481ed0aea2fc41a6d892a586b6eb7a97662034; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 59131dd72f62b198fc9ea1489ad9d3573154f684 (cvelist)
- Linux: 2.6.12 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 59131dd72f62b198fc9ea1489ad9d3573154f684 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99526.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6386f2f406ccebfb66997b288a694e35e61d2d54; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 44deaa4a4cbd8c9e4cd0c577ac78090c3372428e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < d065da30398162e477d427c7b3cb83589f043614; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 6386f2f406ccebfb66997b288a694e35e61d2d54, Linux 44deaa4a4cbd8c9e4cd0c577ac78090c3372428e, Linux 24e83a84521e2812a31eba38ee7c1285af2b3ab1, Linux 8c8f8029fe07634b626e96472b584b29a33993b8, Linux 6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15, Linux 59131dd72f62b198fc9ea1489ad9d3573154f684

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-99526 being exploited?

There is no confirmed exploitation: CVE-2026-99526 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-99526?

It has no CVSS score yet. Unknown.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6386f2f406ccebfb66997b288a694e35e61d2d54; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 44deaa4a4cbd8c9e4cd0c577ac78090c3372428e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d065da30398162e477d427c7b3cb83589f043614; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 24e83a84521e2812a31eba38ee7c1285af2b3ab1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c8f8029fe07634b626e96472b584b29a33993b8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a3481ed0aea2fc41a6d892a586b6eb7a97662034; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 59131dd72f62b198fc9ea1489ad9d3573154f684; Linux 2.6.12.

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

Yes. Fixed in Linux 6386f2f406ccebfb66997b288a694e35e61d2d54, Linux 44deaa4a4cbd8c9e4cd0c577ac78090c3372428e, Linux 24e83a84521e2812a31eba38ee7c1285af2b3ab1, Linux 8c8f8029fe07634b626e96472b584b29a33993b8, Linux 6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15, Linux 59131dd72f62b198fc9ea1489ad9d3573154f684. Upgrade Linux to 59131dd72f62b198fc9ea1489ad9d3573154f684 or later.

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

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/6386f2f406ccebfb66997b288a694e35e61d2d54>
- other: <https://git.kernel.org/stable/c/44deaa4a4cbd8c9e4cd0c577ac78090c3372428e>
- other: <https://git.kernel.org/stable/c/d065da30398162e477d427c7b3cb83589f043614>
- other: <https://git.kernel.org/stable/c/24e83a84521e2812a31eba38ee7c1285af2b3ab1>
- other: <https://git.kernel.org/stable/c/8c8f8029fe07634b626e96472b584b29a33993b8>
- other: <https://git.kernel.org/stable/c/6c4c12b0fadcb71e4e6616e6c1ca529c772f2a15>
- other: <https://git.kernel.org/stable/c/a3481ed0aea2fc41a6d892a586b6eb7a97662034>
- other: <https://git.kernel.org/stable/c/59131dd72f62b198fc9ea1489ad9d3573154f684>

## 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-99526>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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