# CVE-2026-90125: smb: client: fix request buffer leak in smb2\_new\_read\_req()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-09-17T16:06:27.924Z
- **Modified:** 2026-10-30T13:20:42.500Z

## Who should check

- Anyone running Linux \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 38daae149c2102d96833cc6acd79c8f98fcce208; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 58066940076b90c16e821fd6f9767cd979cbdb5e; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 12092ed28434bf41e08d41e3c5269eb6b337fc02; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 442c5f1358ced0d4e716778ac06f1e323a7e4f21; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 73f6bdb0380486ab37fe12cd74de20abfaf5d3ae; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< deb6468f4164640e4dc875f008aa449cf55987a5
- Anyone running Linux 4.16

## Description

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

smb: client: fix request buffer leak in smb2\_new\_read\_req()

smb2\_new\_read\_req() allocates the request buffer with
smb2\_plain\_req\_init() but only publishes it to the caller with
\*buf = req at the very end of the function. Two error returns sit in
between:

	rc = smb2\_plain\_req\_init(SMB2\_READ, io\_parms-\>tcon, server,
				 (void \*\*) &req, total\_len);
	if (rc)
		return rc;

	if (server == NULL)
		return -ECONNABORTED;
	\[...\]
		rdata-\>mr = smbd\_register\_mr(server-\>smbd\_conn,
					     &rdata-\>subreq.io\_iter,
					     true, need\_invalidate);
		if (!rdata-\>mr)
			return -EAGAIN;

On either of them the buffer is neither released nor handed back, so
it is leaked. The caller cannot clean up after it: smb2\_async\_readv()
does 'goto out' on a non-zero return, which skips the
cifs\_small\_buf\_release(buf) at async\_readv\_out, and buf has not been
assigned at that point in any case.

The write path has never had this problem. smb2\_async\_writev()
registers the memory region inline and jumps to its release label
instead of returning:

	wdata-\>mr = smbd\_register\_mr(...);
	if (!wdata-\>mr) {
		rc = -EAGAIN;
		goto async\_writev\_out;
	}

Commit b7972092199f ("cifs: smbd: Retry on memory registration
failure") changed both sides from -ENOBUFS to -EAGAIN in a single
patch, which puts the two shapes next to each other.

Only the -EAGAIN return is reachable in practice, because
smb2\_plain\_req\_init() calls smb2\_reconnect() first and that already
fails with -EIO when server is NULL, before anything is allocated.
Both returns are given the same treatment here rather than leaving
one of them correct only by accident.

Because -EAGAIN is a replayable error, the failure also reaches the
retry block at the end of smb2\_async\_readv(), which marks the
subrequest NETFS\_SREQ\_NEED\_RETRY, so a failing registration can be
retried rather than ending the I/O, and every attempt that reaches it
leaks another buffer. smb2\_should\_replay() short-circuits on
tcon-\>retry, so on a hard mount the attempt count is not bounded by
the retrans setting.

Only the asynchronous read path is affected. The synchronous
SMB2\_read() caller passes rdata == NULL and the memory registration
block is guarded on rdata.

The memory registration failure path was pointed out by the Sashiko
AI reviewer while it was reviewing an unrelated patch to
smb2\_async\_readv().

## Affected and fixed versions

- Linux: \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 38daae149c2102d96833cc6acd79c8f98fcce208; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 58066940076b90c16e821fd6f9767cd979cbdb5e; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 12092ed28434bf41e08d41e3c5269eb6b337fc02; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 442c5f1358ced0d4e716778ac06f1e323a7e4f21; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 73f6bdb0380486ab37fe12cd74de20abfaf5d3ae; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< deb6468f4164640e4dc875f008aa449cf55987a5 (cvelist)
- Linux: 4.16 (cvelist)

## 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-90125. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90125.md
Affected: Linux >= bd3dcc6a22a9186ed78da51ce09e889803552189, < 38daae149c2102d96833cc6acd79c8f98fcce208; >= bd3dcc6a22a9186ed78da51ce09e889803552189, < 58066940076b90c16e821fd6f9767cd979cbdb5e; >= bd3dcc6a22a9186ed78da51ce09e889803552189, < 12092ed28434bf41e08d41e3c5269eb6b337fc02; >= bd3dcc6a22a9186ed78da51…
Fixed in: Linux 38daae149c2102d96833cc6acd79c8f98fcce208, Linux 58066940076b90c16e821fd6f9767cd979cbdb5e, Linux 12092ed28434bf41e08d41e3c5269eb6b337fc02, Linux 442c5f1358ced0d4e716778ac06f1e323a7e4f21, Linux 73f6bdb0380486ab37fe12cd74de20abfaf5d3ae

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 38daae149c2102d96833cc6acd79c8f98fcce208; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 58066940076b90c16e821fd6f9767cd979cbdb5e; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 12092ed28434bf41e08d41e3c5269eb6b337fc02; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 442c5f1358ced0d4e716778ac06f1e323a7e4f21; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< 73f6bdb0380486ab37fe12cd74de20abfaf5d3ae; \>= bd3dcc6a22a9186ed78da51ce09e889803552189, \< deb6468f4164640e4dc875f008aa449cf55987a5; Linux 4.16.

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

Yes. Fixed in Linux 38daae149c2102d96833cc6acd79c8f98fcce208, Linux 58066940076b90c16e821fd6f9767cd979cbdb5e, Linux 12092ed28434bf41e08d41e3c5269eb6b337fc02, Linux 442c5f1358ced0d4e716778ac06f1e323a7e4f21, Linux 73f6bdb0380486ab37fe12cd74de20abfaf5d3ae. No fix listed yet: follow the vendor advisory.

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

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/38daae149c2102d96833cc6acd79c8f98fcce208>
- other: <https://git.kernel.org/stable/c/58066940076b90c16e821fd6f9767cd979cbdb5e>
- other: <https://git.kernel.org/stable/c/12092ed28434bf41e08d41e3c5269eb6b337fc02>
- other: <https://git.kernel.org/stable/c/442c5f1358ced0d4e716778ac06f1e323a7e4f21>
- other: <https://git.kernel.org/stable/c/73f6bdb0380486ab37fe12cd74de20abfaf5d3ae>
- other: <https://git.kernel.org/stable/c/deb6468f4164640e4dc875f008aa449cf55987a5>

## 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-90125>

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