{"id":"CVE-2026-53043","aliases":["CVE-2026-53043"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2/dlm: validate qr_numregions in dlm_match_regions()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/dlm: validate qr_numregions in dlm_match_regions()\n\nPatch series \"ocfs2/dlm: fix two bugs in dlm_match_regions()\".\n\nIn dlm_match_regions(), the qr_numregions field from a DLM_QUERY_REGION\nnetwork message is used to drive loops over the qr_regions buffer without\nsufficient validation.  This series fixes two issues:\n\n- Patch 1 adds a bounds check to reject messages where qr_numregions\n  exceeds O2NM_MAX_REGIONS. The o2net layer only validates message\n  byte length; it does not constrain field values, so a crafted message\n  can set qr_numregions up to 255 and trigger out-of-bounds reads past\n  the 1024-byte qr_regions buffer.\n\n- Patch 2 fixes an off-by-one in the local-vs-remote comparison loop,\n  which uses '<=' instead of '<', reading one entry past the valid range\n  even when qr_numregions is within bounds.\n\n\nThis patch (of 2):\n\nThe qr_numregions field from a DLM_QUERY_REGION network message is used\ndirectly as loop bounds in dlm_match_regions() without checking against\nO2NM_MAX_REGIONS.  Since qr_regions is sized for at most O2NM_MAX_REGIONS\n(32) entries, a crafted message with qr_numregions > 32 causes\nout-of-bounds reads past the qr_regions buffer.\n\nAdd a bounds check for qr_numregions before entering the loops.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2/dlm: validate qr_numregions in dlm_match_regions()\n\nPatch series \"ocfs2/dlm: fix two bugs in dlm_match_regions()\".\n\nIn dlm_match_regions(), the qr_numregions field from a DLM_QUERY_REGION\nnetwork message is used to drive loops over the qr_regions buffer without\nsufficient validation.  This series fixes two issues:\n\n- Patch 1 adds a bounds check to reject messages where qr_numregions\n  exceeds O2NM_MAX_REGIONS. The o2net layer only validates message\n  byte length; it does not constrain field values, so a crafted message\n  can set qr_numregions up to 255 and trigger out-of-bounds reads past\n  the 1024-byte qr_regions buffer.\n\n- Patch 2 fixes an off-by-one in the local-vs-remote comparison loop,\n  which uses '<=' instead of '<', reading one entry past the valid range\n  even when qr_numregions is within bounds.\n\n\nThis patch (of 2):\n\nThe qr_numregions field from a DLM_QUERY_REGION network message is used\ndirectly as loop bounds in dlm_match_regions() without checking against\nO2NM_MAX_REGIONS.  Since qr_regions is sized for at most O2NM_MAX_REGIONS\n(32) entries, a crafted message with qr_numregions > 32 causes\nout-of-bounds reads past the qr_regions buffer.\n\nAdd a bounds check for qr_numregions before entering the loops.","source":"cvelist"}],"published":"2026-06-24T16:29:49.480Z","modified":"2026-08-05T12:32:50.728Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"d3d5efade0c79dac1cac98c0cb1115432f804439","status":"affected"},{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"f69551139caf6d24242a0ad049ee46b264e3aee0","status":"affected"},{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"1f8b91275912cd428289c1fb424bebd7ff5302bd","status":"affected"},{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"f37de46149db49abd2b24f4f0c5a88cf4dfb5f47","status":"affected"},{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"6c6e8fc3c007319981647b410c29bb5775048551","status":"affected"},{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"3f474c33ebc2e2ca3fcb587d7de4375348f13373","status":"affected"},{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"3c2d0de23ae4be22b6c18e8f0915be74d3b5fb21","status":"affected"},{"type":"git","introduced":"ea2034416b54700e30371f2ad6517cbb94674083","fixed":"7ab3fbb01bc6d79091bc375e5235d360cd9b78be","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.37","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.37","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.141","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.91","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.33","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.37","fixed":"5.10.258"},{"status":"affected","introduced":"5.11","fixed":"5.15.209"},{"status":"affected","introduced":"5.16","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.141"},{"status":"affected","introduced":"6.7","fixed":"6.12.91"},{"status":"affected","introduced":"6.13","fixed":"6.18.33"},{"status":"affected","introduced":"6.19","fixed":"7.0.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d3d5efade0c79dac1cac98c0cb1115432f804439","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f69551139caf6d24242a0ad049ee46b264e3aee0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f8b91275912cd428289c1fb424bebd7ff5302bd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f37de46149db49abd2b24f4f0c5a88cf4dfb5f47","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6c6e8fc3c007319981647b410c29bb5775048551","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f474c33ebc2e2ca3fcb587d7de4375348f13373","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c2d0de23ae4be22b6c18e8f0915be74d3b5fb21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ab3fbb01bc6d79091bc375e5235d360cd9b78be","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53043","url":"https://www.cve.org/CVERecord?id=CVE-2026-53043","licence":"CVE Terms of Use","modified":"2026-08-05T12:32:50.728Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53043","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53043","licence":"Public domain","modified":"2026-07-14T19:27:29.090Z"}],"updatedAt":"2026-11-25T22:59:25.670Z","epss":{"score":0.00514,"percentile":0.453,"date":"2026-12-01T12:00:22.000Z"}}