{"api_version":"1","generated_at":"2026-08-15T16:26:58+00:00","cve":"CVE-2026-74513","urls":{"html":"https://cve.report/CVE-2026-74513","api":"https://cve.report/api/cve/CVE-2026-74513.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-74513","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-74513"},"summary":{"title":"dibs: fix use-after-free of dmb_node in loopback attach/detach/unregister","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndibs: fix use-after-free of dmb_node in loopback attach/detach/unregister\n\ndibs_lo_attach_dmb(), dibs_lo_detach_dmb() and dibs_lo_unregister_dmb()\nlook up the dmb_node under dmb_ht_lock, drop the lock and only then\noperate on the node's refcount. Nothing keeps the node alive across\nthat window: __dibs_lo_unregister_dmb() removes the node from the hash\ntable under the write lock and immediately frees it.\n\nA concurrent final put can therefore free the node between the lookup\nand the refcount operation:\n\nCPU0 (attach)                     CPU1 (owner unregisters)\n\nread_lock_bh(&dmb_ht_lock)\nfind dmb_node (refcnt == 1)\nread_unlock_bh(&dmb_ht_lock)\n                                  refcount_dec_and_test() 1 -> 0\n                                  write_lock_bh(&dmb_ht_lock)\n                                  hash_del(&dmb_node->list)\n                                  write_unlock_bh(&dmb_ht_lock)\n                                  kfree(dmb_node)\nrefcount_inc_not_zero(&dmb_node->refcnt)  <-- use-after-free\n\nThe same window exists for the refcount_dec_and_test() calls in the\ndetach and unregister paths.\n\nClose the race structurally by making hash table membership and the\nrefcount transitions atomic with respect to each other:\n\n- Perform the final refcount_dec_and_test() and hash_del() in a single\n  dmb_ht_lock write-side critical section, in both the unregister and\n  the detach path. Freeing the node still happens after the lock is\n  dropped, which is safe because a node whose refcount reached zero has\n  left the hash table and can no longer be found.\n\n- This establishes the invariant that any node found in the hash table\n  holds at least one reference, and that the final reference can only\n  be dropped under the write lock. dibs_lo_attach_dmb() can thus take\n  its reference with a plain refcount_inc() while still holding the\n  read lock; refcount_inc_not_zero() is no longer needed.\n\n__dibs_lo_unregister_dmb() no longer touches the hash table and is\nrenamed to dibs_lo_free_dmb() accordingly.\n\nNote: commit cc21191b584c (\"dibs: Move data path to dibs layer\") moved\nthe code to its current location; the race was introduced earlier by\ncommit c3a910f2380f (\"net/smc: implement DMB-merged operations of\nloopback-ism\").\n\nTested SMC-D via ISM and dibs loopback.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-08-15 13:17:56","updated_at":"2026-08-15 13:17:56"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c0837aeace96152d14b17fdd19d70102b6631a7d","name":"https://git.kernel.org/stable/c/c0837aeace96152d14b17fdd19d70102b6631a7d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/48c073f88c93707089a4214f21cb4c3de5aea6e4","name":"https://git.kernel.org/stable/c/48c073f88c93707089a4214f21cb4c3de5aea6e4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a10ea943356b9d70c5616a0a06f6fa97cfdaccb1","name":"https://git.kernel.org/stable/c/a10ea943356b9d70c5616a0a06f6fa97cfdaccb1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-74513","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74513","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3a910f2380fe294d14e42af66af3d3eed8fecbf c0837aeace96152d14b17fdd19d70102b6631a7d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3a910f2380fe294d14e42af66af3d3eed8fecbf 48c073f88c93707089a4214f21cb4c3de5aea6e4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c3a910f2380fe294d14e42af66af3d3eed8fecbf a10ea943356b9d70c5616a0a06f6fa97cfdaccb1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.44 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1.8 7.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2-rc6 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/dibs/dibs_loopback.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c0837aeace96152d14b17fdd19d70102b6631a7d","status":"affected","version":"c3a910f2380fe294d14e42af66af3d3eed8fecbf","versionType":"git"},{"lessThan":"48c073f88c93707089a4214f21cb4c3de5aea6e4","status":"affected","version":"c3a910f2380fe294d14e42af66af3d3eed8fecbf","versionType":"git"},{"lessThan":"a10ea943356b9d70c5616a0a06f6fa97cfdaccb1","status":"affected","version":"c3a910f2380fe294d14e42af66af3d3eed8fecbf","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/dibs/dibs_loopback.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.10"},{"lessThan":"6.10","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.44","versionType":"semver"},{"lessThanOrEqual":"7.1.*","status":"unaffected","version":"7.1.8","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.2-rc6","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.44","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1.8","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2-rc6","versionStartIncluding":"6.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndibs: fix use-after-free of dmb_node in loopback attach/detach/unregister\n\ndibs_lo_attach_dmb(), dibs_lo_detach_dmb() and dibs_lo_unregister_dmb()\nlook up the dmb_node under dmb_ht_lock, drop the lock and only then\noperate on the node's refcount. Nothing keeps the node alive across\nthat window: __dibs_lo_unregister_dmb() removes the node from the hash\ntable under the write lock and immediately frees it.\n\nA concurrent final put can therefore free the node between the lookup\nand the refcount operation:\n\nCPU0 (attach)                     CPU1 (owner unregisters)\n\nread_lock_bh(&dmb_ht_lock)\nfind dmb_node (refcnt == 1)\nread_unlock_bh(&dmb_ht_lock)\n                                  refcount_dec_and_test() 1 -> 0\n                                  write_lock_bh(&dmb_ht_lock)\n                                  hash_del(&dmb_node->list)\n                                  write_unlock_bh(&dmb_ht_lock)\n                                  kfree(dmb_node)\nrefcount_inc_not_zero(&dmb_node->refcnt)  <-- use-after-free\n\nThe same window exists for the refcount_dec_and_test() calls in the\ndetach and unregister paths.\n\nClose the race structurally by making hash table membership and the\nrefcount transitions atomic with respect to each other:\n\n- Perform the final refcount_dec_and_test() and hash_del() in a single\n  dmb_ht_lock write-side critical section, in both the unregister and\n  the detach path. Freeing the node still happens after the lock is\n  dropped, which is safe because a node whose refcount reached zero has\n  left the hash table and can no longer be found.\n\n- This establishes the invariant that any node found in the hash table\n  holds at least one reference, and that the final reference can only\n  be dropped under the write lock. dibs_lo_attach_dmb() can thus take\n  its reference with a plain refcount_inc() while still holding the\n  read lock; refcount_inc_not_zero() is no longer needed.\n\n__dibs_lo_unregister_dmb() no longer touches the hash table and is\nrenamed to dibs_lo_free_dmb() accordingly.\n\nNote: commit cc21191b584c (\"dibs: Move data path to dibs layer\") moved\nthe code to its current location; the race was introduced earlier by\ncommit c3a910f2380f (\"net/smc: implement DMB-merged operations of\nloopback-ism\").\n\nTested SMC-D via ISM and dibs loopback."}],"providerMetadata":{"dateUpdated":"2026-08-15T12:27:34.329Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c0837aeace96152d14b17fdd19d70102b6631a7d"},{"url":"https://git.kernel.org/stable/c/48c073f88c93707089a4214f21cb4c3de5aea6e4"},{"url":"https://git.kernel.org/stable/c/a10ea943356b9d70c5616a0a06f6fa97cfdaccb1"}],"title":"dibs: fix use-after-free of dmb_node in loopback attach/detach/unregister","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-74513","datePublished":"2026-08-15T12:27:34.329Z","dateReserved":"2026-08-15T05:44:03.909Z","dateUpdated":"2026-08-15T12:27:34.329Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-15 13:17:56","lastModifiedDate":"2026-08-15 13:17:56","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"74513","Ordinal":"1","Title":"dibs: fix use-after-free of dmb_node in loopback attach/detach/u","CVE":"CVE-2026-74513","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"74513","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ndibs: fix use-after-free of dmb_node in loopback attach/detach/unregister\n\ndibs_lo_attach_dmb(), dibs_lo_detach_dmb() and dibs_lo_unregister_dmb()\nlook up the dmb_node under dmb_ht_lock, drop the lock and only then\noperate on the node's refcount. Nothing keeps the node alive across\nthat window: __dibs_lo_unregister_dmb() removes the node from the hash\ntable under the write lock and immediately frees it.\n\nA concurrent final put can therefore free the node between the lookup\nand the refcount operation:\n\nCPU0 (attach)                     CPU1 (owner unregisters)\n\nread_lock_bh(&dmb_ht_lock)\nfind dmb_node (refcnt == 1)\nread_unlock_bh(&dmb_ht_lock)\n                                  refcount_dec_and_test() 1 -> 0\n                                  write_lock_bh(&dmb_ht_lock)\n                                  hash_del(&dmb_node->list)\n                                  write_unlock_bh(&dmb_ht_lock)\n                                  kfree(dmb_node)\nrefcount_inc_not_zero(&dmb_node->refcnt)  <-- use-after-free\n\nThe same window exists for the refcount_dec_and_test() calls in the\ndetach and unregister paths.\n\nClose the race structurally by making hash table membership and the\nrefcount transitions atomic with respect to each other:\n\n- Perform the final refcount_dec_and_test() and hash_del() in a single\n  dmb_ht_lock write-side critical section, in both the unregister and\n  the detach path. Freeing the node still happens after the lock is\n  dropped, which is safe because a node whose refcount reached zero has\n  left the hash table and can no longer be found.\n\n- This establishes the invariant that any node found in the hash table\n  holds at least one reference, and that the final reference can only\n  be dropped under the write lock. dibs_lo_attach_dmb() can thus take\n  its reference with a plain refcount_inc() while still holding the\n  read lock; refcount_inc_not_zero() is no longer needed.\n\n__dibs_lo_unregister_dmb() no longer touches the hash table and is\nrenamed to dibs_lo_free_dmb() accordingly.\n\nNote: commit cc21191b584c (\"dibs: Move data path to dibs layer\") moved\nthe code to its current location; the race was introduced earlier by\ncommit c3a910f2380f (\"net/smc: implement DMB-merged operations of\nloopback-ism\").\n\nTested SMC-D via ISM and dibs loopback.","Type":"Description","Title":"dibs: fix use-after-free of dmb_node in loopback attach/detach/u"}]}}}