PT-2026-166530
CVE-2026-142807
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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:
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
Modules linked in:
Found an issue in the description? Have something to add? Feel free to write us 👾