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 D763B21ADB0 for ; Wed, 26 Feb 2025 02:24:39 +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=1740536679; cv=none; b=Pwe1HL0/AigLEyV0dTbmu8ST+8WatpGTdE/QNMSb80A3OxZwMA4JJnW+fTcu/2BRgAoS+jXT9hbMFyEd4OqMrkOl+4J9vSKNHx1fUWd6zXxU7AUpIDT9OkpN3PLuVuCswiEpSITXzuf/A9BQ9sGmnXZ35Z7DQw+1jgt+CDXaUe4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536679; c=relaxed/simple; bh=RgtSyxBc8/mVQb/LuZ3EJ6Pe6eZTDdfTSX0f9MCgw+o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qI1ziuppQ7ZSEYcVJiTlN/5GZP6VtCp9LtH+RuuHNXydN6i8CVGdyvNmTfFnzc7AgFYmf7A8MMSXRSH7gGIZJ2pucOIJey10DcOOr7yQj5IH7ENPBMoT4BXNbYkXhe6zL6TYLGn5/pNshA1Vmnd2pR82wSbqq1grxBQO8QzRn+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n/AKt+mX; 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="n/AKt+mX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA7F6C4CEDD; Wed, 26 Feb 2025 02:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536679; bh=RgtSyxBc8/mVQb/LuZ3EJ6Pe6eZTDdfTSX0f9MCgw+o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n/AKt+mXP5co4AxNgqMRh8vfwdfFIM7Aa8MRoz6oyZTtewd38v1MW2FaZQYJJ9BVx ftoUraszUJ+Cmk+zTwpcefis4c2nRPhu+S5nErs3GcDS/NyGfpLQV8uTA8SYsjpmg7 aL2CJV7tjz75QSgUhicTD297tZC08DQxDHuOchUg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49640: sysctl: Fix data races in proc_douintvec_minmax(). Date: Wed, 26 Feb 2025 03:23:23 +0100 Message-ID: <2025022618-CVE-2022-49640-96ed@gregkh> X-Mailer: git-send-email 2.48.1 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=2653; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RgtSyxBc8/mVQb/LuZ3EJ6Pe6eZTDdfTSX0f9MCgw+o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qm7F6UVaLt7rm/hc5bTyxmrFrVeCzLxNwyslM/W+/ zTI5/fqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInsyGRYMDNNwIRv4UntdItK xRZvLnaGT4xfGObKRO3VOeMx7cqm8ER3njOxX0oVRFYDAA== 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 data races in proc_douintvec_minmax(). A sysctl variable is accessed concurrently, and there is always a chance of data-race. So, all readers and writers need some basic protection to avoid load/store-tearing. This patch changes proc_douintvec_minmax() to use READ_ONCE() and WRITE_ONCE() internally to fix data-races on the sysctl side. For now, proc_douintvec_minmax() itself is tolerant to a data-race, but we still need to add annotations on the other subsystem's side. The Linux kernel CVE team has assigned CVE-2022-49640 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 and fixed in 5.10.132 with commit e3a2144b3b6bf9ecafd91087c8b8b48171ec19df Issue introduced in 4.13 with commit 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 and fixed in 5.15.56 with commit 40e0477a7371d101c55b69d9c32a7a1ed82ab5ea Issue introduced in 4.13 with commit 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 and fixed in 5.18.13 with commit b60eddf98b9716651069dfda296c91311a7a6293 Issue introduced in 4.13 with commit 61d9b56a89208d8cccd0b4cfec7e6959717e16e3 and fixed in 5.19 with commit 2d3b559df3ed39258737789aae2ae7973d205bc1 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-2022-49640 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: kernel/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/e3a2144b3b6bf9ecafd91087c8b8b48171ec19df https://git.kernel.org/stable/c/40e0477a7371d101c55b69d9c32a7a1ed82ab5ea https://git.kernel.org/stable/c/b60eddf98b9716651069dfda296c91311a7a6293 https://git.kernel.org/stable/c/2d3b559df3ed39258737789aae2ae7973d205bc1