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 36F0318B474 for ; Fri, 30 Aug 2024 10:46:09 +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=1725014770; cv=none; b=JYZt/e5Z7BBAqzFCC3hdovLwm3nlaODUwX6ydPvHY48ZrDdgp8WoAn8tyMwzrgSEzEVPPBEXrxbnBOBIaNVfsa608CdeWTFZmeNwMSAU17qKwtD1VJ3eXqnWy9pGTgJybdF/6wOqsMCLdPzEnGiNv7rItVF2mcijsvOE47d7L/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725014770; c=relaxed/simple; bh=62qHCkup1XssbI1IACp+fBQq3ILtFHjm1bQUuW/E7jg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aG3ePgatu9ZTKdw/Txoow9ik3HzAfF9lJ7v6ZkcXwi3gfTnZ5VBcvj+4Gu7buPqY/8t6N0wjScGGtMbhFUG6frjgpstDOy1lWzyvAKL2Yz4WZHUN2clHYcin1WYRdCL12nU2Be+g5GHfjksZl1BAxWK+fltis4/4xyhpjc0HIFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1cuyANx1; 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="1cuyANx1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A381C4CEC2; Fri, 30 Aug 2024 10:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725014769; bh=62qHCkup1XssbI1IACp+fBQq3ILtFHjm1bQUuW/E7jg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1cuyANx13jd9j9ktFuGQZpRAlfA6RWytuDJZuT+wkO0yWj+Y0Z0I3FaaxtBAhaMkX K7QMJwBfcd932a76JA07C1qTrwrXuoHMIiu6e9LA5Upy2xYlvwwD9yamqFTGKjxO5L /f0rvEmucW/BmlxhITX7YcqZJSz0teTL52ncifzU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48944: sched: Fix yet more sched_fork() races Date: Fri, 30 Aug 2024 12:46:07 +0200 Message-ID: <2024083006-CVE-2022-48944-274c@gregkh> X-Mailer: git-send-email 2.46.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=2391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=62qHCkup1XssbI1IACp+fBQq3ILtFHjm1bQUuW/E7jg=; b=kA0DAAIRMUfUDdst+ykByyZiAGbRou7I12vvO38JBjr1AWmfe8s4knmIBFjzC0/giiTbwBC98 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmbRou4ACgkQMUfUDdst+yn1kgCfbw53 C5eABu4AMEI7k6kmlo4jLiYAn3cDlc6RCgxOnQD+Jy56YVtYEDJs 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: sched: Fix yet more sched_fork() races Where commit 4ef0c5c6b5ba ("kernel/sched: Fix sched_fork() access an invalid sched_task_group") fixed a fork race vs cgroup, it opened up a race vs syscalls by not placing the task on the runqueue before it gets exposed through the pidhash. Commit 13765de8148f ("sched/fair: Fix fault in reweight_entity") is trying to fix a single instance of this, instead fix the whole class of issues, effectively reverting this commit. The Linux kernel CVE team has assigned CVE-2022-48944 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.3 with commit 3869eecf0504 and fixed in 5.15.27 with commit 3411613611a5 Issue introduced in 5.16 with commit 4ef0c5c6b5ba and fixed in 5.16.13 with commit c65cfd89cef6 Issue introduced in 5.16 with commit 4ef0c5c6b5ba and fixed in 5.17 with commit b1e8206582f9 Issue introduced in 5.10.80 with commit c85c6fadbef0 Issue introduced in 5.14.19 with commit 25d40b828fb8 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-48944 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/linux/sched/task.h kernel/fork.c kernel/sched/core.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/3411613611a5cddf7e80908010dc87cb527dd13b https://git.kernel.org/stable/c/c65cfd89cef669d90c59f3bf150af6458137a04f https://git.kernel.org/stable/c/b1e8206582f9d680cff7d04828708c8b6ab32957