CVE-2026-90125
smb: client: fix request buffer leak in smb2_new_read_req()
Check your servers for CVE-2026-90125
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-90125 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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().
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.88% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from bd3dcc6a22a9186ed78da51ce09e889803552189, before 38daae149c2102d96833cc6acd79c8f98fcce208 affected from bd3dcc6a22a9186ed78da51ce09e889803552189, before 58066940076b90c16e821fd6f9767cd979cbdb5e affected from bd3dcc6a22a9186ed78da51ce09e889803552189, before 12092ed28434bf41e08d41e3c5269eb6b337fc02 affected from bd3dcc6a22a9186ed78da51ce09e889803552189, before 442c5f1358ced0d4e716778ac06f1e323a7e4f21 affected from bd3dcc6a22a9186ed78da51ce09e889803552189, before 73f6bdb0380486ab37fe12cd74de20abfaf5d3ae affected from bd3dcc6a22a9186ed78da51ce09e889803552189, before deb6468f4164640e4dc875f008aa449cf55987a5
Other versions: unaffected
|
| Linux |
affected 4.16 unaffected before 4.16 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.157 up to and including 6.6.* unaffected from 6.12.110 up to and including 6.12.* unaffected from 6.18.52 up to and including 6.18.* unaffected from 7.2.6 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-90125 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-90125
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-90125
trivy image --scanners vuln IMAGE | grep CVE-2026-90125
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/38daae149c2102d96833cc6acd79c8f98fcce208 git.kernel.org
- https://git.kernel.org/stable/c/58066940076b90c16e821fd6f9767cd979cbdb5e git.kernel.org
- https://git.kernel.org/stable/c/12092ed28434bf41e08d41e3c5269eb6b337fc02 git.kernel.org
- https://git.kernel.org/stable/c/442c5f1358ced0d4e716778ac06f1e323a7e4f21 git.kernel.org
- https://git.kernel.org/stable/c/73f6bdb0380486ab37fe12cd74de20abfaf5d3ae git.kernel.org
- https://git.kernel.org/stable/c/deb6468f4164640e4dc875f008aa449cf55987a5 git.kernel.org
Source: the record CVE-2026-90125 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse