Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5E1A9308F22 for ; Thu, 18 Sep 2025 13:36:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202597; cv=none; b=Uqy19Q6C/CM0nrAF65mFrCC5LHZf1T9wRVyBsesEjcusicGFHRa1kCwE7MaPZbv3jshFHA2z2x/yCHtxvX/c6Lj3IEA+ODacLeq7BSSsPgs6v0GdlltsVNmpgkxtS1sE8V5ho14ynw1d9be/mp2udj17PoSy/bvkD/O3iWN+THc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202597; c=relaxed/simple; bh=bYMHkpkF9feSRsZv/0Dr50Ril5sNlKBrVf7yZ3cbHq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YAIMMVxcnmJ3aai4bNc879tjvHa+jjwfOxGFuJpUfl9BedpmKauX1OFSeFI/pFo/J9SQZMNIeLkaQ11KRvvB7g6e7jxtpFh7Kuuxt9XqIK91zo1yWBuX40a2ujoBpwiGcD0oYKzh8U5Nj5tQmZCyFR4wTjAVAfUxMwH9gxHrqeg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mmkTuDy1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mmkTuDy1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D180EC4CEE7; Thu, 18 Sep 2025 13:36:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202597; bh=bYMHkpkF9feSRsZv/0Dr50Ril5sNlKBrVf7yZ3cbHq0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mmkTuDy1S1QNzXlGXjtTnnrX3/AHMjgsdH2aUL9X8ZAum5kTJk9CERVvXB7VFSeie LBrMLUHhUFM+1g+j+heJVQBy1mNyqJ9f6tYzp6CjeGGhwLw0sTtavz+YF76oqTcNTc spb171HiHiYMjSZVQ6OKc5eR/sD+zLSWXwacWHeI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53397: modpost: fix off by one in is_executable_section() Date: Thu, 18 Sep 2025 15:34:42 +0200 Message-ID: <2025091859-CVE-2023-53397-2076@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3192; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rC9lyHplhqBsk45aVps8CE1LGTjgp6/SfRJKb3pvQfw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuNzrywr9vrrs8OlTuecuuOEoyy0J53NuAeJ+8YJfy 1vj0yM7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJTpzLMr+Ra3Rhy00PAID2R c6P8pUo7lWgthvk1RzesiXj/wvLJ77OGk0VC+w1/fpkFAA== 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: modpost: fix off by one in is_executable_section() The > comparison should be >= to prevent an out of bounds array access. The Linux kernel CVE team has assigned CVE-2023-53397 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 4.14.322 with commit 7ee557590bac154d324de446d1cd0444988bd511 Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 5.4.251 with commit 02dc8e8bdbe4412cfcf17ee3873e63fa5a55b957 Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 5.10.188 with commit cb0cdca5c979bc34c27602e2039562932c2591a4 Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 5.15.121 with commit 5e0424cd8a44b5f480feb06753cdf4e1f248d148 Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 6.1.39 with commit dd872d5576cc94528f427c7264c2c438928cc6d2 Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 6.3.13 with commit cade370efe2f9e2a79ea8587506ffe2b51ac6d2b Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 6.4.4 with commit 8b2e77050b91199453bf19d0517b047b7339a9e3 Issue introduced in 4.1 with commit 52dc0595d540155436d91811f929bdc8afd6a2a1 and fixed in 6.5 with commit 3a3f1e573a105328a2cca45a7cfbebabbf5e3192 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-2023-53397 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: scripts/mod/modpost.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/7ee557590bac154d324de446d1cd0444988bd511 https://git.kernel.org/stable/c/02dc8e8bdbe4412cfcf17ee3873e63fa5a55b957 https://git.kernel.org/stable/c/cb0cdca5c979bc34c27602e2039562932c2591a4 https://git.kernel.org/stable/c/5e0424cd8a44b5f480feb06753cdf4e1f248d148 https://git.kernel.org/stable/c/dd872d5576cc94528f427c7264c2c438928cc6d2 https://git.kernel.org/stable/c/cade370efe2f9e2a79ea8587506ffe2b51ac6d2b https://git.kernel.org/stable/c/8b2e77050b91199453bf19d0517b047b7339a9e3 https://git.kernel.org/stable/c/3a3f1e573a105328a2cca45a7cfbebabbf5e3192