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 476C721B1A7 for ; Wed, 26 Feb 2025 02:25:05 +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=1740536705; cv=none; b=Z+a+Twa20C0irCvURsD4LrHpoKZKakciRuswJqZ9cUoR8APzoEzcAkLa1shdkIqxKn9OXdlNBwL8BIMNJ92iDrqNbkUFmPL3nd5/aU63qm1HplhuC3jjC7iKkUPU/mURiCzU6eV6DgnLqEcvsRflqYn1BBKQyQkOl9QD9R1YHVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536705; c=relaxed/simple; bh=T78cKsBIoGxdqYQwPV3gKyvoXTJvojvMV//jZVhLMoE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g/OSy8vi5uuMT9tcjyyghRjcIRCCjbYhiPSbpn/UECSBAnRu/A4OZxWmaNleh146iYVX+N5SFKCTDFtNlGwiUAWWSZDnChYFXVnO/Zz7QZkmINcoX/Kccnsam1fzkaGJ7EtCQRhOZwOz10Btqvdr6sd6ouML19aN8R7dQOFqdfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VFc8GMEq; 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="VFc8GMEq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BDE2C4CEDD; Wed, 26 Feb 2025 02:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536705; bh=T78cKsBIoGxdqYQwPV3gKyvoXTJvojvMV//jZVhLMoE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VFc8GMEq9f758ZmiegznsQGYhJxMeSqF55RMGnNNtuoDXq5Y4ueehYQOqqZb19p/h XUv5YGzIoWPi8ij7TyYolnwLp1mUNcKoQlop/GYo9ELKhYXGOjVQDQVDqxvhwspVgm xrAcq83i6g6g81r7QY215gYL9olrceYGFfx6s1wM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49634: sysctl: Fix data-races in proc_dou8vec_minmax(). Date: Wed, 26 Feb 2025 03:23:17 +0100 Message-ID: <2025022617-CVE-2022-49634-4a89@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=2492; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T78cKsBIoGxdqYQwPV3gKyvoXTJvojvMV//jZVhLMoE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qm6aNoh+9Z19ZU+y4I2NewM/L5+oyKaww7+2eSYPp +CV2U++d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBESncxzK90Wa1ZeZPJL61z ktONRys+zHtxQ5BhvvuLe78Ohcn9ebjsp67eN+l86ysbGAA= 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_dou8vec_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_dou8vec_minmax() to use READ_ONCE() and WRITE_ONCE() internally to fix data-races on the sysctl side. For now, proc_dou8vec_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-49634 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit cb9444130662c6c13022579c861098f212db2562 and fixed in 5.15.56 with commit e58b02e445463065b4078bf621561da75197853f Issue introduced in 5.13 with commit cb9444130662c6c13022579c861098f212db2562 and fixed in 5.18.13 with commit 5f776daef0b5354615ec4b4234cd9539ca05f273 Issue introduced in 5.13 with commit cb9444130662c6c13022579c861098f212db2562 and fixed in 5.19 with commit 7dee5d7747a69aa2be41f04c6a7ecfe3ac8cdf18 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-49634 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/f177b382c33900d0e5a9766493c11a1074076f78 https://git.kernel.org/stable/c/e58b02e445463065b4078bf621561da75197853f https://git.kernel.org/stable/c/5f776daef0b5354615ec4b4234cd9539ca05f273 https://git.kernel.org/stable/c/7dee5d7747a69aa2be41f04c6a7ecfe3ac8cdf18