{"id":"CVE-2026-139231","aliases":["CVE-2026-139231"],"related":[],"kind":"vulnerability","state":"published","title":"smb: smbdirect: don't WARN on an unexpected receive opcode","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:32:50.129Z","modified":"2026-12-01T06:17:39.887Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ea4151222a93d3bfd5d5c438d1c286a5dcff846c","fixed":"1f53d5fc06bd34f1debc5bc31337a267e76c8a5e","status":"affected"},{"type":"git","introduced":"ea4151222a93d3bfd5d5c438d1c286a5dcff846c","fixed":"e8592dec2e935befe842f90f4044d210f59c4d30","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1f53d5fc06bd34f1debc5bc31337a267e76c8a5e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8592dec2e935befe842f90f4044d210f59c4d30","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139231","url":"https://www.cve.org/CVERecord?id=CVE-2026-139231","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:56.580Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139231","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139231","licence":"Public domain","modified":"2026-12-01T06:17:39.887Z"}],"updatedAt":"2026-12-01T06:32:24.579Z","epss":{"score":0.005,"percentile":0.44417,"date":"2026-12-01T12:00:22.000Z"}}