CVE-2026-142807: ocfs2: publish the filecheck owner before adding sysfs attributes

Published Dec 3, 2026
·
Updated

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

ocfs2: publish the filecheck owner before adding sysfs attributes

ocfs2filecheckcreatesysfs() initializes the filecheck allocation before calling kobjectinitandadd(), but assigns entry->fsfcheck only after that call returns. The default attribute group can already be visible while registration is in progress. A concurrent read can therefore enter ocfs2filecheckattrshow() with a NULL fsfcheck and try to lock its fclock.

Assign the initialized owner before adding the kobject, so every activated attribute has valid state. Clear the pointer when addition fails, preserving the existing teardown guard and error cleanup.

A controlled probe-instrumented test kernel with the original OCFS2 registration ordering produced this Oops during a concurrent sysfs read:

KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] RIP: 0010:kasanbyteaccessible+0x15/0x30 Call Trace: <TASK> kasancheckbyte+0x13/0x50 lockacquire+0x113/0x300 rawspinlock+0x31/0x40 ocfs2filecheckattrshow+0x138/0x5f0 ocfs2filecheckshow+0x5d/0x90 sysfskfseqshow+0x1d3/0x360 seqreaditer+0x480/0x1110 kernfsfopreaditer+0x419/0x5a0 vfsread+0x7d2/0xc20 ksysread+0x111/0x200 dosyscall64+0x114/0x620 entrySYSCALL64afterhwframe+0x77/0x7f </TASK> Modules linked in:

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In ocfs2_filecheck_create_sysfs(), publish the initialized filecheck owner before adding sysfs attributes; clear the pointer if the addition fails, preserving the existing teardown guard and error cleanup.

Event History

Dec 3, 2026
CVE Published
via MITRE·03:11 AM
Data Sourced
via MITRE·03:11 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203