{"id":"CVE-2026-139228","summary":"ocfs2: initialize status waiters before publishing them","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: initialize status waiters before publishing them\n\no2net_prep_nsw() publishes its stack waiter in nn_status_idr and\nnn_status_list under nn_lock, then initializes the wait queue and\ncompletion status after releasing the lock.  A concurrent disconnect can\nfind that waiter through o2net_complete_nodes_nsw() and call wake_up()\nbefore the wait queue has a valid lock and list head.  The sender can also\noverwrite a completion status with its initial value.\n\nInitialize the wait queue and status before publishing the waiter. \nnn_lock then orders publication against completion, and no reader can\nobserve a partially initialized object.  Leave the IDR allocation and its\nfailure handling unchanged.\n\nA controlled case-modified test kernel used a synthetic connection to\nenter the real send path and overlap publication with disconnect.  The\ncandidate completion and wake-up code were unchanged.  Its Oops includes:\n\n  KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\n  RIP: 0010:__wake_up_common+0xa0/0x1f0\n  Call Trace:\n   \u003cTASK\u003e\n   __wake_up+0x36/0x60\n   o2net_complete_nsw_locked+0x222/0x370\n   o2net_set_nn_state+0x917/0xea0\n   o2net_disconnect_node+0xd0/0x190\n   o2net_validate_control_write+0x454/0x500\n   full_proxy_write+0x11f/0x180\n   vfs_write+0x25a/0x1010\n   ksys_write+0x111/0x200\n   do_syscall_64+0x114/0x620\n   entry_SYSCALL_64_after_hwframe+0x77/0x7f\n   \u003c/TASK\u003e\n  Modules linked in:","modified":"2026-12-01T21:02:37.202123191Z","published":"2026-11-30T13:32:48.477Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139228.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/461030dcd0e1222a80ee4085d60d9d80b4aeb0a9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a4d57f94d5112b3bf1e373caee8cf1042c4c118"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5ba99da09a5b3eb9e58bc56a5062991ed1c99c56"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d0820f27eefc7369848e074a1790c24a729e135"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9720ce784f037e2cccc03997570af7f62b7f7299"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab84d267b49b0179d088972d72081dd9da557996"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f6bfa6c458288d72948af95391b205f3eb775721"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f983e104a31bbe7db4619f81535d82f11461651f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139228.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139228"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"98211489d4147e41b11703e4245846d60b3acce4"},{"fixed":"461030dcd0e1222a80ee4085d60d9d80b4aeb0a9"},{"fixed":"9720ce784f037e2cccc03997570af7f62b7f7299"},{"fixed":"5d0820f27eefc7369848e074a1790c24a729e135"},{"fixed":"5ba99da09a5b3eb9e58bc56a5062991ed1c99c56"},{"fixed":"ab84d267b49b0179d088972d72081dd9da557996"},{"fixed":"f983e104a31bbe7db4619f81535d82f11461651f"},{"fixed":"4a4d57f94d5112b3bf1e373caee8cf1042c4c118"},{"fixed":"f6bfa6c458288d72948af95391b205f3eb775721"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139228.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.16"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139228.json"}}],"schema_version":"1.9.2"}