{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139114","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.915Z","datePublished":"2026-11-30T13:31:42.691Z","dateUpdated":"2026-12-01T05:41:16.791Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:16.791Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock/rnbd-srv: drop the sess_dev kobject unlocked\n\nrnbd_srv_create_dev_session_sysfs() drops the kobject reference when it\nfails. The release function is rnbd_destroy_sess_dev(), which takes\nsrv_dev->lock, and the caller holds that lock: the worker deadlocks on\nitself. A client opening one device as \"ram0\" and \"./ram0\" gets there\nthrough -EEXIST from kobject_add().\n\nHave process_msg_open() drop the reference after releasing the lock, and\nleave the rest of the cleanup to the release function."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The trigger is the device name in an RNBD_MSG_OPEN that a remote RTRS client sends (rnbd_srv_rdma_ev -> process_msg_open). RTRS listens on IN6ADDR_ANY in RDMA_PS_TCP via rdma_cm, which is routable over RoCEv2/iWARP, so a remote client sending \"ram0\" then \"./ram0\" reaches the failing rnbd_srv_create_dev_session_sysfs().\nAC:L - find_srv_sess_dev() compares the raw dev_name, while rnbd_srv_get_full_path() collapses slashes and rejects only \"..\". A second read-only OPEN of \"./ram0\" therefore always maps to the same srv_dev and always gets -EEXIST for the duplicate sessname kobject. The trigger is deterministic and needs no race or outside state.\nPR:N - rtrs_rdma_connect() checks only RTRS magic, version and cid/con_num before creating a session, and process_msg_open() checks only path length, \"..\", and the RW write count. Nothing authenticates the client before it opens a device under dev_search_path.\nUI:N - The attacker drives the whole sequence with their own protocol messages (connect, OPEN \"ram0\", OPEN \"./ram0\"). No server-side administrator or user action is needed.\nS:U - The impact is a hung server kworker and a held rnbd srv_dev mutex inside the same kernel. No VM, IOMMU or sandbox boundary is crossed.\nC:N - kobject_put() runs rnbd_srv_sess_dev_release() -> rnbd_destroy_sess_dev() synchronously, and that blocks on mutex_lock(&sess_dev->dev->lock) before process_msg_open's free_srv_sess_dev double kfree/fput can run. No memory is freed while still in use, and nothing is disclosed.\nI:N - The thread deadlocks inside the release function, before the caller's error path would double-free srv_sess_dev, double-put srv_dev or double-decrement open_write_cnt. No memory or block data is modified.\nA:H - The ib_comp_wq CQ work item hangs forever in D state while holding srv_sess->lock and srv_dev->lock. Every other client's OPEN (rnbd_srv_check_update_open_perm) and close/disconnect (rnbd_destroy_sess_dev) of that device then blocks, and the attacker can repeat this for each exported device."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/rnbd/rnbd-srv-sysfs.c","drivers/block/rnbd/rnbd-srv.c"],"versions":[{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"fedc9790a6244a78dddd7960624ad9d00cc1a483","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"a110a2d2d319bd88678d376192dba618a27e6689","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"4062767ee2066685018987e24645741350acff9b","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"b372510d792ab1ee6feaa51affc750ad19e5f5c3","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"7ebd7b6652a45ced3ea6455c4516d1bff9667b77","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"fe6edac8f026c17b2ccf378de9ed77f2eebb86c6","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"81941915d53ef3384ab4e4b68e92673e66cf66d7","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/block/rnbd/rnbd-srv-sysfs.c","drivers/block/rnbd/rnbd-srv.c"],"versions":[{"version":"5.8","status":"affected"},{"version":"0","lessThan":"5.8","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/fedc9790a6244a78dddd7960624ad9d00cc1a483"},{"url":"https://git.kernel.org/stable/c/a110a2d2d319bd88678d376192dba618a27e6689"},{"url":"https://git.kernel.org/stable/c/4062767ee2066685018987e24645741350acff9b"},{"url":"https://git.kernel.org/stable/c/b372510d792ab1ee6feaa51affc750ad19e5f5c3"},{"url":"https://git.kernel.org/stable/c/7ebd7b6652a45ced3ea6455c4516d1bff9667b77"},{"url":"https://git.kernel.org/stable/c/fe6edac8f026c17b2ccf378de9ed77f2eebb86c6"},{"url":"https://git.kernel.org/stable/c/81941915d53ef3384ab4e4b68e92673e66cf66d7"}],"title":"block/rnbd-srv: drop the sess_dev kobject unlocked","x_generator":{"engine":"bippy-1.2.0"}}}}