From mboxrd@z Thu Jan 1 00:00:00 1970 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 4E6FF3E48E for ; Wed, 6 Mar 2024 06:46:08 +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=1709707568; cv=none; b=nv13M4jGzQ4wQ88ucomRk78kTg9K0uxyvnxvQwersZv9Xaj0c8s7a6k5GbGMIuFtpw6mY5G40r2XWvg1YGTfBHOzCx8DnGXURFXZzgo1L4MD2wY/9CLxYZ0nDoCB/2JNNnhFZ1MAbXKcubJLA3tQ+bcV+ccKgmfnNJBCOgDWXAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709707568; c=relaxed/simple; bh=g3ewfqgDetTVCJJXuqjrkZadxzFMffBxYaSdJXuaDxA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tWtyglPArEAgp+TTYMiZNVs+nWDT8c4eBqKv0qKacE8OkNXm5GeWFT6zuDgCFK8aKIH4k1uHa5lm3W5Ek615fpGBahFwl4ExzjPyT2ohqR8ioetIJwbdxor7FbYJBl2Y6v2RR99prdKgzYqz+XkzfpIB8hzT2qV9mChLWKmAdXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k/HxqM21; 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="k/HxqM21" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC7C3C433C7; Wed, 6 Mar 2024 06:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709707568; bh=g3ewfqgDetTVCJJXuqjrkZadxzFMffBxYaSdJXuaDxA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=k/HxqM21gwtsUc//Tmk4UEw1lIoCkqwCxaI4nIIh7I8oRKnVuOmOjwhUQmluZdM7I MxuCK+Epo3akbJWkDmv7e9N0hErPlYVDSs19Upe+t9TC51UT5fvqSjJ99jBzoYT+Y/ WrXzTp4/5eS4TjbMQeRneFinwu9jjnQpgAJpqxEY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52596: sysctl: Fix out of bounds access for empty sysctl registers Date: Wed, 6 Mar 2024 06:45:54 +0000 Message-ID: <2024030645-CVE-2023-52596-b98e@gregkh> X-Mailer: git-send-email 2.44.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=2207; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g3ewfqgDetTVCJJXuqjrkZadxzFMffBxYaSdJXuaDxA=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkvBCXXF/sJHN/p88rhadwbz5P350Rb/bafs3RhrNUP9 0U9trdWdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEbI0Z5mcs657yX+zbmYiW TPu/Gr3awe1O0QwLdi0VtBSUb+Y5I/DxYOSX3/OP/dT9DwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: sysctl: Fix out of bounds access for empty sysctl registers When registering tables to the sysctl subsystem there is a check to see if header is a permanently empty directory (used for mounts). This check evaluates the first element of the ctl_table. This results in an out of bounds evaluation when registering empty directories. The function register_sysctl_mount_point now passes a ctl_table of size 1 instead of size 0. It now relies solely on the type to identify a permanently empty register. Make sure that the ctl_table has at least one element before testing for permanent emptiness. The Linux kernel CVE team has assigned CVE-2023-52596 to this issue. Affected and fixed versions =========================== Fixed in 6.6.16 with commit 15893975e9e3 Fixed in 6.7.4 with commit 2ae7081bc101 Fixed in 6.8-rc1 with commit 315552310c7d Please see https://www.kernel.org or 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-52596 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/proc/proc_sysctl.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/15893975e9e382f8294ea8d926f08dc2d8d39ede https://git.kernel.org/stable/c/2ae7081bc10123b187e36a4f3a8e53768de31489 https://git.kernel.org/stable/c/315552310c7de92baea4e570967066569937a843