{"api_version":"1","generated_at":"2026-11-30T15:21:42+00:00","cve":"CVE-2026-139231","urls":{"html":"https://cve.report/CVE-2026-139231","api":"https://cve.report/api/cve/CVE-2026-139231.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139231","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139231"},"summary":{"title":"smb: smbdirect: don't WARN on an unexpected receive opcode","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: don't WARN on an unexpected receive opcode\n\nThe receive completion handlers smbdirect_connection_recv_io_done(),\nsmbdirect_accept_negotiate_recv_done() and\nsmbdirect_connect_negotiate_recv_done() verify that the completion is a\nregular receive with WARN_ON_ONCE(wc->opcode != IB_WC_RECV).\n\nBut wc->opcode is controlled by the remote peer: a posted receive work\nrequest is consumed not only by an incoming SEND, but also by an RDMA\nWrite with Immediate, which completes as IB_WC_RECV_RDMA_WITH_IMM. An\nunauthenticated peer can transmit such a message, even before the\nnegotiate completes, so it reaches the accept/connect negotiate\nhandlers as well. With panic_on_warn set this is a remote denial of\nservice, and otherwise it still taints the kernel and spams the log for\nsomething a peer can trigger at will.\n\nThe opcode check itself was inherited from the original client and\nserver recv_done() handlers (fs/smb/client/smbdirect.c and\nfs/smb/server/transport_rdma.c), where an unexpected opcode was simply\nlogged and the connection was torn down. Only the WARN_ON_ONCE() was\nadded on top during the socketization rework. Drop the WARN_ON_ONCE()\nand keep the existing graceful error path, which logs the unexpected\nopcode (unless the status is IB_WC_WR_FLUSH_ERR) and tears the\nconnection down.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:44","updated_at":"2026-11-30 14:18:44"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/e8592dec2e935befe842f90f4044d210f59c4d30","name":"https://git.kernel.org/stable/c/e8592dec2e935befe842f90f4044d210f59c4d30","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1f53d5fc06bd34f1debc5bc31337a267e76c8a5e","name":"https://git.kernel.org/stable/c/1f53d5fc06bd34f1debc5bc31337a267e76c8a5e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139231","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139231","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ea4151222a93d3bfd5d5c438d1c286a5dcff846c 1f53d5fc06bd34f1debc5bc31337a267e76c8a5e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ea4151222a93d3bfd5d5c438d1c286a5dcff846c e8592dec2e935befe842f90f4044d210f59c4d30 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 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":["fs/smb/smbdirect/accept.c","fs/smb/smbdirect/connect.c","fs/smb/smbdirect/connection.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1f53d5fc06bd34f1debc5bc31337a267e76c8a5e","status":"affected","version":"ea4151222a93d3bfd5d5c438d1c286a5dcff846c","versionType":"git"},{"lessThan":"e8592dec2e935befe842f90f4044d210f59c4d30","status":"affected","version":"ea4151222a93d3bfd5d5c438d1c286a5dcff846c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/smbdirect/accept.c","fs/smb/smbdirect/connect.c","fs/smb/smbdirect/connection.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.1"},{"lessThan":"7.1","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","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":"7.3.6","versionStartIncluding":"7.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: don't WARN on an unexpected receive opcode\n\nThe receive completion handlers smbdirect_connection_recv_io_done(),\nsmbdirect_accept_negotiate_recv_done() and\nsmbdirect_connect_negotiate_recv_done() verify that the completion is a\nregular receive with WARN_ON_ONCE(wc->opcode != IB_WC_RECV).\n\nBut wc->opcode is controlled by the remote peer: a posted receive work\nrequest is consumed not only by an incoming SEND, but also by an RDMA\nWrite with Immediate, which completes as IB_WC_RECV_RDMA_WITH_IMM. An\nunauthenticated peer can transmit such a message, even before the\nnegotiate completes, so it reaches the accept/connect negotiate\nhandlers as well. With panic_on_warn set this is a remote denial of\nservice, and otherwise it still taints the kernel and spams the log for\nsomething a peer can trigger at will.\n\nThe opcode check itself was inherited from the original client and\nserver recv_done() handlers (fs/smb/client/smbdirect.c and\nfs/smb/server/transport_rdma.c), where an unexpected opcode was simply\nlogged and the connection was torn down. Only the WARN_ON_ONCE() was\nadded on top during the socketization rework. Drop the WARN_ON_ONCE()\nand keep the existing graceful error path, which logs the unexpected\nopcode (unless the status is IB_WC_WR_FLUSH_ERR) and tears the\nconnection down."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:50.129Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1f53d5fc06bd34f1debc5bc31337a267e76c8a5e"},{"url":"https://git.kernel.org/stable/c/e8592dec2e935befe842f90f4044d210f59c4d30"}],"title":"smb: smbdirect: don't WARN on an unexpected receive opcode","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139231","datePublished":"2026-11-30T13:32:50.129Z","dateReserved":"2026-11-30T13:22:15.921Z","dateUpdated":"2026-11-30T13:32:50.129Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:44","lastModifiedDate":"2026-11-30 14:18:44","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139231","Ordinal":"1","Title":"smb: smbdirect: don't WARN on an unexpected receive opcode","CVE":"CVE-2026-139231","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139231","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: smbdirect: don't WARN on an unexpected receive opcode\n\nThe receive completion handlers smbdirect_connection_recv_io_done(),\nsmbdirect_accept_negotiate_recv_done() and\nsmbdirect_connect_negotiate_recv_done() verify that the completion is a\nregular receive with WARN_ON_ONCE(wc->opcode != IB_WC_RECV).\n\nBut wc->opcode is controlled by the remote peer: a posted receive work\nrequest is consumed not only by an incoming SEND, but also by an RDMA\nWrite with Immediate, which completes as IB_WC_RECV_RDMA_WITH_IMM. An\nunauthenticated peer can transmit such a message, even before the\nnegotiate completes, so it reaches the accept/connect negotiate\nhandlers as well. With panic_on_warn set this is a remote denial of\nservice, and otherwise it still taints the kernel and spams the log for\nsomething a peer can trigger at will.\n\nThe opcode check itself was inherited from the original client and\nserver recv_done() handlers (fs/smb/client/smbdirect.c and\nfs/smb/server/transport_rdma.c), where an unexpected opcode was simply\nlogged and the connection was torn down. Only the WARN_ON_ONCE() was\nadded on top during the socketization rework. Drop the WARN_ON_ONCE()\nand keep the existing graceful error path, which logs the unexpected\nopcode (unless the status is IB_WC_WR_FLUSH_ERR) and tears the\nconnection down.","Type":"Description","Title":"smb: smbdirect: don't WARN on an unexpected receive opcode"}]}}}