PT-2026-151741
CVE-2026-99530
·
تاريخ النشر
2026-11-19
·
تاريخ التحديث
2026-11-19
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾