<?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-29T16:57:21.540157+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-89551</id>
    <title>CVE-2026-89551 — SUNRPC: xdr_buf_trim: clamp buf-&gt;len to avoid underflow</title>
    <updated>2026-09-29T16:57:21.551373+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>SUNRPC: xdr_buf_trim: clamp buf-&gt;len to avoid underflow</p>
<p>xdr_buf_trim() trims `len` bytes from the tail of an xdr_buf by
walking the tail, pages, and head iovecs.  Each per-section step
uses min_t() so it never removes more bytes than that section
holds, but the final accounting at the fix_len label subtracts the
total bytes actually consumed from buf-&gt;len without any clamp:</p>
<p>fix_len:
            buf-&gt;len -= (len - trim);</p>
<p>When the caller has set buf-&gt;len to a value smaller than the sum
of the iov_lens, (len - trim) can exceed buf-&gt;len and the unsigned
subtraction wraps to near UINT_MAX.  gss_krb5_unwrap_v2() reaches
xdr_buf_trim() in exactly that state:</p>
<p>buf-&gt;head[0].iov_len -= GSS_KRB5_TOK_HDR_LEN + headskip;
    buf-&gt;len = len - (GSS_KRB5_TOK_HDR_LEN + headskip);
    xdr_buf_trim(buf, ec + GSS_KRB5_TOK_HDR_LEN + tailskip);</p>
<p>buf-&gt;len is a small wire-derived value while the iov_lens are at
page scale, so the per-section loops legitimately consume far more
bytes than buf-&gt;len records.  The wrapped buf-&gt;len then propagates
as the authoritative stream bound into every downstream XDR
decoder.</p>
<p>Fix by clamping the decrement so buf-&gt;len bottoms out at zero:</p>
<p>buf-&gt;len -= min_t(unsigned int, buf-&gt;len, len - trim);</p>
<p>On the normal path where the iov_lens sum to buf-&gt;len, (len - trim)
is always &lt;= buf-&gt;len and the result is identical to before.  No
callers change behavior outside the underflow case.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-89551"/>
  </entry>
</feed>
