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 loop comparing local and remote regions uses the '<=' operator instead of '<' as the iteration termination condition. This causes a read of one element beyond the valid range of the qr_regions array (off-by-one error). The remaining loops in this same function correctly use the '<' operator, indicating an isolated implementation error. The fix amounts to changing the loop condition to '<', restoring consistency and code correctness.
An attacker could potentially gain unauthorized access to data, compromise system integrity, or cause denial of service (according to CVSS vector: C:H/I:H/A:H). The error affects operating system kernel code, making its consequences particularly severe.
Patches available from the vendor should be applied in accordance with the references — fixes have been published in the kernel.org repository under the specified commits (including 01b61e8dda9b, 1fb7f356547d, 2a0673836f01, 426cd8eedac8, 760ab35040ac).
Linux kernel containing the ocfs2/dlm subsystem — versions indicated in vendor references (commits available in the kernel.org repository).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux Kernel
OSLinux2.6.37 – 5.10.258 (excl.)5.11 – 5.15.209 (excl.)5.16 – 6.1.175 (excl.)6.2 – 6.6.141 (excl.)6.7 – 6.12.91 (excl.)6.13 – 6.18.33 (excl.)6.19 – 7.0.10 (excl.)
Related vulnerabilities
Type confusion w V8 (Google Chrome) — zdalne uszkodzenie sterty
Commvault Command Center – nieuwierzytelniony RCE przez path traversal w ZIP
RCE przez YAML deserialization w IBM Aspera Faspex
RCE w VMware Workspace ONE Access i Identity Manager poprzez server-side template injection
Command Injection w VMware Workspace One Access i Identity Manager