Overview
The Linux kernel's OCFS2 (Oracle Cluster File System 2) driver registers a set of sysfs attributes that expose filecheck state to userspace. The registration logic in this CVE carried a subtle ordering defect: the kobject hosting those attributes was made visible to the sysfs hierarchy before the structure it points to was fully published, leaving a brief window in which a reader could observe partially initialized state.
The upstream resolution note for this issue is titled ocfs2: publish the filecheck owner before adding sysfs attributes, and the fix reorders the assignment of the owner pointer so that any attribute that becomes live during registration already references valid state.
Affected systems
- Component: Linux kernel, OCFS2 filesystem driver (
fs/ocfs2/)
- Vulnerable code path:
ocfs2_filecheck_create_sysfs()and the attribute callbackocfs2_filecheck_attr_show()
- Interface: the OCFS2 filecheck sysfs attributes created through
kobject_init_and_add()
- Nature of the defect: initialization race leading to a NULL pointer dereference (CWE-476) via an improperly ordered publication of state (CWE-665 / improper initialization ordering)
The supplied context does not identify specific affected or fixed kernel release numbers, backport commits, stable tree SHA-1s, or distribution advisories. The NVD entry carries a publication timestamp of 2026-12-03, which is anomalous relative to a normal CVE timeline and may reflect a reserved or placeholder record; release and version data therefore cannot be confirmed from this source alone. Any kernel built from a tree carrying the original ordering of kobject_init_and_add() relative to the entry->fs_fcheck assignment is theoretically exposed, but whether that includes shipped vendor kernels could not be verified from the material provided.
Root cause
Inside ocfs2_filecheck_create_sysfs(), the filecheck allocation is initialized and then handed to kobject_init_and_add() in order to register the kobject together with its default attribute group. The owner pointer entry->fs_fcheck, however, was only assigned after that call returned.
The problem is that sysfs visibility is not deferred until the surrounding function completes. Once registration begins, the default attribute group can already be readable. A concurrent read that arrives in that window enters ocfs2_filecheck_attr_show() while entry->fs_fcheck is still NULL, and the callback attempts to acquire fc_lock through that NULL-embedded lock, causing the kernel to dereference a near-zero address.
The supplied crash output confirms the failure path:
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
RIP: 0010:kasan_byte_accessible+0x15/0x30
Call Trace:
__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
The reported dereference lands at offset 0x28-0x2f inside a zeroed structure, matching a lock embedded in a NULL-derived object. The call chain runs from ocfs2_filecheck_attr_show() through the generic sysfs and VFS read path, which is consistent with a user-mode read() racing module or filesystem initialization.
Attack vector and prerequisites
The vector is local. Any process able to read the OCFS2 filecheck sysfs attribute can trigger the fault if its read lands during the narrow registration window. Practical prerequisites are:
- OCFS2 support present in the running kernel (module loaded or built in)
- The filecheck sysfs node being created, typically around module load or OCFS2 filesystem activity
- Concurrent user-space reads of that sysfs path
There is no indication in the supplied material that the NULL dereference is exploitable for privilege escalation, memory corruption, or controlled write primitives. The realistic consequence is a kernel oops or panic, i.e. local denial of service.
Exploitability assessment
Triggering the race is timing-dependent: the window is narrow and the reported reproduction required a probe-instrumented test kernel with the original registration ordering, which suggests the race is not trivially reachable on stock kernels without artificial delay injection. Contended or slow systems — for example hosts performing many sysfs reads while OCFS2 mounts are established — narrow the timing requirements further.
No public exploit code, in-the-wild exploitation telemetry, or known weaponization for privilege escalation is referenced in the advisory. The supplied risk assessment scores the entry as informational, which is broadly consistent with a narrow local denial-of-service race requiring either favorable timing or a perturbed kernel.
Mitigation
Patch (primary fix): In ocfs2_filecheck_create_sysfs(), assign entry->fs_fcheck to the initialized owner before calling kobject_init_and_add(), so that every attribute that becomes visible during registration points at valid state. On the failure path of kobject_init_and_add(), clear the pointer again to preserve the existing teardown guard and error cleanup logic.
Upstream tracking: The resolution note states the issue has been resolved in the Linux kernel. The canonical commit can be located via the kernel git history for fs/ocfs2/ and the kernel mailing list using the subject line ocfs2: publish the filecheck owner before adding sysfs attributes. Until a specific SHA is identified, operators should take the latest stable or LTS kernel from their vendor once the change reaches that distribution's stable stream.
Operational workarounds for unpatched kernels:
- Avoid mounting OCFS2 filesystems on hosts where unprivileged local users are present.
- Restrict access to the relevant sysfs paths using mount namespaces or sysfs access controls so unprivileged processes cannot read the filecheck attributes during the registration window.
- Defer loading of the
ocfs2module until after boot, when no concurrent sysfs activity is expected.
Detection: Watch for kernel oops signatures matching ocfs2_filecheck_attr_show combined with _raw_spin_lock and a KASAN null-ptr-deref at low offsets (around 0x28-0x2f) of a zeroed structure. Console logs, ftrace output, and crash dumps (for example vmcore or drgn-based inspection) can confirm exposure. Sysfs reads against the OCFS2 filecheck node occurring within milliseconds of module load or filesystem mount are the highest-fidelity correlate.
Testing hygiene: Enable CONFIG_DEBUG_KERNEL, KASAN, and lockdep on test kernels to reproduce and detect future regressions of this class, and ensure slab poisoning is active so such races turn into deterministic fault paths during validation.
Caveats
The 2026-12-03 publication date on the NVD extract is inconsistent with a normal CVE timeline and may indicate a reserved, placeholder, or mis-cited entry. CVSS vectors, affected version ranges, exploit maturity including EPSS or KEV status, and vendor-specific advisories are absent from the provided context and are therefore not cited here. The accompanying risk assessment (technical 0/100, severity informational) reflects the limited scoring context rather than a definitive verdict on impact; the technical description details a genuine, reproducible kernel NULL-pointer-dereference race whose realistic worst case is local denial of service.
References
- git.kernel.org/stable/c/21b520d7a19ee3a5b64d2a3e914993fe653a22a2
- git.kernel.org/stable/c/5f2ead17963c71d94d643d2a203bd6c0a33108fc
- git.kernel.org/stable/c/6132073655e826052562f90f939f532aac6fbafe
- git.kernel.org/stable/c/6d2fac4a7838bbb617982cbf3d8352e7f9eedd5c
- git.kernel.org/stable/c/cb5303cfe9bc86237f84660994b503c1b9faffb0
- git.kernel.org/stable/c/d764d3f28a38deafe2980f6671764968dcdb9bc5
- git.kernel.org/stable/c/e062baf5680845705d21df415c8f0751c96b0792
- git.kernel.org/stable/c/e96d76f82701213fd2f14660b786f9f82f1d0dc7