{"id":"CVE-2026-139113","aliases":["CVE-2026-139113"],"related":[],"kind":"vulnerability","state":"published","title":"rnbd-srv: fix use-after-free on two CLOSE messages","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrnbd-srv: fix use-after-free on two CLOSE messages\n\nprocess_msg_close() looks the sess_dev up with a kref, drops it right\naway, and only then takes the session mutex for the teardown. A session\nhas several connections handled by different workers, so two CLOSE\nmessages for the same ID both finish the lookup before either one tears\nthe sess_dev down, and the second one works on freed memory. Any host\nthat can open a device on the server can do that.\n\nTake the mutex first and look the ID up with xa_load() under it. The\nsecond CLOSE then finds nothing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrnbd-srv: fix use-after-free on two CLOSE messages\n\nprocess_msg_close() looks the sess_dev up with a kref, drops it right\naway, and only then takes the session mutex for the teardown. A session\nhas several connections handled by different workers, so two CLOSE\nmessages for the same ID both finish the lookup before either one tears\nthe sess_dev down, and the second one works on freed memory. Any host\nthat can open a device on the server can do that.\n\nTake the mutex first and look the ID up with xa_load() under it. The\nsecond CLOSE then finds nothing.","source":"cvelist"}],"published":"2026-11-30T13:31:42.154Z","modified":"2026-12-01T06:17:35.310Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2de6c8de192b9341ffa5e84afe1ce6196d4eef41","fixed":"c47d198faf301278927ae62802626d19c32332d5","status":"affected"},{"type":"git","introduced":"2de6c8de192b9341ffa5e84afe1ce6196d4eef41","fixed":"d8cb9e9ba95dce0c4731f3c6cf50632fd8540cad","status":"affected"},{"type":"git","introduced":"2de6c8de192b9341ffa5e84afe1ce6196d4eef41","fixed":"0368a1ebc080e42f5c1c2708c621deae05fdb629","status":"affected"},{"type":"git","introduced":"2de6c8de192b9341ffa5e84afe1ce6196d4eef41","fixed":"c366173339de0cfcc3cbcaccfbe726459f9f96d4","status":"affected"},{"type":"git","introduced":"2de6c8de192b9341ffa5e84afe1ce6196d4eef41","fixed":"ccae722c4bc716df8a4cdde462071d034f92f32d","status":"affected"},{"type":"git","introduced":"2de6c8de192b9341ffa5e84afe1ce6196d4eef41","fixed":"4912dab88baa5f7034dc9e38807804d470ae5438","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","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/c47d198faf301278927ae62802626d19c32332d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8cb9e9ba95dce0c4731f3c6cf50632fd8540cad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0368a1ebc080e42f5c1c2708c621deae05fdb629","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c366173339de0cfcc3cbcaccfbe726459f9f96d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ccae722c4bc716df8a4cdde462071d034f92f32d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4912dab88baa5f7034dc9e38807804d470ae5438","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139113","url":"https://www.cve.org/CVERecord?id=CVE-2026-139113","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:15.550Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139113","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139113","licence":"Public domain","modified":"2026-12-01T06:17:35.310Z"}],"updatedAt":"2026-12-01T06:32:20.364Z","epss":{"score":0.01215,"percentile":0.694,"date":"2026-12-01T12:00:22.000Z"}}