{"id":"CVE-2026-139228","aliases":["CVE-2026-139228"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: initialize status waiters before publishing them","summary":"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   <TASK>\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   </TASK>\n  Modules linked in:","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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   <TASK>\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   </TASK>\n  Modules linked in:","source":"cvelist"}],"published":"2026-11-30T13:32:48.477Z","modified":"2026-11-30T14:18:44.233Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"461030dcd0e1222a80ee4085d60d9d80b4aeb0a9","status":"affected"},{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"9720ce784f037e2cccc03997570af7f62b7f7299","status":"affected"},{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"5d0820f27eefc7369848e074a1790c24a729e135","status":"affected"},{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"5ba99da09a5b3eb9e58bc56a5062991ed1c99c56","status":"affected"},{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"ab84d267b49b0179d088972d72081dd9da557996","status":"affected"},{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"f983e104a31bbe7db4619f81535d82f11461651f","status":"affected"},{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"4a4d57f94d5112b3bf1e373caee8cf1042c4c118","status":"affected"},{"type":"git","introduced":"98211489d4147e41b11703e4245846d60b3acce4","fixed":"f6bfa6c458288d72948af95391b205f3eb775721","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.16","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/461030dcd0e1222a80ee4085d60d9d80b4aeb0a9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9720ce784f037e2cccc03997570af7f62b7f7299","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d0820f27eefc7369848e074a1790c24a729e135","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ba99da09a5b3eb9e58bc56a5062991ed1c99c56","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab84d267b49b0179d088972d72081dd9da557996","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f983e104a31bbe7db4619f81535d82f11461651f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a4d57f94d5112b3bf1e373caee8cf1042c4c118","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f6bfa6c458288d72948af95391b205f3eb775721","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139228","url":"https://www.cve.org/CVERecord?id=CVE-2026-139228","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:48.477Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139228","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139228","licence":"Public domain","modified":"2026-11-30T14:18:44.233Z"}],"updatedAt":"2026-11-30T14:32:56.825Z","epss":{"score":0.00211,"percentile":0.12071,"date":"2026-12-01T12:00:22.000Z"}}