{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138891","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.901Z","datePublished":"2026-11-30T13:25:57.043Z","dateUpdated":"2026-12-01T05:40:33.234Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:33.234Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: exit recovery thread on mount error path\n\nWhen a mount fails after the cluster connection has been established, e.g.\nin ocfs2_mount_volume(), ocfs2_fill_super() unwinds via\nout_debugfs/out_super and frees the osb without disabling recovery.\n\nA node failure event can concurrently launch the recovery thread, which\nblocks in __ocfs2_wait_on_mount() waiting for the volume state to become\nVOLUME_MOUNTED or VOLUME_DISABLED.  As the mount error path neither sets\nVOLUME_DISABLED nor wakes osb_mount_event, the thread can never make\nprogress: the kthread leaks and stays blocked on the wait queue embedded\nin the freed osb, which may then be accessed as freed memory.\n\nFix it by setting VOLUME_DISABLED and waking osb_mount_event on this path\nso the thread bails out, and replace the plain kfree(osb->recovery_map)\nwith ocfs2_recovery_exit(), which waits for a running recovery thread to\nexit before the recovery map is freed."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The defect is the out_debugfs/out_super unwind in ocfs2_fill_super(), reached only through mount(2) when ocfs2_mount_volume() fails after ocfs2_mark_dead_nodes() (or the o2dlm eviction callback ocfs2_do_node_down()) has started __ocfs2_recovery_thread(). The input that drives it is an on-disk image or a local failure, and no remote protocol message carries it.\nAC:H - A crafted image reliably leaves the kthread stuck in __ocfs2_wait_on_mount() on the freed osb. Corruption needs the kthread to run after kfree(osb), when it reads osb->recovery_map/osb->sb and queues on osb_mount_event in freed memory. The unwind sleeps in kthread_stop() and destroy_workqueue(), and the attacker cannot control whether the scheduler delays the kthread past it.\nPR:N - The attacker only writes the image: a local-mount ocfs2 volume whose slot map lists a foreign node in slot 1 and has no journal:0002 inode. ocfs2_read_journal_inode() then fails in the same ocfs2_mark_dead_nodes() loop after the kthread starts. ocfs2_fs_type lacks FS_USERNS_MOUNT, so the mount privilege belongs to the victim (UI:R), not the attacker.\nUI:R - Someone with init-namespace CAP_SYS_ADMIN must mount the attacker-supplied volume. That mount runs ocfs2_check_volume() into the failing ocfs2_mark_dead_nodes() step and then into the out_super path that kfree()s osb under the blocked kthread.\nS:U - The stranded ocfs2rec kthread and the freed struct ocfs2_super are in the same kernel. No VM, IOMMU or sandbox boundary is crossed.\nC:H - A late-running __ocfs2_recovery_thread() reads osb->recovery_map, osb->sb and osb->vol_state from the freed, reclaimable ocfs2_super and then follows pointers taken from it. That use-after-free can be shaped into kernel memory disclosure.\nI:H - On that path prepare_to_wait_event() list_adds an on-stack entry through the freed osb_mount_event head. If the reclaimed vol_state reads VOLUME_DISABLED, the bail path kfree()s osb->replay_map and calls wake_up(&osb->recovery_event) on attacker-controlled memory. That gives arbitrary-free and wait-entry function-pointer primitives.\nA:H - Even when the race is lost, the pre-fix out_super never sets VOLUME_DISABLED or wakes osb_mount_event. Each failed mount leaks an unkillable ocfs2rec kthread stuck in D state on freed memory, which produces hung-task reports and a panic under hung_task_panic. Winning the race oopses on the freed osb."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/super.c"],"versions":[{"version":"45dabd8fe8a825e325eda57c2243af8c6549babd","lessThan":"0d34cbc2fa9b38f569b4dd4ba843153128a52cc8","status":"affected","versionType":"git"},{"version":"b613d8dcdff322a28783aea971b005e025553b5a","lessThan":"ac1aa784ef3e40fa3a5b8afbe41656dcb87e57ea","status":"affected","versionType":"git"},{"version":"f1e75d128b46e3b066e7b2e7cfca10491109d44d","lessThan":"cee1ff11dee837a10545ec318a049b7b3f63bfeb","status":"affected","versionType":"git"},{"version":"f1e75d128b46e3b066e7b2e7cfca10491109d44d","lessThan":"302d6df5348ddc144c6316add71cbb00faecd8f4","status":"affected","versionType":"git"},{"version":"f1e75d128b46e3b066e7b2e7cfca10491109d44d","lessThan":"70d85322ef7ea9151edac53b8d1c9b8d55ebaef4","status":"affected","versionType":"git"},{"version":"f1e75d128b46e3b066e7b2e7cfca10491109d44d","lessThan":"4db84320615453cf205febbc59a715ace31f9782","status":"affected","versionType":"git"},{"version":"f1e75d128b46e3b066e7b2e7cfca10491109d44d","lessThan":"0cd83f04e3404be310a3b90b4a992de24c5df7f4","status":"affected","versionType":"git"},{"version":"f1e75d128b46e3b066e7b2e7cfca10491109d44d","lessThan":"6163a859649e9432e9c79c541f36dbf3bba9172f","status":"affected","versionType":"git"},{"version":"a4d3062f0ac7f458142e87451bc03a0f7b128483","status":"affected","versionType":"git"},{"version":"5.10.163","lessThan":"5.10.275","status":"affected","versionType":"semver"},{"version":"5.15.107","lessThan":"5.15.226","status":"affected","versionType":"semver"},{"version":"5.4.229","lessThan":"5.5","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/super.c"],"versions":[{"version":"5.19","status":"affected"},{"version":"0","lessThan":"5.19","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.163","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.107","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.229"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/0d34cbc2fa9b38f569b4dd4ba843153128a52cc8"},{"url":"https://git.kernel.org/stable/c/ac1aa784ef3e40fa3a5b8afbe41656dcb87e57ea"},{"url":"https://git.kernel.org/stable/c/cee1ff11dee837a10545ec318a049b7b3f63bfeb"},{"url":"https://git.kernel.org/stable/c/302d6df5348ddc144c6316add71cbb00faecd8f4"},{"url":"https://git.kernel.org/stable/c/70d85322ef7ea9151edac53b8d1c9b8d55ebaef4"},{"url":"https://git.kernel.org/stable/c/4db84320615453cf205febbc59a715ace31f9782"},{"url":"https://git.kernel.org/stable/c/0cd83f04e3404be310a3b90b4a992de24c5df7f4"},{"url":"https://git.kernel.org/stable/c/6163a859649e9432e9c79c541f36dbf3bba9172f"}],"title":"ocfs2: exit recovery thread on mount error path","x_generator":{"engine":"bippy-1.2.0"}}}}