{
  "id": "CVE-2026-74513",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-74513",
  "published_at": "2026-08-15T12:27:34.329Z",
  "title": "dibs: fix use-after-free of dmb_node in loopback attach/detach/unregister",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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(\u0026dmb_ht_lock)\nfind dmb_node (refcnt == 1)\nread_unlock_bh(\u0026dmb_ht_lock)\n                                  refcount_dec_and_test() 1 -\u003e 0\n                                  write_lock_bh(\u0026dmb_ht_lock)\n                                  hash_del(\u0026dmb_node-\u003elist)\n                                  write_unlock_bh(\u0026dmb_ht_lock)\n                                  kfree(dmb_node)\nrefcount_inc_not_zero(\u0026dmb_node-\u003erefcnt)  \u003c-- 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.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \u003c 90b2166605a7476007f7c013521d30b0be557cac",
          "\u003e= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \u003c c0837aeace96152d14b17fdd19d70102b6631a7d",
          "\u003e= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \u003c 48c073f88c93707089a4214f21cb4c3de5aea6e4",
          "\u003e= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \u003c a10ea943356b9d70c5616a0a06f6fa97cfdaccb1"
        ],
        "fixed_in": [
          "90b2166605a7476007f7c013521d30b0be557cac",
          "c0837aeace96152d14b17fdd19d70102b6631a7d",
          "48c073f88c93707089a4214f21cb4c3de5aea6e4",
          "a10ea943356b9d70c5616a0a06f6fa97cfdaccb1"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.10"
        ],
        "fixed_in": [
          "0",
          "6.12.114",
          "6.18.44",
          "7.1.8",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 90b2166605a7476007f7c013521d30b0be557cac or c0837aeace96152d14b17fdd19d70102b6631a7d or 48c073f88c93707089a4214f21cb4c3de5aea6e4 or a10ea943356b9d70c5616a0a06f6fa97cfdaccb1 or later.",
      "Upgrade Linux to 0 or 6.12.114 or 6.18.44 or 7.1.8 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
