{"id":"CVE-2026-90322","state":"PUBLISHED","title":"ocfs2/cluster: keep heartbeat local node stable","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/cluster: keep heartbeat local node stable\n\no2nm_node_local_store() handles local=0 by stopping o2net and setting\ncl_local_node to O2NM_INVALID_NODE_NUM, but it leaves cl_has_local set. \nThat stale state makes o2nm_this_node() return 255, blocks a later local=1\nattempt with -EBUSY, and can feed 255 to heartbeat users that call\no2nm_this_node() dynamically.\n\nClearing cl_has_local is required when the local node is reset.  But\nheartbeat threads can still be running at that point.  They pin the local\nnode config item at startup, yet o2hb_do_disk_heartbeat() and thread\nteardown re-read o2nm_this_node() for the local slot and for\no2nm_undepend_this_node().  Once local=0 has cleared the live local-node\nstate, those dynamic reads return O2NM_MAX_NODES, which is also the\ninvalid node number 255.\n\nStore the local node number in the heartbeat region when the region\nstarts.  Use that stable node for heartbeat slot writes/checks,\nnegotiation messages, and the final configfs undepend.  Stop the heartbeat\nloop when the current local node no longer matches the stored node, and\nclear cl_has_local together with cl_local_node in the local=0 path so\nnodemanager state matches node removal.\n\nValidation reproduced this kernel report:\nKASAN slab-out-of-bounds in o2hb_do_disk_heartbeat+0x372/0xb30\nRIP: 0010:memset+0xf/0x20\nRead of size 8\nCall trace:\n  dump_stack_lvl+0x66/0xa0\n  print_report+0xd0/0x630\n  o2hb_do_disk_heartbeat+0x372/0xb30 (fs/ocfs2/cluster/heartbeat.c:1079)\n  srso_alias_return_thunk+0x5/0xfbef5\n  __virt_addr_valid+0x188/0x2f0\n  kasan_report+0xe4/0x120\n  o2hb_do_disk_heartbeat+0x5/0xb30 (fs/ocfs2/cluster/heartbeat.c:1079)\n  o2hb_thread+0x14e/0x770\n  kthread_affine_node+0x139/0x180\n  lockdep_hardirqs_on_prepare+0xda/0x190\n  trace_hardirqs_on+0x18/0x130\n  kthread+0x19d/0x1e0\n  ret_from_fork+0x37a/0x4d0\n  __switch_to+0x2d5/0x6f0\n  ret_from_fork_asm+0x1a/0x30","publishedAt":"2026-09-17T16:08:38.768Z","updatedAt":"2026-10-30T12:35:09.985Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"d429482a67df16a30afaf9a3f1fe239fe73b44de","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"d64708cc119db01fbc55017ee6e987b680ebd59c","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"8e5cb90f212fda9f6cd29915a1ed74353108ceb3","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"8abb2b7c60d2b2c0f40606048c873096c03874d2","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"70d7bb7a0be033e5ebe8a2c48974692b1318891c","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"688bc88e2046dd6ce81ce18079b5254cb8dadc0e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/heartbeat.c","fs/ocfs2/cluster/nodemanager.c","fs/ocfs2/cluster/nodemanager.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.16","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/heartbeat.c","fs/ocfs2/cluster/nodemanager.c","fs/ocfs2/cluster/nodemanager.h"]}],"references":["https://git.kernel.org/stable/c/d429482a67df16a30afaf9a3f1fe239fe73b44de","https://git.kernel.org/stable/c/d64708cc119db01fbc55017ee6e987b680ebd59c","https://git.kernel.org/stable/c/8e5cb90f212fda9f6cd29915a1ed74353108ceb3","https://git.kernel.org/stable/c/8abb2b7c60d2b2c0f40606048c873096c03874d2","https://git.kernel.org/stable/c/70d7bb7a0be033e5ebe8a2c48974692b1318891c","https://git.kernel.org/stable/c/688bc88e2046dd6ce81ce18079b5254cb8dadc0e"],"weaknesses":[],"ingestedAt":"2026-10-30T12:54:04.478Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90322.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90322","state":"PUBLISHED","datePublished":"2026-09-17T16:08:38.768Z","dateUpdated":"2026-10-30T12:35:09.985Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.802Z"},"containers":{"cna":{"title":"ocfs2/cluster: keep heartbeat local node stable","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/cluster: keep heartbeat local node stable\n\no2nm_node_local_store() handles local=0 by stopping o2net and setting\ncl_local_node to O2NM_INVALID_NODE_NUM, but it leaves cl_has_local set. \nThat stale state makes o2nm_this_node() return 255, blocks a later local=1\nattempt with -EBUSY, and can feed 255 to heartbeat users that call\no2nm_this_node() dynamically.\n\nClearing cl_has_local is required when the local node is reset.  But\nheartbeat threads can still be running at that point.  They pin the local\nnode config item at startup, yet o2hb_do_disk_heartbeat() and thread\nteardown re-read o2nm_this_node() for the local slot and for\no2nm_undepend_this_node().  Once local=0 has cleared the live local-node\nstate, those dynamic reads return O2NM_MAX_NODES, which is also the\ninvalid node number 255.\n\nStore the local node number in the heartbeat region when the region\nstarts.  Use that stable node for heartbeat slot writes/checks,\nnegotiation messages, and the final configfs undepend.  Stop the heartbeat\nloop when the current local node no longer matches the stored node, and\nclear cl_has_local together with cl_local_node in the local=0 path so\nnodemanager state matches node removal.\n\nValidation reproduced this kernel report:\nKASAN slab-out-of-bounds in o2hb_do_disk_heartbeat+0x372/0xb30\nRIP: 0010:memset+0xf/0x20\nRead of size 8\nCall trace:\n  dump_stack_lvl+0x66/0xa0\n  print_report+0xd0/0x630\n  o2hb_do_disk_heartbeat+0x372/0xb30 (fs/ocfs2/cluster/heartbeat.c:1079)\n  srso_alias_return_thunk+0x5/0xfbef5\n  __virt_addr_valid+0x188/0x2f0\n  kasan_report+0xe4/0x120\n  o2hb_do_disk_heartbeat+0x5/0xb30 (fs/ocfs2/cluster/heartbeat.c:1079)\n  o2hb_thread+0x14e/0x770\n  kthread_affine_node+0x139/0x180\n  lockdep_hardirqs_on_prepare+0xda/0x190\n  trace_hardirqs_on+0x18/0x130\n  kthread+0x19d/0x1e0\n  ret_from_fork+0x37a/0x4d0\n  __switch_to+0x2d5/0x6f0\n  ret_from_fork_asm+0x1a/0x30"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"d429482a67df16a30afaf9a3f1fe239fe73b44de","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"d64708cc119db01fbc55017ee6e987b680ebd59c","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"8e5cb90f212fda9f6cd29915a1ed74353108ceb3","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"8abb2b7c60d2b2c0f40606048c873096c03874d2","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"70d7bb7a0be033e5ebe8a2c48974692b1318891c","versionType":"git"},{"version":"a7f6a5fb4bde142b622706e2006ba33f793e13ed","status":"affected","lessThan":"688bc88e2046dd6ce81ce18079b5254cb8dadc0e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/heartbeat.c","fs/ocfs2/cluster/nodemanager.c","fs/ocfs2/cluster/nodemanager.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.16","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/heartbeat.c","fs/ocfs2/cluster/nodemanager.c","fs/ocfs2/cluster/nodemanager.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/d429482a67df16a30afaf9a3f1fe239fe73b44de"},{"url":"https://git.kernel.org/stable/c/d64708cc119db01fbc55017ee6e987b680ebd59c"},{"url":"https://git.kernel.org/stable/c/8e5cb90f212fda9f6cd29915a1ed74353108ceb3"},{"url":"https://git.kernel.org/stable/c/8abb2b7c60d2b2c0f40606048c873096c03874d2"},{"url":"https://git.kernel.org/stable/c/70d7bb7a0be033e5ebe8a2c48974692b1318891c"},{"url":"https://git.kernel.org/stable/c/688bc88e2046dd6ce81ce18079b5254cb8dadc0e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:35:09.985Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}