{"id":"CVE-2025-68771","summary":"ocfs2: fix kernel BUG in ocfs2_find_victim_chain","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix kernel BUG in ocfs2_find_victim_chain\n\nsyzbot reported a kernel BUG in ocfs2_find_victim_chain() because the\n`cl_next_free_rec` field of the allocation chain list (next free slot in\nthe chain list) is 0, triggring the BUG_ON(!cl-\u003ecl_next_free_rec)\ncondition in ocfs2_find_victim_chain() and panicking the kernel.\n\nTo fix this, an if condition is introduced in ocfs2_claim_suballoc_bits(),\njust before calling ocfs2_find_victim_chain(), the code block in it being\nexecuted when either of the following conditions is true:\n\n1. `cl_next_free_rec` is equal to 0, indicating that there are no free\nchains in the allocation chain list\n2. `cl_next_free_rec` is greater than `cl_count` (the total number of\nchains in the allocation chain list)\n\nEither of them being true is indicative of the fact that there are no\nchains left for usage.\n\nThis is addressed using ocfs2_error(), which prints\nthe error log for debugging purposes, rather than panicking the kernel.","modified":"2026-04-16T04:35:49.372694558Z","published":"2026-01-13T15:28:49.272Z","related":["SUSE-SU-2026:0411-1","SUSE-SU-2026:0447-1","SUSE-SU-2026:0472-1","SUSE-SU-2026:0473-1","SUSE-SU-2026:0474-1","SUSE-SU-2026:0496-1","SUSE-SU-2026:0587-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20555-1","SUSE-SU-2026:20599-1","SUSE-SU-2026:20615-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2026:20287-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68771.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/039bef30e320827bac8990c9f29d2a68cd8adb5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1f77e5cd563e6387fdf3bb714fcda36cd88ac5e7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7acc0390e0dd7474c4451d05465a677d55ad4268"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96f1b074c98c20f55a3b23d2ab44d9fb0f619869"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b08a33d5f80efe6979a6e8f905c1a898910c21dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0fd1f732ea8063cecd07a3879b7d815c7ee71ed"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e24aedae71652d4119049f1fbef6532ccbe3966d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68771.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68771"},{"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":"ccd979bdbce9fba8412beb3f1de68a9d0171b12c"},{"fixed":"1f77e5cd563e6387fdf3bb714fcda36cd88ac5e7"},{"fixed":"d0fd1f732ea8063cecd07a3879b7d815c7ee71ed"},{"fixed":"b08a33d5f80efe6979a6e8f905c1a898910c21dd"},{"fixed":"96f1b074c98c20f55a3b23d2ab44d9fb0f619869"},{"fixed":"e24aedae71652d4119049f1fbef6532ccbe3966d"},{"fixed":"7acc0390e0dd7474c4451d05465a677d55ad4268"},{"fixed":"039bef30e320827bac8990c9f29d2a68cd8adb5f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68771.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.16"},{"fixed":"5.10.248"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.198"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68771.json"}}],"schema_version":"1.7.5"}