{"api_version":"1","generated_at":"2026-12-02T18:22:59+00:00","cve":"CVE-2026-138834","urls":{"html":"https://cve.report/CVE-2026-138834","api":"https://cve.report/api/cve/CVE-2026-138834.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138834","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138834"},"summary":{"title":"xprtrdma: trim head iovec when the payload arrives via a Write chunk","description":"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->au_ralign, which gss_create_new() initializes to GSS_VERF_SLACK >>\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 > 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's 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's 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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:38","updated_at":"2026-11-30 14:17:38"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9ee534a75912361308b1f956bc3e7895a082a422","name":"https://git.kernel.org/stable/c/9ee534a75912361308b1f956bc3e7895a082a422","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/59b974dde5146982f98d1c72cae4fa303de2d75d","name":"https://git.kernel.org/stable/c/59b974dde5146982f98d1c72cae4fa303de2d75d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fe91fe83f2d958aec8e70ed039702550790028e0","name":"https://git.kernel.org/stable/c/fe91fe83f2d958aec8e70ed039702550790028e0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7589b3a3d006813f4192b122123e46a9339ba06c","name":"https://git.kernel.org/stable/c/7589b3a3d006813f4192b122123e46a9339ba06c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/85eaf47588492bc75206b27b0c679610e49d2a81","name":"https://git.kernel.org/stable/c/85eaf47588492bc75206b27b0c679610e49d2a81","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b476d382e73a00aff0a203e9bce7bd04c516461d","name":"https://git.kernel.org/stable/c/b476d382e73a00aff0a203e9bce7bd04c516461d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5efe2b84533da40717fb04567a810c3d706b5e3e","name":"https://git.kernel.org/stable/c/5efe2b84533da40717fb04567a810c3d706b5e3e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/eb731fe0e4ddc2085a6f468add36574f85e1f80f","name":"https://git.kernel.org/stable/c/eb731fe0e4ddc2085a6f468add36574f85e1f80f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138834","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138834","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 5efe2b84533da40717fb04567a810c3d706b5e3e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 59b974dde5146982f98d1c72cae4fa303de2d75d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 b476d382e73a00aff0a203e9bce7bd04c516461d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 fe91fe83f2d958aec8e70ed039702550790028e0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 eb731fe0e4ddc2085a6f468add36574f85e1f80f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 85eaf47588492bc75206b27b0c679610e49d2a81 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 7589b3a3d006813f4192b122123e46a9339ba06c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb0ae1fbb2f5e0cec250ba19c0525dde2b6c0160 9ee534a75912361308b1f956bc3e7895a082a422 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"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"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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->au_ralign, which gss_create_new() initializes to GSS_VERF_SLACK >>\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 > 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's 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's 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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:25:25.125Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/5efe2b84533da40717fb04567a810c3d706b5e3e"},{"url":"https://git.kernel.org/stable/c/59b974dde5146982f98d1c72cae4fa303de2d75d"},{"url":"https://git.kernel.org/stable/c/b476d382e73a00aff0a203e9bce7bd04c516461d"},{"url":"https://git.kernel.org/stable/c/fe91fe83f2d958aec8e70ed039702550790028e0"},{"url":"https://git.kernel.org/stable/c/eb731fe0e4ddc2085a6f468add36574f85e1f80f"},{"url":"https://git.kernel.org/stable/c/85eaf47588492bc75206b27b0c679610e49d2a81"},{"url":"https://git.kernel.org/stable/c/7589b3a3d006813f4192b122123e46a9339ba06c"},{"url":"https://git.kernel.org/stable/c/9ee534a75912361308b1f956bc3e7895a082a422"}],"title":"xprtrdma: trim head iovec when the payload arrives via a Write chunk","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138834","datePublished":"2026-11-30T13:25:25.125Z","dateReserved":"2026-11-30T13:22:15.897Z","dateUpdated":"2026-11-30T13:25:25.125Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:38","lastModifiedDate":"2026-11-30 14:17:38","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138834","Ordinal":"1","Title":"xprtrdma: trim head iovec when the payload arrives via a Write c","CVE":"CVE-2026-138834","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138834","Ordinal":"1","NoteData":"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->au_ralign, which gss_create_new() initializes to GSS_VERF_SLACK >>\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 > 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's 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's 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.","Type":"Description","Title":"xprtrdma: trim head iovec when the payload arrives via a Write c"}]}}}