{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6714d8e86bf443f6f7af50f9d432025649f091f5"
            },
            {
              "fixed": "e328dd5207cc67bb283208b47b3a349b9ccd7a20"
            },
            {
              "fixed": "901b58081cc78ac3cca19eb0e2970cc5f187f367"
            },
            {
              "fixed": "1696bbf1d6165421a4f7e15549645d96505b0977"
            },
            {
              "fixed": "61469249aab03799b0d3294b7a0cd25dd303017a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.16"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99693.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/dlm: serialize migration MLE cleanup on failure\n\nA migration MLE has a base reference for the mastering answer and an\nin-use reference held by dlm_migrate_lockres(). The finishing assertion\nconsumes the base reference, but migration failure drops it again\nwithout checking whether the assertion already consumed it.\n\nThe target queues its migration worker before it acknowledges the\nALL_DONE packet, so its finishing assertion can be handled while the\nsender still waits for the status. If the connection fails before the\nstatus arrives, dlm_send_one_lockres() returns an error for a migration\nthat the target has already completed:\n\n  Old-master sender                  Finishing assertion\n  -----------------                  -------------------\n  publish MLE; take in-use reference\n  send ALL_DONE; wait for status\n                                     take lookup reference\n                                     unlink MLE\n                                     put lookup and base references\n  send returns a connection error\n  put base reference again; free MLE\n  put in-use reference; access freed MLE\n\ndlm_assert_master_handler() holds dlm-\u003espinlock from the MLE lookup to\nthe final puts, and it takes dlm-\u003emaster_lock around the unlink and the\nputs. Decide under the same locks: if the MLE is already unhashed, the\nassertion consumed the base reference, so drop only the sender's in-use\nreference. Otherwise unlink it before consuming the base reference so a\nlater assertion no longer finds it.\n\nAn assertion that got there first has also made the target the owner\nand cleared DLM_LOCK_RES_MIGRATING. Treating the attempt as failed at\nthat point would leave the lockres owned by the target while this node\nstill holds the other nodes' locks and refmap bits, so it could neither\nbe purged nor migrated again. Finish our side as a completed migration\ndoes instead: drop those locks under res-\u003espinlock if the target still\nowns the lockres, and recalculate its usage.\n\nUse the same cleanup for the pre-send failure, the send failure and the\ntarget-death failure paths. The sender's in-use reference keeps the MLE\nalive until its final put outside the nested locks. Successful\nmigration retains its existing in-use-only put.\n\nA target that has died cannot assert after the sender has seen its\ndeath. The o2net node-down callback runs before the DLM one; it\ndisconnects the node and flushes the workqueue that runs the message\nhandlers, so an assertion already received has been handled by the time\nthe DLM removes the node from the domain map. A node that leaves the\ndomain cleanly sends its exit message only after its assertions have\nbeen answered.\n\nTwo windows of the hand-over itself are left as they are: the handler\nswitches the owner and the sender drops the other nodes' locks moments\nlater, and an assertion from a live target that arrives after the\nsender has given up still meets the owner check in the handler. Waiting\nfor the target before giving up would only stretch the first window\ninto the time in which recovery of the target can observe it.\n\nKASAN report, only the relevant frames are kept:\n\nBUG: KASAN: slab-use-after-free in dlm_put_mle_inuse+0xce/0xe0\nRead of size 8 at addr ffff8881190e3c20 by task umount/593\n\nCall Trace:\n \u003cTASK\u003e\n dlm_put_mle_inuse+0xce/0xe0\n dlm_migrate_lockres+0x16af/0x20d0\n dlm_empty_lockres+0x60a/0xbd0\n dlm_unregister_domain+0x53b/0x11d0\n o2cb_cluster_disconnect+0xa5/0x110\n ocfs2_cluster_disconnect+0x73/0xc0\n ocfs2_dlm_shutdown+0x311/0x440\n ocfs2_dismount_volume+0x696/0x940\n generic_shutdown_super+0x15f/0x490\n kill_block_super+0x40/0xa0\n deactivate_locked_super+0xae/0x120\n deactivate_super+0xa2/0xc0\n cleanup_mnt+0x217/0x450\n task_work_run+0x144/0x230\n \u003c/TASK\u003e\n\nAllocated by task 593:\n kmem_cache_alloc_noprof+0x20b/0x5c0\n dlm_migrate_lockres+0x20e/0x20d0\n dlm_empty_lockres+0x60a/0xbd0\n dlm_unregister_domain+0x53b/0x11d0\n o2cb_cluster_disconnect+0xa5/\n---truncated---",
  "id": "CVE-2026-99693",
  "modified": "2026-11-20T06:45:23.097882496Z",
  "published": "2026-11-20T05:50:37.348Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1696bbf1d6165421a4f7e15549645d96505b0977"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/61469249aab03799b0d3294b7a0cd25dd303017a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/901b58081cc78ac3cca19eb0e2970cc5f187f367"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e328dd5207cc67bb283208b47b3a349b9ccd7a20"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99693.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99693"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ocfs2/dlm: serialize migration MLE cleanup on failure"
}