{"id":"CVE-2026-143115","state":"PUBLISHED","title":"cgroup/freezer: Fix exiting tasks left frozen forever after rmdir","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/freezer: Fix exiting tasks left frozen forever after rmdir\n\nSince 93618edf7538 (\"cgroup: Defer css percpu_ref kill on rmdir until cgroup\nis depopulated\"), rmdir succeeds once cgroup.procs is empty, but exiting\ntasks hidden from it can stay in the cgroup until their final context\nswitch. If such a task is frozen in a v1 freezer cgroup, nothing is left to\nthaw it after rmdir: freezer.state is gone with the cgroup, and a THAWED\nwrite to an ancestor clears only CGROUP_FREEZING_PARENT.\n\n8ab6980c7007 (\"cgroup/freezer: walk exiting tasks in the v1 freezer\") made\nthe freezer walks include exiting tasks. A FROZEN write now also freezes a\nhidden task in a freezable sleep on its exit path. The fix depends on that\ncommit, as the thaw reaches hidden tasks through the same walk.\n\nSince 81933038f5e2 (\"pid_namespace: make zap_pid_ns_processes() freezable\"),\nan exiting pid namespace init sleeps that way until a parent outside the\nnamespace reaps a zombie in it.\n\nThaw the cgroup from ->css_killed(), as a THAWED write to it would. A\ndescendant removed earlier can still hold hidden tasks frozen through\nCGROUP_FREEZING_PARENT. The thaw reaches it too, as its css stays online\nuntil its tasks are gone.\n\nrmdir removes freezer.state only after ->css_killed() returns, and a write\nto it takes no cgroup_mutex. A FROZEN write after the thaw would freeze the\nremoved cgroup again, so refuse to freeze a dead cgroup.\n\nVerified with a reproducer, including under a frozen parent, from an already\nremoved child and with a racing FROZEN write.","publishedAt":"2026-12-03T09:19:28.905Z","updatedAt":"2026-12-03T09:19:28.905Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"93618edf753838a727dbff63c7c291dee22d656b","status":"affected","lessThan":"e045192f11a3e16624a61caefe1fc947084b5705","versionType":"git"},{"version":"93618edf753838a727dbff63c7c291dee22d656b","status":"affected","lessThan":"e1aed52b68a361f6fc047b24a37d9ec4d928a158","versionType":"git"},{"version":"33fa2e6b1507a0a377a151a8826438bedad1d0b0","status":"affected","versionType":"git"},{"version":"7.0.9","status":"affected","lessThan":"7.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/legacy_freezer.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/legacy_freezer.c"]}],"references":["https://git.kernel.org/stable/c/e045192f11a3e16624a61caefe1fc947084b5705","https://git.kernel.org/stable/c/e1aed52b68a361f6fc047b24a37d9ec4d928a158"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143115.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143115","state":"PUBLISHED","datePublished":"2026-12-03T09:19:28.905Z","dateUpdated":"2026-12-03T09:19:28.905Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.350Z"},"containers":{"cna":{"title":"cgroup/freezer: Fix exiting tasks left frozen forever after rmdir","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup/freezer: Fix exiting tasks left frozen forever after rmdir\n\nSince 93618edf7538 (\"cgroup: Defer css percpu_ref kill on rmdir until cgroup\nis depopulated\"), rmdir succeeds once cgroup.procs is empty, but exiting\ntasks hidden from it can stay in the cgroup until their final context\nswitch. If such a task is frozen in a v1 freezer cgroup, nothing is left to\nthaw it after rmdir: freezer.state is gone with the cgroup, and a THAWED\nwrite to an ancestor clears only CGROUP_FREEZING_PARENT.\n\n8ab6980c7007 (\"cgroup/freezer: walk exiting tasks in the v1 freezer\") made\nthe freezer walks include exiting tasks. A FROZEN write now also freezes a\nhidden task in a freezable sleep on its exit path. The fix depends on that\ncommit, as the thaw reaches hidden tasks through the same walk.\n\nSince 81933038f5e2 (\"pid_namespace: make zap_pid_ns_processes() freezable\"),\nan exiting pid namespace init sleeps that way until a parent outside the\nnamespace reaps a zombie in it.\n\nThaw the cgroup from ->css_killed(), as a THAWED write to it would. A\ndescendant removed earlier can still hold hidden tasks frozen through\nCGROUP_FREEZING_PARENT. The thaw reaches it too, as its css stays online\nuntil its tasks are gone.\n\nrmdir removes freezer.state only after ->css_killed() returns, and a write\nto it takes no cgroup_mutex. A FROZEN write after the thaw would freeze the\nremoved cgroup again, so refuse to freeze a dead cgroup.\n\nVerified with a reproducer, including under a frozen parent, from an already\nremoved child and with a racing FROZEN write."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"93618edf753838a727dbff63c7c291dee22d656b","status":"affected","lessThan":"e045192f11a3e16624a61caefe1fc947084b5705","versionType":"git"},{"version":"93618edf753838a727dbff63c7c291dee22d656b","status":"affected","lessThan":"e1aed52b68a361f6fc047b24a37d9ec4d928a158","versionType":"git"},{"version":"33fa2e6b1507a0a377a151a8826438bedad1d0b0","status":"affected","versionType":"git"},{"version":"7.0.9","status":"affected","lessThan":"7.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/legacy_freezer.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/legacy_freezer.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e045192f11a3e16624a61caefe1fc947084b5705"},{"url":"https://git.kernel.org/stable/c/e1aed52b68a361f6fc047b24a37d9ec4d928a158"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:28.905Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}