{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "a7f6a5fb4bde142b622706e2006ba33f793e13ed"
            },
            {
              "fixed": "dffcdb5633641360204daee2f27d259a06f494ca"
            },
            {
              "fixed": "3e05df6bd33a920687c90061a6c0cc67cf71464a"
            },
            {
              "fixed": "7294ec25a13c20fe31c543589466d26cf24207a4"
            },
            {
              "fixed": "3ccd24c3f7a577b84a532cb027f1378385b82ef6"
            }
          ],
          "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.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99434.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/heartbeat: unlink live slots when their node is missing\n\no2hb_shutdown_slot() returns immediately when its node is no longer in the\nconfigfs registry.  A slot can still be linked in o2hb_live_slots when\nthat lookup fails.  Region teardown or startup-error cleanup then frees\nthe slot array without removing its embedded list member.\n\nWith the same peer live in another region, the next list update can follow\na predecessor into the freed array.  Reusing the node number can also make\na later insertion encounter that stale member.\n\nAlways remove the slot under o2hb_live_lock, even when node lookup fails. \nPreserve aggregate membership accounting and the last-region DOWN\ncallback: the existing callback interface explicitly permits a NULL node\nfor DOWN events.  Only drop the node reference when lookup returned one. \nThis closes both normal release and startup-abort paths without changing\nthe publication or callback locking protocol.\n\nAlso require a configured node before admitting a new live slot in\no2hb_check_slot().  The early live-bitmap check is not held through\nadmission: the last live slot in another region can be removed in between.\nWithout a node, admission can then queue an UP event with a NULL argument\nand hit the event helper's BUG_ON.  Existing live slots can still leave\nand generate NULL-node DOWN events.\n\nA controlled probe-instrumented test reproduced this while stopping one of\ntwo regions after removing the peer from configfs.  Its KASAN report\nincludes:\n\n  BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x1e0/0x210\n  Read of size 8 at addr ffff888106a4ac60 by task o2hb-pmbd0058_b/497\n  Call Trace:\n   \u003cTASK\u003e\n   dump_stack_lvl+0x93/0xd0\n   print_report+0xce/0x630\n   kasan_report+0xe0/0x110\n   __list_del_entry_valid_or_report+0x1e0/0x210\n   o2hb_do_disk_heartbeat+0x1591/0x2c50\n   o2hb_thread+0x1ed/0xe70\n   kthread+0x351/0x460\n   ret_from_fork+0x659/0x940\n   ret_from_fork_asm+0x1a/0x30\n   \u003c/TASK\u003e\n  Allocated by task 491:\n   kasan_save_stack+0x33/0x60\n   kasan_save_track+0x14/0x30\n   __kasan_kmalloc+0xaa/0xb0\n   __kmalloc_noprof+0x2de/0x780\n   o2hb_region_dev_store+0x7c2/0x1b60\n   configfs_write_iter+0x2f9/0x4f0\n   vfs_write+0x639/0x1010\n   ksys_write+0x111/0x200\n   do_syscall_64+0x114/0x620\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n  Freed by task 491:\n   kasan_save_stack+0x33/0x60\n   kasan_save_track+0x14/0x30\n   kasan_save_free_info+0x3b/0x60\n   __kasan_slab_free+0x5f/0x80\n   kfree+0x308/0x580\n   o2hb_unmap_slot_data+0x1db/0x330\n   o2hb_region_release+0x14b/0x4f0\n   config_item_cleanup+0x14b/0x230\n   config_item_put+0x79/0x90\n   configfs_rmdir+0x58a/0x910\n   vfs_rmdir+0x2e8/0x820\n   filename_rmdir+0x3b1/0x520\n   __x64_sys_rmdir+0x4b/0x70\n   do_syscall_64+0x114/0x620\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f",
  "id": "CVE-2026-99434",
  "modified": "2026-11-19T16:45:47.089862637Z",
  "published": "2026-11-19T14:41:09.561Z",
  "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/3ccd24c3f7a577b84a532cb027f1378385b82ef6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3e05df6bd33a920687c90061a6c0cc67cf71464a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7294ec25a13c20fe31c543589466d26cf24207a4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dffcdb5633641360204daee2f27d259a06f494ca"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99434.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99434"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ocfs2/heartbeat: unlink live slots when their node is missing"
}