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 47292219E8C for ; Wed, 26 Feb 2025 02:24:46 +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=1740536686; cv=none; b=kYb4E4GE4LjWWE75vDMKuNchnm2wrc9D4nClC5UDl9RZEAmkAHHfj5mLJ5hi1sesnyWVpugTClXoLPMj1tf+1OTkNVwLtLpNey2TRTOch5ww+UJCCuYnMbtYKXEmX4q5nx9I3BGwsv4+SEQniMKrDPUaF6YINi+YYa/13XQP1yg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536686; c=relaxed/simple; bh=0x2nxMTpaV+EjkxL576ys5OnZfrefianpZ01TKBHSSU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NDgausWF2SENoSoi1HdjvXHbSdSG5IusmP+tPgaB9HHSHafk0HxW3n24Up9nt8r7l/Bn8/PpX8Ibr5/h/iB9zCTXGuZiNOan2TrzcVcelS6YBFyMjaQ/eP8ueOcE7UmkdUp8kbRaOhkQgbqxCz/Hqdx1BcbC+4L33+crFeVna0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SgieKW9t; 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="SgieKW9t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1318FC4CEDD; Wed, 26 Feb 2025 02:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536686; bh=0x2nxMTpaV+EjkxL576ys5OnZfrefianpZ01TKBHSSU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SgieKW9tWyP7kD/snWlHYxq8Zvqabk019JLS1TQTYAuN4zMPTg1+aU2Lz99CQ+SJ/ z4HfJxGZdOT4cu5BHZHL+D4UHIuQnSjUlqjSc7it6kP3HKXX20m8XLU+0J4m2BP4XI WMqQXieKeeAdHtFRIKPHSGLibBuvNIEBsjLhOS70= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49631: raw: Fix a data-race around sysctl_raw_l3mdev_accept. Date: Wed, 26 Feb 2025 03:23:14 +0100 Message-ID: <2025022617-CVE-2022-49631-b546@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=2558; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0x2nxMTpaV+EjkxL576ys5OnZfrefianpZ01TKBHSSU=; b=kA0DAAIRMUfUDdst+ykByyZiAGe+etmhq7KV4v4iEuXc3mQDBvZA/z6sdK8sVazrW75Q3z8mf YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme+etkACgkQMUfUDdst+ymyCQCePfMo GqwaB+SraYaR1iR9uAJve3YAoLqfNs/letJATlbOebCDyVw6PMjb 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: raw: Fix a data-race around sysctl_raw_l3mdev_accept. While reading sysctl_raw_l3mdev_accept, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader. The Linux kernel CVE team has assigned CVE-2022-49631 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 6897445fb194c8ad046df4a13e1ee9f080a5a21e and fixed in 5.4.207 with commit cc9540ba5b3652c473af7e54892a48cdced87983 Issue introduced in 5.0 with commit 6897445fb194c8ad046df4a13e1ee9f080a5a21e and fixed in 5.10.132 with commit 038a87b3e460d2ee579c8b1bd3890d816d6687b1 Issue introduced in 5.0 with commit 6897445fb194c8ad046df4a13e1ee9f080a5a21e and fixed in 5.15.56 with commit 46e9c46203fd4676720ddca0fef7eff26826648e Issue introduced in 5.0 with commit 6897445fb194c8ad046df4a13e1ee9f080a5a21e and fixed in 5.18.13 with commit ab5adca2e17d6595f3fc0e25ccb6bcbe2e01ca4f Issue introduced in 5.0 with commit 6897445fb194c8ad046df4a13e1ee9f080a5a21e and fixed in 5.19 with commit 1dace014928e6e385363032d359a04dee9158af0 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-49631 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: include/net/raw.h 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/cc9540ba5b3652c473af7e54892a48cdced87983 https://git.kernel.org/stable/c/038a87b3e460d2ee579c8b1bd3890d816d6687b1 https://git.kernel.org/stable/c/46e9c46203fd4676720ddca0fef7eff26826648e https://git.kernel.org/stable/c/ab5adca2e17d6595f3fc0e25ccb6bcbe2e01ca4f https://git.kernel.org/stable/c/1dace014928e6e385363032d359a04dee9158af0