Skip to contentSkip to conversation

CVE-2026-53309: ocfs2/dlm: fix off-by-one in dlm_match_regions() region comparison

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 26

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ocfs2/dlm: fix off-by-one in dlm_match_regions() region comparison

The local-vs-remote region comparison loop uses '<=' instead of '<', causing it to read one entry past the valid range of qr_regions. The other loops in the same function correctly use '<'.

Fix the loop condition to use '<' for consistency and correctness.

The Linux kernel CVE team has assigned CVE-2026-53309 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 5.10.258 with commit 760ab35040aca8399021fdb9ff1db1089feb7194
	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 5.15.209 with commit c60a2710b73838d250cda57344c049b89abc5d52
	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.1.175 with commit 2a0673836f019e7c032acbf48d022d5ccf02a845
	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.6.141 with commit 819d8ebad3200a53de99bd7e297bc428e41ced54
	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.12.91 with commit d5403ae28085761d58b555645bc7d5feadb10073
	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.18.33 with commit 1fb7f356547d9688822315cd2b205ff0bd5429b4
	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 7.0.10 with commit 426cd8eedac89b86148d4478990eeef16e8a2520
	Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 7.1 with commit 01b61e8dda9b0fdb0d4cda43de25f4e390554d7b

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53309

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/ocfs2/dlm/dlmdomain.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/760ab35040aca8399021fdb9ff1db1089feb7194
	https://git.kernel.org/stable/c/c60a2710b73838d250cda57344c049b89abc5d52
	https://git.kernel.org/stable/c/2a0673836f019e7c032acbf48d022d5ccf02a845
	https://git.kernel.org/stable/c/819d8ebad3200a53de99bd7e297bc428e41ced54
	https://git.kernel.org/stable/c/d5403ae28085761d58b555645bc7d5feadb10073
	https://git.kernel.org/stable/c/1fb7f356547d9688822315cd2b205ff0bd5429b4
	https://git.kernel.org/stable/c/426cd8eedac89b86148d4478990eeef16e8a2520
	https://git.kernel.org/stable/c/01b61e8dda9b0fdb0d4cda43de25f4e390554d7b