{"id":"CVE-2026-89494","revision":"ada9a12a3d2e4895b980c9ff59e92650","records":[{"revision":"ada9a12a3d2e4895b980c9ff59e92650","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-89494","aliases":[],"title":"ocfs2: validate lengths in dlm_mig_lockres_handler","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: validate lengths in dlm_mig_lockres_handler\n\nA node receiving a DLM_MIG_LOCKRES message trusts several fields of the\npeer-supplied dlm_migratable_lockres without validation.  num_locks and\nlockname_len are bounded only on the sending side, and the message is\nnever checked to actually carry num_locks migratable_lock entries.  As a\nresult dlm_process_recovery_data() walks mres->ml[0..num_locks) past the\nkmalloc(data_len) copy of the message (an out-of-bounds read that ends in\na BUG_ON panic), and dlm_init_lockres() copies lockname_len bytes into the\nfixed 32-byte o2dlm_lockname slab object (a heap out-of-bounds write). \nBoth are reachable by any node in the domain.\n\nValidate these fields right after dlm_grab(), before anything uses them --\nincluding the not-joined error path, which already prints mres->lockname\nwith the unbounded lockname_len as a %.*s precision.  Reject the message\nunless lockname_len <= DLM_LOCKID_NAME_MAX, num_locks <=\nDLM_MAX_MIGRATABLE_LOCKS (the bound the sender already asserts), and the\npayload is large enough to hold the claimed locks.  Conforming recovery\nand migration messages are unaffected.","state":0,"publishedAt":"2026-09-11T19:43:45.455+00:00","modifiedAt":"2026-10-19T08:47:45.937+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/ocfs2/dlm/dlmrecovery.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"4a5798253212093b9ff7d90c6cfbe348bcda1594\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"dce05b17db862f47ff60614017abe639b2e71cad\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"0e999d56917f861f97adb961617b1828c9eb4733\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"77686fa5bba135252d348e2dacf481fc19f60c41\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"f33041906885f96e190cde54e61ddc69de39e3ee\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"50c4cc9183e11f83427efbf770f54851f4471c02\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"a8facb1670b4a0612183198e758d9539ef628ed9\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6714d8e86bf443f6f7af50f9d432025649f091f5\",\n                            \"lessThan\": \"b54e03d9b3697d25f4a0063cf717d459c5e3ad94\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/ocfs2/dlm/dlmrecovery.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"2.6.16\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"2.6.16\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.270\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.221\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.188\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.157\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.109\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.50\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.4\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"references":["https://git.kernel.org/stable/c/4a5798253212093b9ff7d90c6cfbe348bcda1594","https://git.kernel.org/stable/c/dce05b17db862f47ff60614017abe639b2e71cad","https://git.kernel.org/stable/c/0e999d56917f861f97adb961617b1828c9eb4733","https://git.kernel.org/stable/c/77686fa5bba135252d348e2dacf481fc19f60c41","https://git.kernel.org/stable/c/f33041906885f96e190cde54e61ddc69de39e3ee","https://git.kernel.org/stable/c/50c4cc9183e11f83427efbf770f54851f4471c02","https://git.kernel.org/stable/c/a8facb1670b4a0612183198e758d9539ef628ed9","https://git.kernel.org/stable/c/b54e03d9b3697d25f4a0063cf717d459c5e3ad94"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-89494","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-89494","identifiers":["CVE-2026-89494"]},"retained":false,"historicalAffected":[]}],"coverage":[]}