FKIE_CVE-2026-138834

Vulnerability from fkie_nvd - Published: 2026-11-30 14:17 - Updated: 2026-11-30 14:17
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: xprtrdma: trim head iovec when the payload arrives via a Write chunk The upper layer sets rq_rcv_buf.head[0].iov_len from its estimate of the reply header size. For RPCSEC_GSS that estimate includes auth->au_ralign, which gss_create_new() initializes to GSS_VERF_SLACK >> 2 (25 XDR words, or 100 bytes) and which is corrected to the real verifier size only after the first reply on that rpc_auth has been unwrapped. In this case, the krb5 MIC verifier is 36 bytes, so every request encoded before the first reply completes has a head that is 64 bytes too long. On TCP this is harmless: xdr_realign_pages() moves the excess head bytes, which are genuine reply data, into the page list. With RPC-over-RDMA and a Write chunk (sec=krb5, i.e. RPC_GSS_SVC_NONE, where DDP is allowed), the payload has already been placed directly into the page list, and the receive buffer holds only the inline part of the reply. rpcrdma_inline_fixup() clamps its local copy of the head length to the inline length but leaves head.iov_len untouched, so xdr_realign_pages() still sees iov_len > cur and shifts whatever lies past the inline reply in the receive buffer into the front of the directly-placed payload: rpc_xdr_recvfrom: head=[...,196] page=524288 tail=[...,64] rpc_xdr_alignment: nfsv4 READ offset=132 copied=64 The first 64 bytes returned by each such READ are incorrect (zeroed, or shifted right by 64 bytes depending on the kernel's xdr_shrink_bufhead() implementation). This is readily hit with pNFS flexfiles over RDMA and sec=krb5: the per-DS rpc_clnt gets a fresh rpc_auth whose first RPC is a large READ. Reads following the first completed reply return the expected data. Commit cb0ae1fbb2f5 ("xprtrdma: Do not update {head, tail}.iov_len in rpcrdma_inline_fixup()") removed the head-length correction while fixing the handling of pure-inline krb5p replies. When a Write chunk conveyed the payload, trim head.iov_len (in both rq_rcv_buf and rq_private_buf, which call_decode() expects to match) to the inline length actually received so that the XDR layer does not realign the page list. These READ replies have no trailing inline fields, and the payload is already in the page list, so the upper layer's head estimate can be safely reduced. Reduce buflen by the same amount to avoid treating unused head capacity as additional tail capacity. Pure inline replies and Reply chunk replies are unchanged. Tested on Linux 6.8.0 and 7.3-rc4 with NFSv4.1 pNFS flexfiles over RPC/RDMA and sec=krb5.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/sunrpc/xprtrdma/rpc_rdma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5efe2b84533da40717fb04567a810c3d706b5e3e",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            },
            {
              "lessThan": "59b974dde5146982f98d1c72cae4fa303de2d75d",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            },
            {
              "lessThan": "b476d382e73a00aff0a203e9bce7bd04c516461d",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            },
            {
              "lessThan": "fe91fe83f2d958aec8e70ed039702550790028e0",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            },
            {
              "lessThan": "eb731fe0e4ddc2085a6f468add36574f85e1f80f",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            },
            {
              "lessThan": "85eaf47588492bc75206b27b0c679610e49d2a81",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            },
            {
              "lessThan": "7589b3a3d006813f4192b122123e46a9339ba06c",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            },
            {
              "lessThan": "9ee534a75912361308b1f956bc3e7895a082a422",
              "status": "affected",
              "version": "cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/sunrpc/xprtrdma/rpc_rdma.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.8"
            },
            {
              "lessThan": "4.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.275",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxprtrdma: trim head iovec when the payload arrives via a Write chunk\n\nThe upper layer sets rq_rcv_buf.head[0].iov_len from its estimate of the\nreply header size. For RPCSEC_GSS that estimate includes\nauth-\u003eau_ralign, which gss_create_new() initializes to GSS_VERF_SLACK \u003e\u003e\n2 (25 XDR words, or 100 bytes) and which is corrected to the real\nverifier size only after the first reply on that rpc_auth has been\nunwrapped. In this case, the krb5 MIC verifier is 36 bytes, so every\nrequest encoded before the first reply completes has a head that is 64\nbytes too long.\n\nOn TCP this is harmless: xdr_realign_pages() moves the excess head\nbytes, which are genuine reply data, into the page list. With\nRPC-over-RDMA and a Write chunk (sec=krb5, i.e. RPC_GSS_SVC_NONE, where\nDDP is allowed), the payload has already been placed directly into the\npage list, and the receive buffer holds only the inline part of the\nreply. rpcrdma_inline_fixup() clamps its local copy of the head length\nto the inline length but leaves head.iov_len untouched, so\nxdr_realign_pages() still sees iov_len \u003e cur and shifts whatever lies\npast the inline reply in the receive buffer into the front of the\ndirectly-placed payload:\n\n  rpc_xdr_recvfrom:  head=[...,196] page=524288 tail=[...,64]\n  rpc_xdr_alignment: nfsv4 READ offset=132 copied=64\n\nThe first 64 bytes returned by each such READ are incorrect (zeroed, or\nshifted right by 64 bytes depending on the kernel\u0027s xdr_shrink_bufhead()\nimplementation). This is readily hit with pNFS flexfiles over RDMA and\nsec=krb5: the per-DS rpc_clnt gets a fresh rpc_auth whose first RPC is a\nlarge READ. Reads following the first completed reply return the\nexpected data.\n\nCommit cb0ae1fbb2f5 (\"xprtrdma: Do not update {head, tail}.iov_len in\nrpcrdma_inline_fixup()\") removed the head-length correction while fixing\nthe handling of pure-inline krb5p replies.\n\nWhen a Write chunk conveyed the payload, trim head.iov_len (in both\nrq_rcv_buf and rq_private_buf, which call_decode() expects to match) to\nthe inline length actually received so that the XDR layer does not\nrealign the page list. These READ replies have no trailing inline\nfields, and the payload is already in the page list, so the upper\nlayer\u0027s head estimate can be safely reduced. Reduce buflen by the same\namount to avoid treating unused head capacity as additional tail\ncapacity. Pure inline replies and Reply chunk replies are unchanged.\n\nTested on Linux 6.8.0 and 7.3-rc4 with NFSv4.1 pNFS flexfiles over\nRPC/RDMA and sec=krb5."
    }
  ],
  "id": "CVE-2026-138834",
  "lastModified": "2026-11-30T14:17:38.047",
  "metrics": {},
  "published": "2026-11-30T14:17:38.047",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/59b974dde5146982f98d1c72cae4fa303de2d75d"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/5efe2b84533da40717fb04567a810c3d706b5e3e"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/7589b3a3d006813f4192b122123e46a9339ba06c"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/85eaf47588492bc75206b27b0c679610e49d2a81"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/9ee534a75912361308b1f956bc3e7895a082a422"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/b476d382e73a00aff0a203e9bce7bd04c516461d"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/eb731fe0e4ddc2085a6f468add36574f85e1f80f"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/fe91fe83f2d958aec8e70ed039702550790028e0"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.