CVE-2026-142807

Unknown

Last modified

CVE-2026-142807 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: ocfs2: publish the filecheck owner before adding sysfs attributes ocfs2_filecheck_create_sysfs() initializes the filecheck allocation before calling kobject_init_and_add(), but assigns entry->fs_fcheck only after that call returns. The default attribute group can already be visible while registration is in progress.

Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: publish the filecheck owner before adding sysfs attributes ocfs2_filecheck_create_sysfs() initializes the filecheck allocation before calling kobject_init_and_add(), but assigns entry->fs_fcheck only after that call returns. The default attribute group can already be visible while registration is in progress. A concurrent read can therefore enter ocfs2_filecheck_attr_show() with a NULL fs_fcheck and try to lock its fc_lock. 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:kasan_byte_accessible+0x15/0x30 Call Trace: <TASK> __kasan_check_byte+0x13/0x50 lock_acquire+0x113/0x300 _raw_spin_lock+0x31/0x40 ocfs2_filecheck_attr_show+0x138/0x5f0 ocfs2_filecheck_show+0x5d/0x90 sysfs_kf_seq_show+0x1d3/0x360 seq_read_iter+0x480/0x1110 kernfs_fop_read_iter+0x419/0x5a0 vfs_read+0x7d2/0xc20 ksys_read+0x111/0x200 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> Modules linked in:

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 5f483c4abb507d068b326f24e4ea3481db9cda06, < e96d76f82701213fd2f14660b786f9f82f1d0dc7; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < 21b520d7a19ee3a5b64d2a3e914993fe653a22a2; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < 5f2ead17963c71d94d643d2a203bd6c0a33108fc; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < 6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < 6132073655e826052562f90f939f532aac6fbafe; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < d764d3f28a38deafe2980f6671764968dcdb9bc5; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < cb5303cfe9bc86237f84660994b503c1b9faffb0; >= 5f483c4abb507d068b326f24e4ea3481db9cda06, < e062baf5680845705d21df415c8f0751c96b0792
LinuxLinux4.17

References

Timeline

Published
Last Modified
Status
Received

Frequently Asked Questions

What is CVE-2026-142807?
In the Linux kernel, the following vulnerability has been resolved: ocfs2: publish the filecheck owner before adding sysfs attributes ocfs2_filecheck_create_sysfs() initializes the filecheck allocation before calling kobject_init_and_add(), but assigns entry->fs_fcheck only after that call returns. The default attribute group can already be visible while registration is in progress. A concurrent read can therefore enter ocfs2_filecheck_attr_show() with a NULL fs_fcheck and try to lock its fc_lock. 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:kasan_byte_accessible+0x15/0x30 Call Trace: <TASK> __kasan_check_byte+0x13/0x50 lock_acquire+0x113/0x300 _raw_spin_lock+0x31/0x40 ocfs2_filecheck_attr_show+0x138/0x5f0 ocfs2_filecheck_show+0x5d/0x90 sysfs_kf_seq_show+0x1d3/0x360 seq_read_iter+0x480/0x1110 kernfs_fop_read_iter+0x419/0x5a0 vfs_read+0x7d2/0xc20 ksys_read+0x111/0x200 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> Modules linked in:
How severe is CVE-2026-142807?
Severity scoring for CVE-2026-142807 is pending analysis.
How do I fix CVE-2026-142807?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-142807?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST