{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99530","id":"CVE-2026-99530","title":"Linux cgroup race in newly forked process migration","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup: serialize migrations of newly forked processes\n\nWith favordynmods enabled, a cgroup.procs migration takes the target\nthreadgroup's cgroup_threadgroup_rwsem for writing. A process fork holds\nthe forking threadgroup's semaphore for reading. These are different\nsemaphores when fork creates a new process.\n\ncopy_process() publ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup: serialize migrations of newly forked processes\n\nWith favordynmods enabled, a cgroup.procs migration takes the target\nthreadgroup's cgroup_threadgroup_rwsem for writing. A process fork holds\nthe forking threadgroup's semaphore for reading. These are different\nsemaphores when fork creates a new process.\n\ncopy_process() publishes the child's PID before cgroup_post_fork() links\nthe child to its css_set. A writer can find the child in that interval,\ntake its uncontended semaphore, and migrate it while child->cgroups still\npoints to init_css_set and child->cg_list is empty. Migration links the\nnode into init_css_set.mg_tasks. cgroup_post_fork() then adds the same\nnode to the intended css_set as though it were unlinked, corrupting both\ntask lists and their css_set ownership.\n\nThis regresses the fork/migration race fixed by commit b12b533fa523\n(\"cgroups: add lock for child->cgroups in cgroup_post_fork()\") and\nrestored again in 2012 after the lock had been removed. The old task_lock\nprotection was later superseded by global css_set and cgroup threadgroup\nlocking. The change identified by the Fixes tag narrowed only the migration\nside back to a per-threadgroup lock, recreating the different-process\nexclusion failure.\n\nTake the new threadgroup's semaphore for reading before the child becomes\nvisible and hold it through cgroup_post_fork(). Use a nested lock subclass\nbecause fork already holds the parent's semaphore. CLONE_THREAD children\nshare the parent's signal_struct and remain covered by the existing lock.\nMigrations of unrelated, fully initialized threadgroups remain concurrent.\n\nAn AI coding assistant was used to identify and reproduce the regression\nand to develop and test this fix.","published":"2026-11-19T14:44:41.543Z","updated":"2026-11-19T17:01:26.938304594Z","reserved":"2026-09-25T10:25:14.420Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0568f89d4fb82d98001baeb870e92f43cd1f7317","lessThan":"d3d5560fb7550e74fb9851826d7dab505ffd05e0","status":"affected","versionType":"git"},{"version":"0568f89d4fb82d98001baeb870e92f43cd1f7317","lessThan":"13610241843ccd928d83c6d51b5e044e4faf56c8","status":"affected","versionType":"git"},{"version":"0568f89d4fb82d98001baeb870e92f43cd1f7317","lessThan":"bf6fbf46b5ff68c4eebad5aa52309eb124f4509c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","lessThan":"6.18","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d3d5560fb7550e74fb9851826d7dab505ffd05e0","tags":["web"]},{"url":"https://git.kernel.org/stable/c/13610241843ccd928d83c6d51b5e044e4faf56c8","tags":["web"]},{"url":"https://git.kernel.org/stable/c/bf6fbf46b5ff68c4eebad5aa52309eb124f4509c","tags":["web"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99530.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99530","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99530","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99530","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99530","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99530","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}