{"id":"CVE-2026-99431","aliases":["CVE-2026-99431"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: cancel quota sync work before freeing quota info","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: cancel quota sync work before freeing quota info\n\nOCFS2 quota info owns dqi_sync_work and must outlive both its timer and\nqsync_work_fn().  ocfs2_local_free_info() frees that owner without\ncancelling the work, relying on the quota suspend/disable wrappers.\n\nLoading quotas on a read-only to read-write remount can successfully queue\nthe work in ocfs2_global_read_info() and then fail while attaching a dquot\nto an existing inode in add_dquot_ref().  The quota core unwinds that\nfailure directly through dquot_disable(), bypassing the OCFS2 wrapper:\n\n  Remount task (s_umount write)        Timer/workqueue\n  ocfs2_global_read_info()\n    schedules dqi_sync_work\n  add_dquot_ref() returns an error\n  dquot_disable()\n    ocfs2_local_free_info()\n      frees oinfo\n                                     delayed-work timer expires\n                                     qsync_work_fn() reads oinfo\n\nThe timer core can then write to the freed embedded timer, or\nqsync_work_fn() can read oinfo->dqi_gqinode before its s_umount trylock.\nThe outer ocfs2_disable_quotas() cleanup skips the failed type because\ndquot_disable() has already cleared its loaded state.\n\nCancel dqi_sync_work synchronously at the start of\nocfs2_local_free_info(), before dropping the global inode or freeing any\nowner state. The work is initialized whenever read_file_info() succeeds.\ndquot_disable() holds s_umount for write, so the callback skips its quota\nscan via down_read_trylock() and can finish without waiting for teardown.\nThe synchronous cancel also handles its self-rearm.\n\nKASAN report as below:\n\n    BUG: KASAN: slab-use-after-free in __run_timers+0x9e9/0xa10\n    Write of size 8 at addr ffff888111b0aad0 by task swapper/3/0\n\n    Call Trace:\n     <IRQ>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? __run_timers+0x9e9/0xa10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20e/0x420\n     ? __run_timers+0x9e9/0xa10\n     kasan_report+0xe0/0x110\n     ? __run_timers+0x9e9/0xa10\n     __run_timers+0x9e9/0xa10\n     ? __pfx___run_timers+0x10/0x10\n     ? __lock_acquire+0x5a3/0x2140\n     ? __pfx_do_raw_spin_lock+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     timer_expire_remote+0xfa/0x160\n     ? __pfx_timer_expire_remote+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? trace_hardirqs_on+0x18/0x160\n     tmigr_handle_remote_up+0x4ba/0x9d0\n     ? __pfx_tmigr_handle_remote_up+0x10/0x10\n     ? tmigr_handle_remote+0x21a/0x340\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_release+0xc8/0x290\n     ? __pfx_tmigr_handle_remote_up+0x10/0x10\n     __walk_groups_from+0x5a/0x160\n     tmigr_handle_remote+0x24f/0x340\n     ? __pfx_tmigr_handle_remote+0x10/0x10\n     ? lock_acquire+0x190/0x300\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_release+0xc8/0x290\n     run_timer_softirq+0x222/0x270\n     ? __pfx_run_timer_softirq+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lockdep_hardirqs_on_prepare+0xb8/0x1a0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     handle_softirqs+0x1fa/0x8d0\n     ? __pfx_handle_softirqs+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? _raw_spin_unlock+0x23/0x40\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __hrtimer_rearm_deferred+0x1fb/0x5d0\n     __irq_exit_rcu+0x113/0x1e0\n     irq_exit_rcu+0xe/0x20\n     sysvec_apic_timer_interrupt+0x6c/0x80\n     </IRQ>\n     <TASK>\n     asm_sysvec_apic_timer_interrupt+0x1a/0x20\n     ? ct_kernel_exit.constprop.0+0xc5/0xf0\n     ? do_idle+0x3ae/0x650\n     default_idle+0x9/0x10\n     default_idle_call+0x6c/0xb0\n     do_idle+0x3ae/0x650\n     ? cpuhp_online_idle+0x9c/0xb0\n     ? __pfx_do_idle+0x10/0x10\n     ? __entry_text_end+0x1020f6/0x1020f9\n     ? lockdep_hardirqs_on_prepare+0xeb/0x1a0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? trace_hardirqs_on+0x18/0x160\n     ? srso_a\n---truncated---","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: cancel quota sync work before freeing quota info\n\nOCFS2 quota info owns dqi_sync_work and must outlive both its timer and\nqsync_work_fn().  ocfs2_local_free_info() frees that owner without\ncancelling the work, relying on the quota suspend/disable wrappers.\n\nLoading quotas on a read-only to read-write remount can successfully queue\nthe work in ocfs2_global_read_info() and then fail while attaching a dquot\nto an existing inode in add_dquot_ref().  The quota core unwinds that\nfailure directly through dquot_disable(), bypassing the OCFS2 wrapper:\n\n  Remount task (s_umount write)        Timer/workqueue\n  ocfs2_global_read_info()\n    schedules dqi_sync_work\n  add_dquot_ref() returns an error\n  dquot_disable()\n    ocfs2_local_free_info()\n      frees oinfo\n                                     delayed-work timer expires\n                                     qsync_work_fn() reads oinfo\n\nThe timer core can then write to the freed embedded timer, or\nqsync_work_fn() can read oinfo->dqi_gqinode before its s_umount trylock.\nThe outer ocfs2_disable_quotas() cleanup skips the failed type because\ndquot_disable() has already cleared its loaded state.\n\nCancel dqi_sync_work synchronously at the start of\nocfs2_local_free_info(), before dropping the global inode or freeing any\nowner state. The work is initialized whenever read_file_info() succeeds.\ndquot_disable() holds s_umount for write, so the callback skips its quota\nscan via down_read_trylock() and can finish without waiting for teardown.\nThe synchronous cancel also handles its self-rearm.\n\nKASAN report as below:\n\n    BUG: KASAN: slab-use-after-free in __run_timers+0x9e9/0xa10\n    Write of size 8 at addr ffff888111b0aad0 by task swapper/3/0\n\n    Call Trace:\n     <IRQ>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? __run_timers+0x9e9/0xa10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20e/0x420\n     ? __run_timers+0x9e9/0xa10\n     kasan_report+0xe0/0x110\n     ? __run_timers+0x9e9/0xa10\n     __run_timers+0x9e9/0xa10\n     ? __pfx___run_timers+0x10/0x10\n     ? __lock_acquire+0x5a3/0x2140\n     ? __pfx_do_raw_spin_lock+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     timer_expire_remote+0xfa/0x160\n     ? __pfx_timer_expire_remote+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? trace_hardirqs_on+0x18/0x160\n     tmigr_handle_remote_up+0x4ba/0x9d0\n     ? __pfx_tmigr_handle_remote_up+0x10/0x10\n     ? tmigr_handle_remote+0x21a/0x340\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_release+0xc8/0x290\n     ? __pfx_tmigr_handle_remote_up+0x10/0x10\n     __walk_groups_from+0x5a/0x160\n     tmigr_handle_remote+0x24f/0x340\n     ? __pfx_tmigr_handle_remote+0x10/0x10\n     ? lock_acquire+0x190/0x300\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_release+0xc8/0x290\n     run_timer_softirq+0x222/0x270\n     ? __pfx_run_timer_softirq+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lockdep_hardirqs_on_prepare+0xb8/0x1a0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     handle_softirqs+0x1fa/0x8d0\n     ? __pfx_handle_softirqs+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? _raw_spin_unlock+0x23/0x40\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __hrtimer_rearm_deferred+0x1fb/0x5d0\n     __irq_exit_rcu+0x113/0x1e0\n     irq_exit_rcu+0xe/0x20\n     sysvec_apic_timer_interrupt+0x6c/0x80\n     </IRQ>\n     <TASK>\n     asm_sysvec_apic_timer_interrupt+0x1a/0x20\n     ? ct_kernel_exit.constprop.0+0xc5/0xf0\n     ? do_idle+0x3ae/0x650\n     default_idle+0x9/0x10\n     default_idle_call+0x6c/0xb0\n     do_idle+0x3ae/0x650\n     ? cpuhp_online_idle+0x9c/0xb0\n     ? __pfx_do_idle+0x10/0x10\n     ? __entry_text_end+0x1020f6/0x1020f9\n     ? lockdep_hardirqs_on_prepare+0xeb/0x1a0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? trace_hardirqs_on+0x18/0x160\n     ? srso_a\n---truncated---","source":"cvelist"}],"published":"2026-11-19T14:41:04.530Z","modified":"2026-11-23T08:17:47.030Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"76108d9cac8635bdf695dabea978b31b994bb41a","status":"affected"},{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"e3a55e1d7b00e4a9d0f21d5da0c084cd7091778f","status":"affected"},{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"3c0e55230ad59083247eba653de17c99c0caea46","status":"affected"},{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"ef6de1ffc15c3ae7cb3764d80f09c6a414d50a15","status":"affected"},{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"7873680692369bcdf65480a8d81ccd2f298a13b3","status":"affected"},{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"5ff0f92064ab9bb344e7389c198cc9fd7ed30e29","status":"affected"},{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"cd3119eb1ebf8ea7631f68069addf109d4e77159","status":"affected"},{"type":"git","introduced":"1a6152d36dee08da2be2a3030dceb45ef680460a","fixed":"1dd1f005026d52642b994d63baa16b0b31f3b14f","status":"affected"},{"type":"git","version":"606592f53b877dc77ec1356ea82ea1d7bb6e8580","status":"affected"},{"type":"semver","introduced":"4.14.17","fixed":"4.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/76108d9cac8635bdf695dabea978b31b994bb41a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3a55e1d7b00e4a9d0f21d5da0c084cd7091778f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c0e55230ad59083247eba653de17c99c0caea46","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef6de1ffc15c3ae7cb3764d80f09c6a414d50a15","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7873680692369bcdf65480a8d81ccd2f298a13b3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ff0f92064ab9bb344e7389c198cc9fd7ed30e29","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd3119eb1ebf8ea7631f68069addf109d4e77159","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1dd1f005026d52642b994d63baa16b0b31f3b14f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99431","url":"https://www.cve.org/CVERecord?id=CVE-2026-99431","licence":"CVE Terms of Use","modified":"2026-11-23T08:02:43.534Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99431","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99431","licence":"Public domain","modified":"2026-11-23T08:17:47.030Z"}],"updatedAt":"2026-11-25T22:59:52.068Z","epss":{"score":0.00231,"percentile":0.1499,"date":"2026-12-01T12:00:22.000Z"}}