{"id":"CVE-2023-53526","summary":"jbd2: check 'jh-\u003eb_transaction' before removing it from checkpoint","details":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: check 'jh-\u003eb_transaction' before removing it from checkpoint\n\nFollowing process will corrupt ext4 image:\nStep 1:\njbd2_journal_commit_transaction\n __jbd2_journal_insert_checkpoint(jh, commit_transaction)\n // Put jh into trans1-\u003et_checkpoint_list\n journal-\u003ej_checkpoint_transactions = commit_transaction\n // Put trans1 into journal-\u003ej_checkpoint_transactions\n\nStep 2:\ndo_get_write_access\n test_clear_buffer_dirty(bh) // clear buffer dirty，set jbd dirty\n __jbd2_journal_file_buffer(jh, transaction) // jh belongs to trans2\n\nStep 3:\ndrop_cache\n journal_shrink_one_cp_list\n  jbd2_journal_try_remove_checkpoint\n   if (!trylock_buffer(bh))  // lock bh, true\n   if (buffer_dirty(bh))     // buffer is not dirty\n   __jbd2_journal_remove_checkpoint(jh)\n   // remove jh from trans1-\u003et_checkpoint_list\n\nStep 4:\njbd2_log_do_checkpoint\n trans1 = journal-\u003ej_checkpoint_transactions\n // jh is not in trans1-\u003et_checkpoint_list\n jbd2_cleanup_journal_tail(journal)  // trans1 is done\n\nStep 5: Power cut, trans2 is not committed, jh is lost in next mounting.\n\nFix it by checking 'jh-\u003eb_transaction' before remove it from checkpoint.","modified":"2026-11-17T07:02:51.512204905Z","published":"2025-10-01T11:46:11.862Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03614-1","SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3751-1","SUSE-SU-2025:3761-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4141-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53526.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2298f2589903a8bc03061b54b31fd97985ab6529"},{"type":"WEB","url":"https://git.kernel.org/stable/c/590a809ff743e7bd890ba5fb36bc38e20a36de53"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dbafe636db415299e54d9dfefc1003bda9e71c9d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef5fea70e5915afd64182d155e72bfb4f275e1fc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53526.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53526"},{"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":"b832174b7f89df3ebab02f5b485d00127a0e1a6e"},{"fixed":"ef5fea70e5915afd64182d155e72bfb4f275e1fc"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e5c768d809a85e9efd0274b2efe69d4970cc0014"},{"fixed":"dbafe636db415299e54d9dfefc1003bda9e71c9d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"46f881b5b1758dc4a35fba4a643c10717d0cf427"},{"fixed":"2298f2589903a8bc03061b54b31fd97985ab6529"},{"fixed":"590a809ff743e7bd890ba5fb36bc38e20a36de53"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"019b59aeb2af6b47d5c8e69c5dc1d731c8df0354"}]}],"versions":["v5.15.131","v5.15.130","v5.15.129","v6.1.53","v6.1.52","v6.1.51","v6.1.50","v6.4.16","v6.4.15","v6.4.14","v6.4.13"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53526.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.129"},{"fixed":"5.15.132"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.50"},{"fixed":"6.1.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.4.13"},{"fixed":"6.5"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.5.0"},{"fixed":"6.5.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53526.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}