Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5484531716E for ; Wed, 24 Jun 2026 16:36:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319011; cv=none; b=MgqZYHhub8Xr0c7J3brSh5cxojpg6C2ioc/ayE9ricopS6GhaQvTScXy/CnNj+9shnePjoY01uQx/KA6MNUIBl6ZapMYTNpSg8Su2+IrMlEfUCbFzqZQ+43ockjaelJMQimu0yWhWucANvbSRHMIz3CF+GSIE325h7uMw6ccXFU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319011; c=relaxed/simple; bh=asd+4JoinOfgqEeNmBCCF1ng+2Sg6XPpXw28/hDGHLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=scTnGBwNKN2SFORIUTPUuW+IthCeXAHY7tDA9nEVSOpje+39tpCX4pyB0NwqxV/WLG88BmWQC+9hQSwS+2hydAtj+TJd1eUVtVhLqCjzoRxmaZSHaJFfSPQIq+UUTadSF2NgLESo3rrSo9KD5ZaRAsRZJhcWRgc3p7+ospRcYwk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IHFva/hX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IHFva/hX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 348B91F000E9; Wed, 24 Jun 2026 16:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319008; bh=GedD6jwjnPW88AK/OB8r7FJze+xnxpbUUeRTCLP9/2M=; h=From:To:Cc:Subject:Date:Reply-To; b=IHFva/hXcQXogRxyXhRVg/niuDmqqN8k1v1DU9Z8oybtClXv3ZqWYmrANckEcCIes PwxLcakP8bFcRjZ2GRCPeEC/oLxxxcOTqqOfnvJ+VXkrpfid58U2+1A4EtAwI6ygJ4 VlnL7JBiY2B7V/GHpISgC4IscQZImw+OyvafCjx8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53043: ocfs2/dlm: validate qr_numregions in dlm_match_regions() Date: Wed, 24 Jun 2026 17:31:07 +0100 Message-ID: <2026062457-CVE-2026-53043-5980@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4362; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PhgJdRnc5S3O4T1C0YgDf+0vO2mSKELqkHCV6Hbmq1I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bKwGorHcR5SDW8KsmBf2z8k1KdhxPjfo5K+urSqNN t6GF9g6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCIvixjme/eyODA58CSzPT/d IfF35Yw1M0/MZJindX33ycvc261kfxh/NCwulszb2/cAAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ocfs2/dlm: validate qr_numregions in dlm_match_regions() Patch series "ocfs2/dlm: fix two bugs in dlm_match_regions()". In dlm_match_regions(), the qr_numregions field from a DLM_QUERY_REGION network message is used to drive loops over the qr_regions buffer without sufficient validation. This series fixes two issues: - Patch 1 adds a bounds check to reject messages where qr_numregions exceeds O2NM_MAX_REGIONS. The o2net layer only validates message byte length; it does not constrain field values, so a crafted message can set qr_numregions up to 255 and trigger out-of-bounds reads past the 1024-byte qr_regions buffer. - Patch 2 fixes an off-by-one in the local-vs-remote comparison loop, which uses '<=' instead of '<', reading one entry past the valid range even when qr_numregions is within bounds. This patch (of 2): The qr_numregions field from a DLM_QUERY_REGION network message is used directly as loop bounds in dlm_match_regions() without checking against O2NM_MAX_REGIONS. Since qr_regions is sized for at most O2NM_MAX_REGIONS (32) entries, a crafted message with qr_numregions > 32 causes out-of-bounds reads past the qr_regions buffer. Add a bounds check for qr_numregions before entering the loops. The Linux kernel CVE team has assigned CVE-2026-53043 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 5.10.258 with commit d3d5efade0c79dac1cac98c0cb1115432f804439 Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 5.15.209 with commit f69551139caf6d24242a0ad049ee46b264e3aee0 Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.1.175 with commit 1f8b91275912cd428289c1fb424bebd7ff5302bd Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.6.141 with commit f37de46149db49abd2b24f4f0c5a88cf4dfb5f47 Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.12.91 with commit 6c6e8fc3c007319981647b410c29bb5775048551 Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 6.18.33 with commit 3f474c33ebc2e2ca3fcb587d7de4375348f13373 Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 7.0.10 with commit 3c2d0de23ae4be22b6c18e8f0915be74d3b5fb21 Issue introduced in 2.6.37 with commit ea2034416b54700e30371f2ad6517cbb94674083 and fixed in 7.1 with commit 7ab3fbb01bc6d79091bc375e5235d360cd9b78be 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-53043 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/d3d5efade0c79dac1cac98c0cb1115432f804439 https://git.kernel.org/stable/c/f69551139caf6d24242a0ad049ee46b264e3aee0 https://git.kernel.org/stable/c/1f8b91275912cd428289c1fb424bebd7ff5302bd https://git.kernel.org/stable/c/f37de46149db49abd2b24f4f0c5a88cf4dfb5f47 https://git.kernel.org/stable/c/6c6e8fc3c007319981647b410c29bb5775048551 https://git.kernel.org/stable/c/3f474c33ebc2e2ca3fcb587d7de4375348f13373 https://git.kernel.org/stable/c/3c2d0de23ae4be22b6c18e8f0915be74d3b5fb21 https://git.kernel.org/stable/c/7ab3fbb01bc6d79091bc375e5235d360cd9b78be