{"id":"CVE-2026-98253","aliases":["CVE-2026-98253"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/ucma: Serialize join and leave on copy_to_user failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/ucma: Serialize join and leave on copy_to_user failure\n\nrdma_join_multicast() queues RoCE work that later reads the ucma_multicast\nthrough event->param.ud.private_data, then list_add()s the CMA multicast\nat the head of id_priv->mc_list. rdma_leave_multicast() matches only by\nsockaddr and destroys the first hit.\n\nucma_process_join() used to drop ctx->mutex after a successful join and\nretake it only if copy_to_user() failed. Two concurrent JOIN_MCAST calls\nwith the same address can therefore insert a second CMA entry before the\nfirst thread's leave. leave then cancels the newer work and the older\nworker still dereferences the ucma_multicast that the first thread frees.\n\nKeep ctx->mutex held from rdma_join_multicast() through copy_to_user() and,\non -EFAULT, through rdma_leave_multicast() so leave cannot miss this join.\nDo not leave if join itself failed: that path never published this address\non mc_list, and a leave-by-addr would destroy an earlier successful join.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/ucma: Serialize join and leave on copy_to_user failure\n\nrdma_join_multicast() queues RoCE work that later reads the ucma_multicast\nthrough event->param.ud.private_data, then list_add()s the CMA multicast\nat the head of id_priv->mc_list. rdma_leave_multicast() matches only by\nsockaddr and destroys the first hit.\n\nucma_process_join() used to drop ctx->mutex after a successful join and\nretake it only if copy_to_user() failed. Two concurrent JOIN_MCAST calls\nwith the same address can therefore insert a second CMA entry before the\nfirst thread's leave. leave then cancels the newer work and the older\nworker still dereferences the ucma_multicast that the first thread frees.\n\nKeep ctx->mutex held from rdma_join_multicast() through copy_to_user() and,\non -EFAULT, through rdma_leave_multicast() so leave cannot miss this join.\nDo not leave if join itself failed: that path never published this address\non mc_list, and a leave-by-addr would destroy an earlier successful join.","source":"cvelist"}],"published":"2026-10-06T08:45:20.077Z","modified":"2026-10-19T10:18:26.240Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"60d613b39e8d0c9f3b526e9c96445422b4562d76","fixed":"29b9ed83d8bfab5c6e11fcbf1aa836aa4ae26cb9","status":"affected"},{"type":"git","introduced":"fe454dc31e84f8c14cb8942fcb61666c9f40745b","fixed":"52172e11bd074ccaded21740ffeb67123f01dd00","status":"affected"},{"type":"git","introduced":"fe454dc31e84f8c14cb8942fcb61666c9f40745b","fixed":"01e29d0d78a8f66f221625720a04939eef5ec1f6","status":"affected"},{"type":"git","introduced":"fe454dc31e84f8c14cb8942fcb61666c9f40745b","fixed":"ae805d204cf1f15b87d1bf3529b4c649f3519420","status":"affected"},{"type":"git","introduced":"fe454dc31e84f8c14cb8942fcb61666c9f40745b","fixed":"43c4e24bd10370fc976f6220518049ce71419399","status":"affected"},{"type":"git","introduced":"fe454dc31e84f8c14cb8942fcb61666c9f40745b","fixed":"01cbdb724c584d7772fd25af2e4dfdf8527ce0d5","status":"affected"},{"type":"git","introduced":"fe454dc31e84f8c14cb8942fcb61666c9f40745b","fixed":"83610ee5e498fa5bfcb80031d2b959baea276bf6","status":"affected"},{"type":"git","introduced":"fe454dc31e84f8c14cb8942fcb61666c9f40745b","fixed":"662ade4de9ff5eceb0820a9f8e9fac70ba6a815b","status":"affected"},{"type":"git","version":"a3262b3884dd67b4c5632ce7cdf9cff9d1a575d4","status":"affected"},{"type":"semver","introduced":"5.10.20","fixed":"5.10.271","status":"affected"},{"type":"semver","introduced":"5.11.3","fixed":"5.12","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/29b9ed83d8bfab5c6e11fcbf1aa836aa4ae26cb9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/52172e11bd074ccaded21740ffeb67123f01dd00","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01e29d0d78a8f66f221625720a04939eef5ec1f6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae805d204cf1f15b87d1bf3529b4c649f3519420","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43c4e24bd10370fc976f6220518049ce71419399","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01cbdb724c584d7772fd25af2e4dfdf8527ce0d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/83610ee5e498fa5bfcb80031d2b959baea276bf6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/662ade4de9ff5eceb0820a9f8e9fac70ba6a815b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98253","url":"https://www.cve.org/CVERecord?id=CVE-2026-98253","licence":"CVE Terms of Use","modified":"2026-10-19T09:16:24.567Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98253","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98253","licence":"Public domain","modified":"2026-10-19T10:18:26.240Z"}],"updatedAt":"2026-11-25T22:59:42.303Z","epss":{"score":0.00129,"percentile":0.02781,"date":"2026-12-01T12:00:22.000Z"}}