# CVE-2026-142878: ocfs2: wait for filecheck kobject release after a failed add

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:23:35.425Z
- **Modified:** 2026-12-03T04:18:26.030Z

> **AI summary (AI-generated, claude-haiku-5-5):** A flaw in the Linux kernel ocfs2 filesystem lets a failed filecheck sysfs setup free the superblock while a delayed release timer still uses it, causing a use-after-free.

## Who should check

- Anyone running Linux \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 9d8da813a77474f2fc773cb33b32c326c9a386c8; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 56e40079f679e64c09984a4f5cfbd0582fa4d736; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 087af0debe3b0d04f62ba0900e85b6f38e3403f8; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 83ffb1dda5dc2e3920f856ed263582594a212b1e; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 91e265cf533448a309ba0b481707c32e0e26aa37; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 74fb1f927408bcf10d8ce3da7909ce686a07dd3d; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 9c81fade880026ec85cc2b50b80fd30599473372; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< a25c02af29c3e95128e4343fceb4bdace8e480a0; c7fb6b75def2c2a4bf2902006099ae586fcdb234; bb1313f8e3e009b327cb1a289c517a6291d44ca3; …
- Anyone running Linux 5.2

## 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---

## Affected and fixed versions

- Linux: \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 9d8da813a77474f2fc773cb33b32c326c9a386c8; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 56e40079f679e64c09984a4f5cfbd0582fa4d736; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 087af0debe3b0d04f62ba0900e85b6f38e3403f8; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 83ffb1dda5dc2e3920f856ed263582594a212b1e; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 91e265cf533448a309ba0b481707c32e0e26aa37; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 74fb1f927408bcf10d8ce3da7909ce686a07dd3d; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 9c81fade880026ec85cc2b50b80fd30599473372; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< a25c02af29c3e95128e4343fceb4bdace8e480a0; c7fb6b75def2c2a4bf2902006099ae586fcdb234; bb1313f8e3e009b327cb1a289c517a6291d44ca3; … (cvelist)
- Linux: 5.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142878. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142878.md
Affected: Linux >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 9d8da813a77474f2fc773cb33b32c326c9a386c8; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 56e40079f679e64c09984a4f5cfbd0582fa4d736; >= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, < 087af0debe3b0d04f62ba0900e85b6f38e3403f8; >= b9fba67b3806e21b98bd5a9…
Fixed in: Linux 9d8da813a77474f2fc773cb33b32c326c9a386c8, Linux 56e40079f679e64c09984a4f5cfbd0582fa4d736, Linux 087af0debe3b0d04f62ba0900e85b6f38e3403f8, Linux 83ffb1dda5dc2e3920f856ed263582594a212b1e, Linux 91e265cf533448a309ba0b481707c32e0e26aa37, Linux 74fb1f927408bcf10d8ce3da7909ce686a07dd3d, Linux 9c81f…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142878 being exploited?

There is no confirmed exploitation: CVE-2026-142878 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142878?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142878?

Linux \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 9d8da813a77474f2fc773cb33b32c326c9a386c8; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 56e40079f679e64c09984a4f5cfbd0582fa4d736; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 087af0debe3b0d04f62ba0900e85b6f38e3403f8; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 83ffb1dda5dc2e3920f856ed263582594a212b1e; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 91e265cf533448a309ba0b481707c32e0e26aa37; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 74fb1f927408bcf10d8ce3da7909ce686a07dd3d; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< 9c81fade880026ec85cc2b50b80fd30599473372; \>= b9fba67b3806e21b98bd5a98dc3921a8e9b42d61, \< a25c02af29c3e95128e4343fceb4bdace8e480a0; c7fb6b75def2c2a4bf2902006099ae586fcdb234; bb1313f8e3e009b327cb1a289c517a6291d44ca3; …; Linux 5.2.

### Is there a fix for CVE-2026-142878?

Yes. Fixed in Linux 9d8da813a77474f2fc773cb33b32c326c9a386c8, Linux 56e40079f679e64c09984a4f5cfbd0582fa4d736, Linux 087af0debe3b0d04f62ba0900e85b6f38e3403f8, Linux 83ffb1dda5dc2e3920f856ed263582594a212b1e, Linux 91e265cf533448a309ba0b481707c32e0e26aa37, Linux 74fb1f927408bcf10d8ce3da7909ce686a07dd3d, Linux 9c81fade880026ec85cc2b50b80fd30599473372. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142878?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/9d8da813a77474f2fc773cb33b32c326c9a386c8>
- other: <https://git.kernel.org/stable/c/56e40079f679e64c09984a4f5cfbd0582fa4d736>
- other: <https://git.kernel.org/stable/c/087af0debe3b0d04f62ba0900e85b6f38e3403f8>
- other: <https://git.kernel.org/stable/c/83ffb1dda5dc2e3920f856ed263582594a212b1e>
- other: <https://git.kernel.org/stable/c/91e265cf533448a309ba0b481707c32e0e26aa37>
- other: <https://git.kernel.org/stable/c/74fb1f927408bcf10d8ce3da7909ce686a07dd3d>
- other: <https://git.kernel.org/stable/c/9c81fade880026ec85cc2b50b80fd30599473372>
- other: <https://git.kernel.org/stable/c/a25c02af29c3e95128e4343fceb4bdace8e480a0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142878>

HTML: <https://flawdb.com/CVE-2026-142878> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142878>
