| { |
| "containers": { |
| "cna": { |
| "providerMetadata": { |
| "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038" |
| }, |
| "descriptions": [ |
| { |
| "lang": "en", |
| "value": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix race in buffer_head read fault injection\n\nWhen I enabled ext4 debug for fault injection testing, I encountered the\nfollowing warning:\n\n EXT4-fs error (device sda): ext4_read_inode_bitmap:201: comm fsstress:\n Cannot read inode bitmap - block_group = 8, inode_bitmap = 1051\n WARNING: CPU: 0 PID: 511 at fs/buffer.c:1181 mark_buffer_dirty+0x1b3/0x1d0\n\nThe root cause of the issue lies in the improper implementation of ext4's\nbuffer_head read fault injection. The actual completion of buffer_head\nread and the buffer_head fault injection are not atomic, which can lead\nto the uptodate flag being cleared on normally used buffer_heads in race\nconditions.\n\n[CPU0] [CPU1] [CPU2]\next4_read_inode_bitmap\n ext4_read_bh()\n <bh read complete>\n ext4_read_inode_bitmap\n if (buffer_uptodate(bh))\n return bh\n jbd2_journal_commit_transaction\n __jbd2_journal_refile_buffer\n __jbd2_journal_unfile_buffer\n __jbd2_journal_temp_unlink_buffer\n ext4_simulate_fail_bh()\n clear_buffer_uptodate\n mark_buffer_dirty\n <report warning>\n WARN_ON_ONCE(!buffer_uptodate(bh))\n\nThe best approach would be to perform fault injection in the IO completion\ncallback function, rather than after IO completion. However, the IO\ncompletion callback function cannot get the fault injection code in sb.\n\nFix it by passing the result of fault injection into the bh read function,\nwe simulate faults within the bh read function itself. This requires adding\nan extra parameter to the bh read functions that need fault injection." |
| } |
| ], |
| "affected": [ |
| { |
| "product": "Linux", |
| "vendor": "Linux", |
| "defaultStatus": "unaffected", |
| "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", |
| "programFiles": [ |
| "fs/ext4/balloc.c", |
| "fs/ext4/ext4.h", |
| "fs/ext4/extents.c", |
| "fs/ext4/ialloc.c", |
| "fs/ext4/indirect.c", |
| "fs/ext4/inode.c", |
| "fs/ext4/mmp.c", |
| "fs/ext4/move_extent.c", |
| "fs/ext4/resize.c", |
| "fs/ext4/super.c" |
| ], |
| "versions": [ |
| { |
| "version": "46f870d690fecc792a66730dcbbf0aa109f5f9ab", |
| "lessThan": "77035e4d27e15f87ea55929c8bb8fb1970129e2f", |
| "status": "affected", |
| "versionType": "git" |
| }, |
| { |
| "version": "46f870d690fecc792a66730dcbbf0aa109f5f9ab", |
| "lessThan": "25a5acf88fed59e060405bbb48098f4a3a2c2adc", |
| "status": "affected", |
| "versionType": "git" |
| }, |
| { |
| "version": "46f870d690fecc792a66730dcbbf0aa109f5f9ab", |
| "lessThan": "61832ee7fa2fbd569d129379e795038abfb0d128", |
| "status": "affected", |
| "versionType": "git" |
| }, |
| { |
| "version": "46f870d690fecc792a66730dcbbf0aa109f5f9ab", |
| "lessThan": "2f3d93e210b9c2866c8b3662adae427d5bf511ec", |
| "status": "affected", |
| "versionType": "git" |
| } |
| ] |
| }, |
| { |
| "product": "Linux", |
| "vendor": "Linux", |
| "defaultStatus": "affected", |
| "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", |
| "programFiles": [ |
| "fs/ext4/balloc.c", |
| "fs/ext4/ext4.h", |
| "fs/ext4/extents.c", |
| "fs/ext4/ialloc.c", |
| "fs/ext4/indirect.c", |
| "fs/ext4/inode.c", |
| "fs/ext4/mmp.c", |
| "fs/ext4/move_extent.c", |
| "fs/ext4/resize.c", |
| "fs/ext4/super.c" |
| ], |
| "versions": [ |
| { |
| "version": "5.6", |
| "status": "affected" |
| }, |
| { |
| "version": "0", |
| "lessThan": "5.6", |
| "status": "unaffected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "6.6.64", |
| "lessThanOrEqual": "6.6.*", |
| "status": "unaffected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "6.11.11", |
| "lessThanOrEqual": "6.11.*", |
| "status": "unaffected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "6.12.2", |
| "lessThanOrEqual": "6.12.*", |
| "status": "unaffected", |
| "versionType": "semver" |
| }, |
| { |
| "version": "6.13-rc1", |
| "lessThanOrEqual": "*", |
| "status": "unaffected", |
| "versionType": "original_commit_for_fix" |
| } |
| ] |
| } |
| ], |
| "references": [ |
| { |
| "url": "https://git.kernel.org/stable/c/77035e4d27e15f87ea55929c8bb8fb1970129e2f" |
| }, |
| { |
| "url": "https://git.kernel.org/stable/c/25a5acf88fed59e060405bbb48098f4a3a2c2adc" |
| }, |
| { |
| "url": "https://git.kernel.org/stable/c/61832ee7fa2fbd569d129379e795038abfb0d128" |
| }, |
| { |
| "url": "https://git.kernel.org/stable/c/2f3d93e210b9c2866c8b3662adae427d5bf511ec" |
| } |
| ], |
| "title": "ext4: fix race in buffer_head read fault injection", |
| "x_generator": { |
| "engine": "bippy-5f407fcff5a0" |
| } |
| } |
| }, |
| "cveMetadata": { |
| "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038", |
| "cveID": "CVE-2024-56686", |
| "requesterUserId": "gregkh@kernel.org", |
| "serial": "1", |
| "state": "PUBLISHED" |
| }, |
| "dataType": "CVE_RECORD", |
| "dataVersion": "5.0" |
| } |