{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139115","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.915Z","datePublished":"2026-11-30T13:31:43.269Z","dateUpdated":"2026-12-01T05:41:18.090Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:18.090Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock/rnbd-srv: don't free the device on a sysfs error\n\nrnbd_srv_create_dev_sysfs() drops the only kobject reference on its\nerror paths, and the release function frees the rnbd_srv_dev.\nprocess_msg_open() keeps using it and ends in destroy_device() with a\nlist_del() and a second kfree(). This doesn't need memory pressure: a\nclient opening a device while its last mapping goes away gets -EEXIST\nfrom kobject_add() against the old directory.\n\nOnly undo kobject_add() on failure and leave the reference to\ndestroy_device(). Initialise the kobject once, the next open retries."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The trigger is RNBD_MSG_OPEN and RNBD_MSG_CLOSE messages sent by an RTRS client and handled by rnbd_srv_rdma_ev() -> process_msg_open() and process_msg_close(). RTRS listens on IN6ADDR_ANY in the RDMA_PS_TCP port space, which RoCEv2 and iWARP carry over routable IP, so a remote peer drives the faulty error path in rnbd_srv_create_dev_sysfs().\nAC:L - The client controls both sides of the race. Session A's CLOSE drops the device's last kref while its sysfs directory still exists, and session B's OPEN for the same device makes find_or_add add a new srv_dev whose kobject_add() gets -EEXIST. The two sessions run concurrently on ib-comp-wq, and a lost race costs nothing, so the attacker can retry until it hits. No memory pressure is needed.\nPR:N - rtrs_rdma_connect() checks only magic, version and cid, with no authentication, and create_sess() accepts any sessname. process_msg_open() opens whatever dev_name the client sends under dev_search_path (default \"/\"), so an unauthenticated peer can create both sessions and the mappings.\nUI:N - The attacker's own sessions send the open and close messages that produce the race. No server administrator or other user has to do anything.\nS:U - The memory corrupted is in the rnbd-srv server kernel's own heap. No hypervisor, IOMMU or other security authority is crossed.\nC:H - The rnbd_srv_dev (kmalloc-512) is freed while still linked in the global dev_list, and other sessions' opens then run strncmp/kref_get_unless_zero on it. Re-occupying the freed slot gives a use-after-free read and leads to a double free that yields overlapping allocations, which can be used to leak kernel memory.\nI:H - After the kobject release frees the device, process_msg_open() writes to the freed memory via mutex_unlock/mutex_lock on srv_dev->lock and open_write_cnt--. destroy_device() then does list_del() using pointers read from the freed object and a second kfree(), a double free exploitable for heap corruption and control-flow hijack.\nA:H - The double kfree, the list_del() on a reallocated object, and the mutex slow path running on freed wait_list memory crash the storage server. A remote client can repeat the race at will."}]}],"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":"49f610e56795fe59acbedb673288606a4d6219ba","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"f65028b2fadec4919b77bc55130ab8401800fbe0","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"93deb589f24224dfc43e5dc03c3f9c9ea2e893cd","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"6e1b4893c19d681a35c7889e566044bf7b3a4128","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"f000dff3584a5f79ab8006fd019618f01c4d4918","status":"affected","versionType":"git"},{"version":"8cee532f469bbcdb6ac0ab161ebff36fbc6439d7","lessThan":"d9667ade40f986c565769a900ced6ee95edd33c6","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/49f610e56795fe59acbedb673288606a4d6219ba"},{"url":"https://git.kernel.org/stable/c/f65028b2fadec4919b77bc55130ab8401800fbe0"},{"url":"https://git.kernel.org/stable/c/93deb589f24224dfc43e5dc03c3f9c9ea2e893cd"},{"url":"https://git.kernel.org/stable/c/c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2"},{"url":"https://git.kernel.org/stable/c/6e1b4893c19d681a35c7889e566044bf7b3a4128"},{"url":"https://git.kernel.org/stable/c/f000dff3584a5f79ab8006fd019618f01c4d4918"},{"url":"https://git.kernel.org/stable/c/d9667ade40f986c565769a900ced6ee95edd33c6"}],"title":"block/rnbd-srv: don't free the device on a sysfs error","x_generator":{"engine":"bippy-1.2.0"}}}}