CVE-2026-139228: ocfs2: initialize status waiters before publishing them

Published Nov 30, 2026
·
Updated

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

ocfs2: initialize status waiters before publishing them

o2netprepnsw() publishes its stack waiter in nnstatusidr and nnstatuslist under nnlock, then initializes the wait queue and completion status after releasing the lock. A concurrent disconnect can find that waiter through o2netcompletenodesnsw() and call wakeup() before the wait queue has a valid lock and list head. The sender can also overwrite a completion status with its initial value.

Initialize the wait queue and status before publishing the waiter. nnlock then orders publication against completion, and no reader can observe a partially initialized object. Leave the IDR allocation and its failure handling unchanged.

A controlled case-modified test kernel used a synthetic connection to enter the real send path and overlap publication with disconnect. The candidate completion and wake-up code were unchanged. Its Oops includes:

KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:wakeupcommon+0xa0/0x1f0 Call Trace: <TASK> wakeup+0x36/0x60 o2netcompletenswlocked+0x222/0x370 o2netsetnnstate+0x917/0xea0 o2netdisconnectnode+0xd0/0x190 o2netvalidatecontrolwrite+0x454/0x500 fullproxywrite+0x11f/0x180 vfswrite+0x25a/0x1010 ksyswrite+0x111/0x200 dosyscall64+0x114/0x620 entrySYSCALL64afterhwframe+0x77/0x7f </TASK> Modules linked in:

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description

Frequently Asked Questions

1

What runtime conditions are required for this issue to occur?

The race requires an OCFS2 network status waiter to be published while a concurrent node disconnect processes that waiter. The disconnect can wake the waiter before its wait queue is initialized, and a sender can also have its completion status overwritten.

2

What evidence might indicate that this race has occurred?

The reported controlled test produced a KASAN null-pointer dereference in __wake_up_common, reached through __wake_up, o2net_complete_nsw_locked, and o2net_set_nn_state. This trace indicates the wake-up path encountered an uninitialized waiter.

3

Do the provided details identify affected or fixed Linux kernel release versions?

No. The data provides three stable kernel commit references, but does not state affected version ranges or the kernel releases containing the fix.

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