# CVE-2026-99381: smb: client: reject short or out-of-range FIND response parameters

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-28)
- **Published:** 2026-11-19T14:23:21.659Z
- **Modified:** 2026-11-19T15:17:50.177Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1374082f0897c95610190dfacce463904ec11ea2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 531aa4239b0d80d7146b102b98f7aa7da989ccdd
- Anyone running Linux 2.6.12

## Description

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

smb: client: reject short or out-of-range FIND response parameters

CIFSFindFirst() and CIFSFindNext() read the SearchHandle, SearchCount,
EndofSearch and LastNameOffset of a TRANS2\_FIND\_FIRST2 or
TRANS2\_FIND\_NEXT2 response at ParameterOffset. validate\_t2() bounds
the offset at 1024 and ParameterCount below 512, and nothing compares
them with the number of bytes SendReceive() copied into the buffer or
with the size of the response parameters. smb\_init() places the
request and the response in the same cifs\_request allocation and
cifs\_buf\_get() clears only the start of it, so a short response with a
ParameterOffset past its end has the search handle, the entry count,
the end-of-search flag and the last-entry offset read out of the
request that was just sent, or out of whatever the allocation held
before, and a ParameterCount smaller than the parameters has them read
past the end of the parameter block. The reads stay inside the
allocation, but what they return is not part of the response, and
CIFSFindFirst() then hands back a search handle the server never sent.
That handle is sent back to the server in the next FIND\_NEXT2 or
FIND\_CLOSE2, so two bytes of the buffer leak at an offset the server
picks.

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

Reject a response whose parameter area is smaller than the response
parameters or extends past the received length, returning smb\_EIO2()
with a new smb\_eio\_traces value for each of the two responses, like
the other response checks this file gained since v6.19. Backports to
trees before v6.19 need smb\_EIO2() replaced with -EINVAL and the
trace.h hunk dropped.

A conforming server is not affected. The parameter block of a
transaction response is part of the SMB, so ParameterOffset +
ParameterCount cannot exceed the smbCalcSize() bytes that
SendReceive() copies, and the response parameters are 10 bytes for
FIND\_FIRST2 and 8 bytes for FIND\_NEXT2, which is what
T2\_FFIRST\_RSP\_PARMS and T2\_FNEXT\_RSP\_PARMS hold.

This patch depends on "smb: client: reject FIND data areas that run
past the received response", whose declarations it extends.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1374082f0897c95610190dfacce463904ec11ea2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 531aa4239b0d80d7146b102b98f7aa7da989ccdd (cvelist)
- Linux: 2.6.12 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 531aa4239b0d80d7146b102b98f7aa7da989ccdd 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-99381. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99381.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1374082f0897c95610190dfacce463904ec11ea2; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 531aa4239b0d80d7146b102b98f7aa7da989ccdd; Linux 2.6.12
Fixed in: Linux 1374082f0897c95610190dfacce463904ec11ea2, Linux 531aa4239b0d80d7146b102b98f7aa7da989ccdd

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1374082f0897c95610190dfacce463904ec11ea2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 531aa4239b0d80d7146b102b98f7aa7da989ccdd; Linux 2.6.12.

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

Yes. Fixed in Linux 1374082f0897c95610190dfacce463904ec11ea2, Linux 531aa4239b0d80d7146b102b98f7aa7da989ccdd. Upgrade Linux to 531aa4239b0d80d7146b102b98f7aa7da989ccdd or later.

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

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/1374082f0897c95610190dfacce463904ec11ea2>
- other: <https://git.kernel.org/stable/c/531aa4239b0d80d7146b102b98f7aa7da989ccdd>

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

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