{"id":"CVE-2026-99356","state":"PUBLISHED","title":"SUNRPC: Do not credit control-record octets to the RPC stream","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: Do not credit control-record octets to the RPC stream\n\nsvc_tcp_sock_recv_cmsg() receives up to two octets into a local\nbuffer, and returns that count for any record type other than\nTLS_RECORD_TYPE_ALERT. Nothing reached the caller's buffer, but\nsvc_tcp_read_marker() adds the count to sk_tcplen and\nsvc_tcp_read_msg()'s caller adds it to sk_datalen. The RPC stream\nadvances over octets it never received. The fragment marker is\nassembled from stale sk_marker octets. The message body comes from\npages nothing wrote.\n\nA conforming client reaches this. RFC 8446 Section 4.6.3 lets either\npeer send KeyUpdate once it has sent its Finished, and svcsock has no\nrekey path. kTLS leaves the partially consumed record on ctx->rx_list,\nso the body drains two octets per svc_tcp_recvfrom() call. Each pair\nis credited the same way.\n\nReturn -EAGAIN for a record that is not an alert. That is what\nsvc_tcp_sock_process_cmsg()'s default arm returned before the receive\nmoved into a local buffer.","publishedAt":"2026-11-19T14:22:22.087Z","updatedAt":"2026-11-22T11:07:50.655Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"25bb3647d30a20486b5fe7cff2b0e503c16c9692","status":"affected","lessThan":"d784d46e19b52a553d5c772a18e13b4c6dc84708","versionType":"git"},{"version":"bee47cb026e762841f3faece47b51f985e215edb","status":"affected","lessThan":"67d36b376f76a71e52a5f8ed4a4d9d90b8b68133","versionType":"git"},{"version":"bee47cb026e762841f3faece47b51f985e215edb","status":"affected","lessThan":"99eb91d68e73a08bfc784eff6f5c02ecb6ea58ba","versionType":"git"},{"version":"bee47cb026e762841f3faece47b51f985e215edb","status":"affected","lessThan":"129e7107b971009bc81643d23f3ab949f540d321","versionType":"git"},{"version":"b1df394621710b312f0393e3f240fdac0764f968","status":"affected","versionType":"git"},{"version":"3b549da875414989f480b66835d514be80a0bd9c","status":"affected","versionType":"git"},{"version":"6b33c31cc788073bfbed9297e1f4486ed73d87da","status":"affected","versionType":"git"},{"version":"6.12.42","status":"affected","lessThan":"6.12.117","versionType":"semver"},{"version":"6.6.102","status":"affected","lessThan":"6.7","versionType":"semver"},{"version":"6.15.10","status":"affected","lessThan":"6.16","versionType":"semver"},{"version":"6.16.1","status":"affected","lessThan":"6.17","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]}],"references":["https://git.kernel.org/stable/c/d784d46e19b52a553d5c772a18e13b4c6dc84708","https://git.kernel.org/stable/c/67d36b376f76a71e52a5f8ed4a4d9d90b8b68133","https://git.kernel.org/stable/c/99eb91d68e73a08bfc784eff6f5c02ecb6ea58ba","https://git.kernel.org/stable/c/129e7107b971009bc81643d23f3ab949f540d321"],"weaknesses":[],"ingestedAt":"2026-11-22T11:18:06.032Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99356.json","commit":"247cc9beefd85903834df0592e88a44f4d599223","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99356","state":"PUBLISHED","datePublished":"2026-11-19T14:22:22.087Z","dateUpdated":"2026-11-22T11:07:50.655Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.410Z"},"containers":{"cna":{"title":"SUNRPC: Do not credit control-record octets to the RPC stream","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: Do not credit control-record octets to the RPC stream\n\nsvc_tcp_sock_recv_cmsg() receives up to two octets into a local\nbuffer, and returns that count for any record type other than\nTLS_RECORD_TYPE_ALERT. Nothing reached the caller's buffer, but\nsvc_tcp_read_marker() adds the count to sk_tcplen and\nsvc_tcp_read_msg()'s caller adds it to sk_datalen. The RPC stream\nadvances over octets it never received. The fragment marker is\nassembled from stale sk_marker octets. The message body comes from\npages nothing wrote.\n\nA conforming client reaches this. RFC 8446 Section 4.6.3 lets either\npeer send KeyUpdate once it has sent its Finished, and svcsock has no\nrekey path. kTLS leaves the partially consumed record on ctx->rx_list,\nso the body drains two octets per svc_tcp_recvfrom() call. Each pair\nis credited the same way.\n\nReturn -EAGAIN for a record that is not an alert. That is what\nsvc_tcp_sock_process_cmsg()'s default arm returned before the receive\nmoved into a local buffer."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"25bb3647d30a20486b5fe7cff2b0e503c16c9692","status":"affected","lessThan":"d784d46e19b52a553d5c772a18e13b4c6dc84708","versionType":"git"},{"version":"bee47cb026e762841f3faece47b51f985e215edb","status":"affected","lessThan":"67d36b376f76a71e52a5f8ed4a4d9d90b8b68133","versionType":"git"},{"version":"bee47cb026e762841f3faece47b51f985e215edb","status":"affected","lessThan":"99eb91d68e73a08bfc784eff6f5c02ecb6ea58ba","versionType":"git"},{"version":"bee47cb026e762841f3faece47b51f985e215edb","status":"affected","lessThan":"129e7107b971009bc81643d23f3ab949f540d321","versionType":"git"},{"version":"b1df394621710b312f0393e3f240fdac0764f968","status":"affected","versionType":"git"},{"version":"3b549da875414989f480b66835d514be80a0bd9c","status":"affected","versionType":"git"},{"version":"6b33c31cc788073bfbed9297e1f4486ed73d87da","status":"affected","versionType":"git"},{"version":"6.12.42","status":"affected","lessThan":"6.12.117","versionType":"semver"},{"version":"6.6.102","status":"affected","lessThan":"6.7","versionType":"semver"},{"version":"6.15.10","status":"affected","lessThan":"6.16","versionType":"semver"},{"version":"6.16.1","status":"affected","lessThan":"6.17","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/svcsock.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d784d46e19b52a553d5c772a18e13b4c6dc84708"},{"url":"https://git.kernel.org/stable/c/67d36b376f76a71e52a5f8ed4a4d9d90b8b68133"},{"url":"https://git.kernel.org/stable/c/99eb91d68e73a08bfc784eff6f5c02ecb6ea58ba"},{"url":"https://git.kernel.org/stable/c/129e7107b971009bc81643d23f3ab949f540d321"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The attacker-controlled bytes are a TLS application-data record (three 0x00 octets) followed by a TLS KeyUpdate handshake record (RFC 8446 §4.6.3) on the nfsd TCP connection. kTLS delivers the KeyUpdate to svc_tcp_sock_recvmsg with MSG_CTRUNC, which calls svc_tcp_sock_recv_cmsg, the function this fix changes, from svc_tcp_read_marker.\nAC:L - The attacker opens the connection and sends the RPC NULL AUTH_TLS probe that svcauth_tls_accept turns into svc_tcp_handshake, then sends the three marker bytes and the KeyUpdate. svc_data_ready runs on each record the attacker transmits, so sk_tcplen going from 3 to 5 does not depend on a race or on any state the attacker cannot send.\nPR:N - svcauth_tls_accept accepts proc 0 with a zero-length AUTH_TLS credential and never checks a uid, and tls_server_hello_x509 is invoked with no client certificate. The over-credit occurs in svc_tcp_recvfrom, before svc_process and before nfsd's check_xprtsec_policy.\nUI:N - The TLS records are sent by the attacker on the TCP connection they opened. svc_tcp_read_marker consumes them with no mount, file open, or other action by a victim.\nS:U - bvec_set_page corrupts rq_bvec and the neighboring heap of the nfsd svc_rqst inside this kernel, the same security authority as the SUNRPC server.\nC:H - The SIZE_MAX buflen makes svc_tcp_read_msg read rq_pages[i] and write those pointers through bvec_set_page past the kcalloc'd rq_maxpages arrays. That unbounded heap read and the corruption of neighboring objects disclose kernel memory.\nI:H - svc_tcp_sock_recv_cmsg returns 2 for the KeyUpdate into a private alert[2] buffer. svc_tcp_read_marker adds 2 to sk_tcplen when only one marker byte was wanted, so sk_tcplen becomes 5 while svc_sock_reclen stays 0. svc_tcp_recvfrom's size_t want underflows, and svc_tcp_read_msg writes bio_vecs off the end of rq_bvec.\nA:H - The rq_bvec walk in svc_tcp_read_msg continues until it faults on unmapped kernel memory, oopsing the nfsd thread that is inside svc_tcp_recvfrom."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-22T11:07:50.655Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.42","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}