{"id":"CVE-2026-139228","state":"PUBLISHED","title":"ocfs2: initialize status waiters before publishing them","description":"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:","publishedAt":"2026-11-30T13:32:48.477Z","updatedAt":"2026-11-30T13:32:48.477Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"461030dcd0e1222a80ee4085d60d9d80b4aeb0a9","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"9720ce784f037e2cccc03997570af7f62b7f7299","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"5d0820f27eefc7369848e074a1790c24a729e135","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"5ba99da09a5b3eb9e58bc56a5062991ed1c99c56","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"ab84d267b49b0179d088972d72081dd9da557996","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"f983e104a31bbe7db4619f81535d82f11461651f","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"4a4d57f94d5112b3bf1e373caee8cf1042c4c118","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"f6bfa6c458288d72948af95391b205f3eb775721","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/tcp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.16","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/tcp.c"]}],"references":["https://git.kernel.org/stable/c/461030dcd0e1222a80ee4085d60d9d80b4aeb0a9","https://git.kernel.org/stable/c/9720ce784f037e2cccc03997570af7f62b7f7299","https://git.kernel.org/stable/c/5d0820f27eefc7369848e074a1790c24a729e135","https://git.kernel.org/stable/c/5ba99da09a5b3eb9e58bc56a5062991ed1c99c56","https://git.kernel.org/stable/c/ab84d267b49b0179d088972d72081dd9da557996","https://git.kernel.org/stable/c/f983e104a31bbe7db4619f81535d82f11461651f","https://git.kernel.org/stable/c/4a4d57f94d5112b3bf1e373caee8cf1042c4c118","https://git.kernel.org/stable/c/f6bfa6c458288d72948af95391b205f3eb775721"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139228.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139228","state":"PUBLISHED","datePublished":"2026-11-30T13:32:48.477Z","dateUpdated":"2026-11-30T13:32:48.477Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.921Z"},"containers":{"cna":{"title":"ocfs2: initialize status waiters before publishing them","descriptions":[{"lang":"en","value":"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:"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"461030dcd0e1222a80ee4085d60d9d80b4aeb0a9","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"9720ce784f037e2cccc03997570af7f62b7f7299","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"5d0820f27eefc7369848e074a1790c24a729e135","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"5ba99da09a5b3eb9e58bc56a5062991ed1c99c56","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"ab84d267b49b0179d088972d72081dd9da557996","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"f983e104a31bbe7db4619f81535d82f11461651f","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"4a4d57f94d5112b3bf1e373caee8cf1042c4c118","versionType":"git"},{"version":"98211489d4147e41b11703e4245846d60b3acce4","status":"affected","lessThan":"f6bfa6c458288d72948af95391b205f3eb775721","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/tcp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.16","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/cluster/tcp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/461030dcd0e1222a80ee4085d60d9d80b4aeb0a9"},{"url":"https://git.kernel.org/stable/c/9720ce784f037e2cccc03997570af7f62b7f7299"},{"url":"https://git.kernel.org/stable/c/5d0820f27eefc7369848e074a1790c24a729e135"},{"url":"https://git.kernel.org/stable/c/5ba99da09a5b3eb9e58bc56a5062991ed1c99c56"},{"url":"https://git.kernel.org/stable/c/ab84d267b49b0179d088972d72081dd9da557996"},{"url":"https://git.kernel.org/stable/c/f983e104a31bbe7db4619f81535d82f11461651f"},{"url":"https://git.kernel.org/stable/c/4a4d57f94d5112b3bf1e373caee8cf1042c4c118"},{"url":"https://git.kernel.org/stable/c/f6bfa6c458288d72948af95391b205f3eb775721"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:48.477Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.16","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}