{"id":"CVE-2026-143114","state":"PUBLISHED","title":"cgroup: arm the notify timer only while the file exists","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup: arm the notify timer only while the file exists\n\ncgroup_rm_file() clears cfile->kn under cfile->lock and then deletes the\nnotify timer.  Since commit 4616120fca7f (\"cgroup: add lockless\nfast-path checks to cgroup_file_notify()\"), cgroup_file_notify() checks\nkn and arms the timer without that lock and can arm it right after it\nwas deleted:\n\n  Task A (memcg charge)                  Task B (subtree_control write)\n  cgroup_file_notify()\n    READ_ONCE(cfile->kn) != NULL\n                                         cgroup_rm_file()\n                                           cfile->kn = NULL\n                                           timer_delete_sync()\n    timer_reduce(&cfile->notify_timer)\n      /* timer queued again */\n\nIf the css is only hidden, showing it again runs timer_setup() on the\nstill queued timer and corrupts the timer wheel:\n\n  [   14.324093] ODEBUG: init active (active state 0) object: 0000000009e526fd object type: timer_list hint: cgroup_file_notify_timer+0x0/0x10\n  [   14.324123] WARNING: lib/debugobjects.c:629 at debug_print_object+0x1a4/0x3b0, CPU#1: cgnotify/64\n  [   14.329806] CPU: 1 UID: 0 PID: 64 Comm: cgnotify Tainted: G        W            7.3.0-17087-gd865f2677c44 #1 PREEMPT\n  [   14.335109] RIP: 0010:debug_print_object+0x1ae/0x3b0\n  [   14.354351] Call Trace:\n  [   14.354927]  <TASK>\n  [   14.356650]  __debug_object_init+0x203/0x3c0\n  [   14.361799]  timer_init_key+0x2c/0x240\n  [   14.362682]  cgroup_addrm_files+0x754/0xc40\n  [   14.366744]  css_populate_dir+0x12e/0x440\n  [   14.368636]  cgroup_apply_control_enable+0x2f3/0xb60\n  [   14.371769]  cgroup_subtree_control_write+0x740/0xc10\n  [   14.376924]  cgroup_file_write+0x19e/0x700\n  [   14.381809]  kernfs_fop_write_iter+0x337/0x510\n  [   14.382818]  vfs_write+0x545/0x1250\n  [   14.386491]  ksys_write+0xfa/0x200\n  [   14.390144]  do_syscall_64+0xfb/0x590\n  [   14.390994]  entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\nIf the css is freed instead, the timer can fire on freed memory.\n\nArm the timer under cfile->lock after checking kn again and keep only\nthe kn and timer_pending() checks outside the lock.  With the fix, the\ntimer stays idle once the file is removed.\n\nThis bug was identified and confirmed with the help of a deterministic\nhypervisor currently under development.  The C reproducer below however\nhits it within a minute.","publishedAt":"2026-12-03T09:19:28.266Z","updatedAt":"2026-12-03T09:19:28.266Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4616120fca7f6d48b4c640e3975352e451e9c2ce","status":"affected","lessThan":"e3a9c67da7ba491c8fa238aeffdb65becf846245","versionType":"git"},{"version":"4616120fca7f6d48b4c640e3975352e451e9c2ce","status":"affected","lessThan":"fffbdad76a57eed26cff1be19f4cbb407f0b6e7c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cgroup.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/cgroup.c"]}],"references":["https://git.kernel.org/stable/c/e3a9c67da7ba491c8fa238aeffdb65becf846245","https://git.kernel.org/stable/c/fffbdad76a57eed26cff1be19f4cbb407f0b6e7c"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143114.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143114","state":"PUBLISHED","datePublished":"2026-12-03T09:19:28.266Z","dateUpdated":"2026-12-03T09:19:28.266Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.350Z"},"containers":{"cna":{"title":"cgroup: arm the notify timer only while the file exists","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncgroup: arm the notify timer only while the file exists\n\ncgroup_rm_file() clears cfile->kn under cfile->lock and then deletes the\nnotify timer.  Since commit 4616120fca7f (\"cgroup: add lockless\nfast-path checks to cgroup_file_notify()\"), cgroup_file_notify() checks\nkn and arms the timer without that lock and can arm it right after it\nwas deleted:\n\n  Task A (memcg charge)                  Task B (subtree_control write)\n  cgroup_file_notify()\n    READ_ONCE(cfile->kn) != NULL\n                                         cgroup_rm_file()\n                                           cfile->kn = NULL\n                                           timer_delete_sync()\n    timer_reduce(&cfile->notify_timer)\n      /* timer queued again */\n\nIf the css is only hidden, showing it again runs timer_setup() on the\nstill queued timer and corrupts the timer wheel:\n\n  [   14.324093] ODEBUG: init active (active state 0) object: 0000000009e526fd object type: timer_list hint: cgroup_file_notify_timer+0x0/0x10\n  [   14.324123] WARNING: lib/debugobjects.c:629 at debug_print_object+0x1a4/0x3b0, CPU#1: cgnotify/64\n  [   14.329806] CPU: 1 UID: 0 PID: 64 Comm: cgnotify Tainted: G        W            7.3.0-17087-gd865f2677c44 #1 PREEMPT\n  [   14.335109] RIP: 0010:debug_print_object+0x1ae/0x3b0\n  [   14.354351] Call Trace:\n  [   14.354927]  <TASK>\n  [   14.356650]  __debug_object_init+0x203/0x3c0\n  [   14.361799]  timer_init_key+0x2c/0x240\n  [   14.362682]  cgroup_addrm_files+0x754/0xc40\n  [   14.366744]  css_populate_dir+0x12e/0x440\n  [   14.368636]  cgroup_apply_control_enable+0x2f3/0xb60\n  [   14.371769]  cgroup_subtree_control_write+0x740/0xc10\n  [   14.376924]  cgroup_file_write+0x19e/0x700\n  [   14.381809]  kernfs_fop_write_iter+0x337/0x510\n  [   14.382818]  vfs_write+0x545/0x1250\n  [   14.386491]  ksys_write+0xfa/0x200\n  [   14.390144]  do_syscall_64+0xfb/0x590\n  [   14.390994]  entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\nIf the css is freed instead, the timer can fire on freed memory.\n\nArm the timer under cfile->lock after checking kn again and keep only\nthe kn and timer_pending() checks outside the lock.  With the fix, the\ntimer stays idle once the file is removed.\n\nThis bug was identified and confirmed with the help of a deterministic\nhypervisor currently under development.  The C reproducer below however\nhits it within a minute."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4616120fca7f6d48b4c640e3975352e451e9c2ce","status":"affected","lessThan":"e3a9c67da7ba491c8fa238aeffdb65becf846245","versionType":"git"},{"version":"4616120fca7f6d48b4c640e3975352e451e9c2ce","status":"affected","lessThan":"fffbdad76a57eed26cff1be19f4cbb407f0b6e7c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cgroup.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/cgroup.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e3a9c67da7ba491c8fa238aeffdb65becf846245"},{"url":"https://git.kernel.org/stable/c/fffbdad76a57eed26cff1be19f4cbb407f0b6e7c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:28.266Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}