ocfs2/dlm: fix off-by-one in dlm_match_regions() region comparison
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ea2034416b54700e30371f2ad6517cbb94674083 · < 1fb7f356547d9688822315cd2b205ff0bd5429b4| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
An off-by-one error in the Linux kernel’s ocfs2/dlm region comparison reads one entry past the valid range. The input does not establish what an attacker could achieve or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels that include ocfs2/dlm should check their versions against the vendor advisory; affected versions were not provided.