<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T12:49:49.226473+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-90125</id>
    <title>CVE-2026-90125 — smb: client: fix request buffer leak in smb2_new_read_req()</title>
    <updated>2026-09-29T12:49:49.239842+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>smb: client: fix request buffer leak in smb2_new_read_req()</p>
<p>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:</p>
<p>rc = smb2_plain_req_init(SMB2_READ, io_parms-&gt;tcon, server,
				 (void **) &amp;req, total_len);
	if (rc)
		return rc;</p>
<p>if (server == NULL)
		return -ECONNABORTED;
	[...]
		rdata-&gt;mr = smbd_register_mr(server-&gt;smbd_conn,
					     &amp;rdata-&gt;subreq.io_iter,
					     true, need_invalidate);
		if (!rdata-&gt;mr)
			return -EAGAIN;</p>
<p>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.</p>
<p>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:</p>
<p>wdata-&gt;mr = smbd_register_mr(...);
	if (!wdata-&gt;mr) {
		rc = -EAGAIN;
		goto async_writev_out;
	}</p>
<p>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.</p>
<p>Only the -EAGAIN return is reachable in practice, because
smb2_plain_req_init() calls smb2_reconnect() first and t…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-90125"/>
  </entry>
</feed>
