Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100809; b=uM+9V0lFn5R19//iIEvJiLcW7lB2c7ZTx6dP12M85dVv2Jm5rTmDG+fdRSCqkIPZBnKn J2vXkHAmfnrW3EsP0OKgdSENdFz57Pkbgu8Pa7G8KmXi047fAwo+50tkP0vd+ynfYOeqI sV11KA3TFq3n9nxg9pJy5ERQkZQGLue+CQz5dcaS9zTTlu84g52pZuGMB9gkT36UY3TS1 oE1vek2qv9F2lVTolmUW7eWBReG5ADFS01p7m+Oz62mm1wBD5N+iETkAdSDU9aHYPFekv InZDKtlgNtUN7ag2c1ovgQaZsZgOolSmBs585ZVcSzkMp/rVynuUy1BRiVJZqfrPxcg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100809; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=6Hzi6xEBMPq3PYDIT4pFmEL3tWmvnC1UHC2Ljlf6ks0=; b=EfgT9yjpZWLAIzolUM+22bpMEpQDWITIqIfWSl1mv7DOevyVTic103tA32g4TnZpXjoD 30ywYTw9BxiYAsGwHDgZdjY+C+aGeQzche8lWTnnRV49ur7e2UH5NcrCHTQTqW2U0DB1b Rl42VA6FyhxuLjul0uUjhQvxytbTMYu3218vNs7F2GMg/ENYWCq8f0KAj4hPVKCKqtkvv nIvYa0nxOdr/nNV3JnF6lO2lcSDwMl+6LnohqVi5ytOkPMyrwOdl24SBGuC6bQHGxRIiL qmkMbtkHtko405fX67q1Gz8qiLo2xAy7S5axwp7UDVWqr98EvCmW9egcjYxd/19Ay1Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Ai1d4GpA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE7DB606CB16 for ; Thu, 19 Nov 2026 15:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Ai1d4GpA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56A161F000C6; Thu, 19 Nov 2026 15:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100809; bh=6Hzi6xEBMPq3PYDIT4pFmEL3tWmvnC1UHC2Ljlf6ks0=; h=From:To:Cc:Subject:Date:Reply-To; b=Ai1d4GpAbkNjeLWtaVPzuuIsfPFN/+QUoIVbqTjGIl5qtOI0OVmhHixiRDPAExRHi O1EG3a20UurW2hixiA/5I9C9RSpUwBsxq959LhZ6w9WT8At5oa36NSXx4qmgbkshWa t5SlFxZ1vJn68miQWCA2lhrhwFoj6yCBEPeaTi2Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99530: cgroup: serialize migrations of newly forked processes Date: Thu, 19 Nov 2026 15:27:08 +0100 Message-ID: <2026111921-CVE-2026-99530-86b6@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3677; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5jcoE6q3KoSr7FU14QBOOYmhsTcWdGlW2YmkR2g1y0g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aapuvIe+tqT3ifzO8BjYZZN/83EBtfrtVkhPnFJH Ha/lRZ0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQmRzMsuPL8smryRW4voeS1 X3lLH59OiJl1jmHB/iR+/7DbZwT+/I/h97apnakWeF4PAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: cgroup: serialize migrations of newly forked processes With favordynmods enabled, a cgroup.procs migration takes the target threadgroup's cgroup_threadgroup_rwsem for writing. A process fork holds the forking threadgroup's semaphore for reading. These are different semaphores when fork creates a new process. copy_process() publishes the child's PID before cgroup_post_fork() links the child to its css_set. A writer can find the child in that interval, take its uncontended semaphore, and migrate it while child->cgroups still points to init_css_set and child->cg_list is empty. Migration links the node into init_css_set.mg_tasks. cgroup_post_fork() then adds the same node to the intended css_set as though it were unlinked, corrupting both task lists and their css_set ownership. This regresses the fork/migration race fixed by commit b12b533fa523 ("cgroups: add lock for child->cgroups in cgroup_post_fork()") and restored again in 2012 after the lock had been removed. The old task_lock protection was later superseded by global css_set and cgroup threadgroup locking. The change identified by the Fixes tag narrowed only the migration side back to a per-threadgroup lock, recreating the different-process exclusion failure. Take the new threadgroup's semaphore for reading before the child becomes visible and hold it through cgroup_post_fork(). Use a nested lock subclass because fork already holds the parent's semaphore. CLONE_THREAD children share the parent's signal_struct and remain covered by the existing lock. Migrations of unrelated, fully initialized threadgroups remain concurrent. An AI coding assistant was used to identify and reproduce the regression and to develop and test this fix. The Linux kernel CVE team has assigned CVE-2026-99530 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 0568f89d4fb82d98001baeb870e92f43cd1f7317 and fixed in 6.18.61 with commit d3d5560fb7550e74fb9851826d7dab505ffd05e0 Issue introduced in 6.18 with commit 0568f89d4fb82d98001baeb870e92f43cd1f7317 and fixed in 7.3.2 with commit 13610241843ccd928d83c6d51b5e044e4faf56c8 Issue introduced in 6.18 with commit 0568f89d4fb82d98001baeb870e92f43cd1f7317 and fixed in 7.4-rc1 with commit bf6fbf46b5ff68c4eebad5aa52309eb124f4509c 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-2026-99530 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/cgroup/cgroup.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/d3d5560fb7550e74fb9851826d7dab505ffd05e0 https://git.kernel.org/stable/c/13610241843ccd928d83c6d51b5e044e4faf56c8 https://git.kernel.org/stable/c/bf6fbf46b5ff68c4eebad5aa52309eb124f4509c