{"id":"CVE-2026-53043","published":"2026-06-24T16:29:49Z","modified":"2026-08-05T12:32:50Z","title":"ocfs2/dlm: validate qr_numregions in dlm_match_regions()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00735,"percentile":0.50431,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d3d5efade0c79dac1cac98c0cb1115432f804439","tags":[]},{"url":"https://git.kernel.org/stable/c/f69551139caf6d24242a0ad049ee46b264e3aee0","tags":[]},{"url":"https://git.kernel.org/stable/c/1f8b91275912cd428289c1fb424bebd7ff5302bd","tags":[]},{"url":"https://git.kernel.org/stable/c/f37de46149db49abd2b24f4f0c5a88cf4dfb5f47","tags":[]},{"url":"https://git.kernel.org/stable/c/6c6e8fc3c007319981647b410c29bb5775048551","tags":[]},{"url":"https://git.kernel.org/stable/c/3f474c33ebc2e2ca3fcb587d7de4375348f13373","tags":[]},{"url":"https://git.kernel.org/stable/c/3c2d0de23ae4be22b6c18e8f0915be74d3b5fb21","tags":[]},{"url":"https://git.kernel.org/stable/c/7ab3fbb01bc6d79091bc375e5235d360cd9b78be","tags":[]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":10.09},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ea2034416b54700e30371f2ad6517cbb94674083, < d3d5efade0c79dac1cac98c0cb1115432f804439",">= ea2034416b54700e30371f2ad6517cbb94674083, < f69551139caf6d24242a0ad049ee46b264e3aee0",">= ea2034416b54700e30371f2ad6517cbb94674083, < 1f8b91275912cd428289c1fb424bebd7ff5302bd",">= ea2034416b54700e30371f2ad6517cbb94674083, < f37de46149db49abd2b24f4f0c5a88cf4dfb5f47",">= ea2034416b54700e30371f2ad6517cbb94674083, < 6c6e8fc3c007319981647b410c29bb5775048551",">= ea2034416b54700e30371f2ad6517cbb94674083, < 3f474c33ebc2e2ca3fcb587d7de4375348f13373",">= ea2034416b54700e30371f2ad6517cbb94674083, < 3c2d0de23ae4be22b6c18e8f0915be74d3b5fb21",">= ea2034416b54700e30371f2ad6517cbb94674083, < 7ab3fbb01bc6d79091bc375e5235d360cd9b78be"]},{"vendor":"Linux","product":"Linux","versions":["2.6.37"]}],"euvd":{"id":"EUVD-2026-38911","exploited":false,"provenance":"source"}}