CVE-2026-142878

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: wait for filecheck kobject release after a failed add

The filecheck kobject and its release completion are embedded in ocfs2_super, so the osb must outlive the kobject. On a failed kobject_init_and_add(), creation clears fs_fcheck and calls kobject_put(), but returns without waiting for the release callback.

With CONFIG_DEBUG_KOBJECT_RELEASE, the last put queues delayed cleanup. Mount failure can then free the containing osb before the embedded release timer expires:

Mount failure Delayed cleanup ------------- --------------- ocfs2_filecheck_create_sysfs() kobject_init_and_add() fails fs_fcheck = NULL kobject_put() queue delayed release return to mount error cleanup ocfs2_dismount_volume() remove_sysfs() skips the wait kfree(osb) expire embedded release timer access freed osb

The normal removal path waits for fs_kobj_unregister, but it returns early when fs_fcheck is NULL. The failed-add path therefore leaves the delayed work and its completion in freed storage.

Wait for the existing release completion after the failed-add kobject_put(), before returning to mount error cleanup. This keeps the enclosing osb alive until the kobject has finished releasing, matching the normal teardown path.

KASAN report as below:

BUG: KASAN: slab-use-after-free in __run_timers+0xa6d/0xa90 Write of size 8 at addr ffff8881178a5658 by task swapper/0/0 CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.3.0-rc4-next-20260921-pmb-ocfs2-functional-v1+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: <IRQ> dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 ? __run_timers+0xa6d/0xa90 ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20e/0x420 ? __run_timers+0xa6d/0xa90 kasan_report+0xe0/0x110 ? __run_timers+0xa6d/0xa90 __run_timers+0xa6d/0xa90 ? srso_alias_return_thunk+0x5/0xfbef5 ? __pfx___run_timers+0x10/0x10 ? __lock_acquire+0x5a3/0x2140 ? __pfx_do_raw_spin_lock+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 timer_expire_remote+0xfa/0x160 ? __pfx_timer_expire_remote+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? trace_hardirqs_on+0x18/0x160 tmigr_handle_remote_up+0x4ba/0x9d0 ? __pfx_tmigr_handle_remote_up+0x10/0x10 ? tmigr_handle_remote+0x21a/0x340 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_release+0xc8/0x290 ? __pfx_tmigr_handle_remote_up+0x10/0x10 __walk_groups_from+0x5a/0x160 tmigr_handle_remote+0x24f/0x340 ? __pfx_tmigr_handle_remote+0x10/0x10 ? lock_acquire+0x190/0x300 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_release+0xc8/0x290 run_timer_softirq+0x222/0x270 ? __pfx_run_timer_softirq+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? lockdep_hardirqs_on_prepare+0xb8/0x1a0 ? srso_alias_return_thunk+0x5/0xfbef5 handle_softirqs+0x1fa/0x8d0 ? __pfx_handle_softirqs+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? _raw_spin_unlock+0x23/0x40 ? srso_alias_return_thunk+0x5/0xfbef5 ? __hrtimer_rearm_deferred+0x1fb/0x5d0 __irq_exit_rcu+0x113/0x1e0 irq_exit_rcu+0xe/0x20 sysvec_apic_timer_interrupt+0x6c/0x80 </IRQ> <TASK> asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0010:pv_native_safe_halt+0xf/0x20 Code: fa 18 01 e9 ee 37 ff fa 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 23 c7 14 00 fb f4 <e9> c7 37 ff fa 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 RSP: 0018:ffffffff87c07cf8 EFLAGS: 00000206 R ---truncated---

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 9d8da813a77474f2fc773cb33b32c326c9a386c8; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 56e40079f679e64c09984a4f5cfbd0582fa4d736; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 087af0debe3b0d04f62ba0900e85b6f38e3403f8; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 83ffb1dda5dc2e3920f856ed263582594a212b1e; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 91e265cf533448a309ba0b481707c32e0e26aa37; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 74fb1f927408bcf10d8ce3da7909ce686a07dd3d; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 9c81fade880026ec85cc2b50b80fd30599473372; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < a25c02af29c3e95128e4343fceb4bdace8e480a0; c7fb6b75def2c2a4bf2902006099ae586fcdb234; bb1313f8e3e009b327cb1a289c517a6291d44ca3; >= 4.19.54, < 4.20; >= 5.1.13, < 5.2
LinuxLinux5.2

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142879In the Linux kernel, the following vulnerability has been resolved: mm/migrate: snapshot the source nid before the misplaced migration A sCVE-2026-142883.1GitLab has remediated an issue in GitLab EE affecting all versions from 17.4 before 19.3.6, 19.4 before 19.4.3, and 19.5 before 19.5.1 that CVE-2026-142880In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: mark pages freed by __free_pages_core() as not tagged OCVE-2026-142881In the Linux kernel, the following vulnerability has been resolved: 9p: fix caches_show() out-of-bounds write The sysfs show handler for /CVE-2026-142882In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: clear stale request context after abort usb9pfs_clear_tx(CVE-2026-142883In the Linux kernel, the following vulnerability has been resolved: io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit io_CVE-2026-142884In the Linux kernel, the following vulnerability has been resolved: NFSD: Complete a cld upcall when the daemon closes the pipe Once nfsdcCVE-2026-142885In the Linux kernel, the following vulnerability has been resolved: xfs: check for buffer overruns when examining local/remote xattr entrieCVE-2026-142886In the Linux kernel, the following vulnerability has been resolved: media: ipu6: Fix firmware config leak on stream start ipu6_isys_fwcom_CVE-2026-142887In the Linux kernel, the following vulnerability has been resolved: PCI: cadence: Store the core controller in platform drvdata cdns_plat_CVE-2026-142888In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: resize Rx head buffers when rx-copybreak changes Since rx-cCVE-2026-142889In the Linux kernel, the following vulnerability has been resolved: apparmor: remove unconfined_profile() check in inet socket mediation W
CVE-2026-142878: Unscored | Vulnix