{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143114","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.350Z","datePublished":"2026-12-03T09:19:28.266Z","dateUpdated":"2026-12-04T03:29:24.580Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:29:24.580Z"},"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."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - cgroup_file_notify() arms notify_timer from a local memcg charge in __memcg_memory_event(), racing a write() of cgroup.subtree_control that reaches cgroup_rm_file() via kernfs_fop_write_iter, cgroup_file_write(), and cgroup_subtree_control_write(). No remote message supplies the input.\nAC:L - One thread charges the child memcg inside the CGROUP_FILE_NOTIFY_MIN_INTV window so cgroup_file_notify() passes READ_ONCE(cfile->kn) and calls timer_reduce(); another writes \"-memory\" so cgroup_rm_file() nulls kn and timer_delete_sync() between those two steps. Both sides are the attacker's, and the fix commit's reproducer wins within a minute.\nPR:L - cgroup_subtree_control_write() has no capable() check. cgroup.subtree_control is CFTYPE_NS_DELEGATABLE, mode S_IWUSR from cgroup_file_mode(), and cgroup_add_file() creates it as current_fsuid(). A delegated cgroup v2 owner (systemd user@.service delegates memory) can mkdir a child, write +memory, charge it, and write -memory.\nUI:N - The attacker writes its own cgroup.subtree_control, places its own task in the child, and generates the __memcg_memory_event() charge itself. Nobody else has to mount media or act.\nS:U - The object that stays queued is events_file.notify_timer inside the host mem_cgroup, and expire_timers() runs on that same kernel timer wheel. This does not cross a guest/host or IOMMU boundary.\nC:H - On the kill path, css_free_rwork_fn() calls mem_cgroup_css_free() and kfree()s the mem_cgroup while events_file.notify_timer is still queued. expire_timers() reads timer->function and cgroup_file_notify() reads cfile->kn from that freed slot; a reused mem_cgroup object supplies both.\nI:H - expire_timers() invokes the function pointer loaded from the freed timer_list and detach_timer() writes through entry.pprev. Reuse of the mem_cgroup slab object lets that softirq callback and hlist unlink operate on reclaimed bytes. The hide path's cgroup_add_file() timer_setup() also clears pprev on a timer that is still linked.\nA:H - Re-showing the hidden css calls timer_setup() from cgroup_add_file() on the still-queued notify_timer; the fix commit's splat is the ODEBUG init-active warning in timer_init_key() under cgroup_subtree_control_write(). Without debug objects, do_init_timer() sets pprev to NULL and detach_timer()'s __hlist_del() oopses, and a fire after mem_cgroup_free() faults too."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cgroup.c"],"versions":[{"version":"4616120fca7f6d48b4c640e3975352e451e9c2ce","lessThan":"e3a9c67da7ba491c8fa238aeffdb65becf846245","status":"affected","versionType":"git"},{"version":"4616120fca7f6d48b4c640e3975352e451e9c2ce","lessThan":"fffbdad76a57eed26cff1be19f4cbb407f0b6e7c","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/cgroup/cgroup.c"],"versions":[{"version":"7.1","status":"affected"},{"version":"0","lessThan":"7.1","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e3a9c67da7ba491c8fa238aeffdb65becf846245"},{"url":"https://git.kernel.org/stable/c/fffbdad76a57eed26cff1be19f4cbb407f0b6e7c"}],"title":"cgroup: arm the notify timer only while the file exists","x_generator":{"engine":"bippy-1.2.0"}}}}