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 A7A9C21ADC6 for ; Wed, 26 Feb 2025 02:24:40 +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=1740536680; cv=none; b=ghEvsjAqegZsEm243djf2xPEC+FCXLgma9mt6c9BQbjz9RGVouLtKJTNb1ZNQEVKmNp9vqFhO+FLox4O9pqUs+dcM46TpCQTHu45xx76jYesRi28n6bivD+DGcoFjHajUZg5p83wSPef4txKh3mQygpvyJU5I3o1oUOOPSJB26Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536680; c=relaxed/simple; bh=9I2XFox9BdmdFYWATQtnlQby3/ipxjm8PKC9SJr6Tvk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EvXG0Rwf++k6OhLvQ1ytHKoVXaP+oCxvUJprq61e+9Tjz+IzkpEwvohy3NalgQNVmSkhdyzQ7yBDXjOhroooD0wvSznlvPaSvGrMiRAYSxfNS7StYAoa9RnR37bP/SCrL73P7cfTmFJM9Z6SX6H4QyqMW+9qKxPssZPZkEtIklg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b+egJcwT; 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="b+egJcwT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 792C8C4CEDD; Wed, 26 Feb 2025 02:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536680; bh=9I2XFox9BdmdFYWATQtnlQby3/ipxjm8PKC9SJr6Tvk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=b+egJcwTmUMCFYHq5lwlBy2C03CNAvUm0zlGrMqlWS1rYI6pZgEUX68zR29wU2WkQ h+m6hSIye0Zn24C+D6S87+lmSTTFQUH5i+IUvx8LxuvSf74xwkyP842jAtg6Nx3/ul ONoJlPIW8eMhLDnCq3Jo9QFIbDyl4IhYryAGdXw8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49641: sysctl: Fix data races in proc_douintvec(). Date: Wed, 26 Feb 2025 03:23:24 +0100 Message-ID: <2025022618-CVE-2022-49641-00e7@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=2791; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9I2XFox9BdmdFYWATQtnlQby3/ipxjm8PKC9SJr6Tvk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qm41cx49suGYemddzdMzM3zvqD95wKC5pXDqyis2d 6atPaRd3xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATCfFimB9nsC4s5FKuwsqt jU8XaV/6oxR3MJlhwbabf/bMW/xkFfvyU3vMLCbd+qZwURMA 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(). 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() to use READ_ONCE() and WRITE_ONCE() internally to fix data-races on the sysctl side. For now, proc_douintvec() 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-49641 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit e7d316a02f683864a12389f8808570e37fb90aa3 and fixed in 5.10.132 with commit d5d54714e329f646bd7af4994fc427d88ee68936 Issue introduced in 4.8 with commit e7d316a02f683864a12389f8808570e37fb90aa3 and fixed in 5.15.56 with commit d335db59f7fb3353f56e52371f1ee796ae9c8f09 Issue introduced in 4.8 with commit e7d316a02f683864a12389f8808570e37fb90aa3 and fixed in 5.18.13 with commit 630c76850d554d7140232e71b5d1663e88cffb54 Issue introduced in 4.8 with commit e7d316a02f683864a12389f8808570e37fb90aa3 and fixed in 5.19 with commit 4762b532ec9539755aab61445d5da6e1926ccb99 Issue introduced in 4.4.24 with commit 70cd763eb1574cac07138be91f474a661e02d694 Issue introduced in 4.7.7 with commit f4cea51e9a3d536e2ca2b74a958f7c0b4ea733c3 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-49641 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/d5d54714e329f646bd7af4994fc427d88ee68936 https://git.kernel.org/stable/c/d335db59f7fb3353f56e52371f1ee796ae9c8f09 https://git.kernel.org/stable/c/630c76850d554d7140232e71b5d1663e88cffb54 https://git.kernel.org/stable/c/4762b532ec9539755aab61445d5da6e1926ccb99