Acknowledged
Created: Jun 18, 2025
Updated: Sep 4, 2026
Resolved Date: Jun 19, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel
In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]jbd2: fix assertion 'jh->b_frozen_data == NULL' failure when journal aborted[EOL][EOL]Following process will fail assertion 'jh->b_frozen_data == NULL' in[EOL]jbd2_journal_dirty_metadata():[EOL][EOL] jbd2_journal_commit_transaction[EOL]unlink(dir/a)[EOL] jh->b_transaction = trans1[EOL] jh->b_jlist = BJ_Metadata[EOL] journal->j_running_transaction = NULL[EOL] trans1->t_state = T_COMMIT[EOL]unlink(dir/b)[EOL] handle->h_trans = trans2[EOL] do_get_write_access[EOL] jh->b_modified = 0[EOL] jh->b_frozen_data = frozen_buffer[EOL] jh->b_next_transaction = trans2[EOL] jbd2_journal_dirty_metadata[EOL] is_handle_aborted[EOL] is_journal_aborted // return false[EOL][EOL] --> jbd2 abort <--[EOL][EOL] while (commit_transaction->t_buffers)[EOL] if (is_journal_aborted)[EOL] jbd2_journal_refile_buffer[EOL] __jbd2_journal_refile_buffer[EOL] WRITE_ONCE(jh->b_transaction,[EOL]\t\t\t\t\t\tjh->b_next_transaction)[EOL] WRITE_ONCE(jh->b_next_transaction, NULL)[EOL] __jbd2_journal_file_buffer(jh, BJ_Reserved)[EOL] J_ASSERT_JH(jh, jh->b_frozen_data == NULL) // assertion failure ![EOL][EOL]The reproducer (See detail in [Link]) reports:[EOL] ------------[ cut here ]------------[EOL] kernel BUG at fs/jbd2/transaction.c:1629![EOL] invalid opcode: 0000 [#1] PREEMPT SMP[EOL] CPU: 2 PID: 584 Comm: unlink Tainted: G W[EOL] 5.19.0-rc6-00115-g4a57a8400075-dirty #697[EOL] RIP: 0010:jbd2_journal_dirty_metadata+0x3c5/0x470[EOL] RSP: 0018:ffffc90000be7ce0 EFLAGS: 00010202[EOL] Call Trace:[EOL] <TASK>[EOL] __ext4_handle_dirty_metadata+0xa0/0x290[EOL] ext4_handle_dirty_dirblock+0x10c/0x1d0[EOL] ext4_delete_entry+0x104/0x200[EOL] __ext4_unlink+0x22b/0x360[EOL] ext4_unlink+0x275/0x390[EOL] vfs_unlink+0x20b/0x4c0[EOL] do_unlinkat+0x42f/0x4c0[EOL] __x64_sys_unlink+0x37/0x50[EOL] do_syscall_64+0x35/0x80[EOL][EOL]After journal aborting, __jbd2_journal_refile_buffer() is executed with[EOL]holding @jh->b_state_lock, we can fix it by moving 'is_handle_aborted()'[EOL]into the area protected by @jh->b_state_lock.
CREATE(Triage):(User=lchen-cn) [CVE-2022-50126 (https://nvd.nist.gov/vuln/detail/CVE-2022-50126)