Skip to content
Heist/ feed
Critical

ocfs2: validate lengths in dlm_mig_lockres_handler

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: ocfs2: validate lengths in dlm_mig_lockres_handler A node receiving a DLM_MIG_LOCKRES message trusts several fields of the peer-supplied dlm_migratable_lockres without validation. num_locks and lockname_len are bounded only on the sending side, and the message is never checked to actually carry num_locks migratable_lock entries. As a result dlm_process_recovery_data() walks mres->ml[0..num_locks) past the kmalloc(data_len) copy of the message (an out-of-bounds read that ends in a BUG_ON panic), and dlm_init_lockres() copies lockname_len bytes into the fixed 32-byte o2dlm_lockname slab object (a heap out-of-bounds write). Both are reachable by any node in the domain. Validate these fields right after dlm_grab(), before anything uses them -- including the not-joined error path, which already prints mres->lockname with the unbounded lockname_len as a %.*s precision. Reject the message unless lockname_len <= DLM_LOCKID_NAME_MAX, num_locks <= DLM_MAX_MIGRATABLE_LOCKS (the bound the sender already asserts), and the payload is large enough to hold the claimed locks. Conforming recovery and migration messages are unaffected.

Announced Group revision 1
Original source ↗

CVE-2026-89494

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-89494

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "4a5798253212093b9ff7d90c6cfbe348bcda1594",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "dce05b17db862f47ff60614017abe639b2e71cad",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "0e999d56917f861f97adb961617b1828c9eb4733",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "77686fa5bba135252d348e2dacf481fc19f60c41",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "f33041906885f96e190cde54e61ddc69de39e3ee",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "50c4cc9183e11f83427efbf770f54851f4471c02",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "a8facb1670b4a0612183198e758d9539ef628ed9",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6714d8e86bf443f6f7af50f9d432025649f091f5",
        "lessThan": "b54e03d9b3697d25f4a0063cf717d459c5e3ad94",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/ocfs2/dlm/dlmrecovery.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.16"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.16",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.270",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.221",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.188",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.157",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.109",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.50",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.4",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/ocfs2/dlm/dlmrecovery.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-89494

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#35020 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement