{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143013","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.343Z","datePublished":"2026-12-03T09:17:47.911Z","dateUpdated":"2026-12-04T03:27:14.932Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:27:14.932Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-integrity: don't recalculate with HMAC because of a dirty bitmap\n\nCommit 5c02406428d5 (\"dm integrity: conditionally disable \"recalculate\"\nfeature\") refuses a superblock with SB_FLAG_RECALCULATING if a keyed\nhash is used without \"legacy_recalculate\". Otherwise someone who can\nwrite to the device, but does not know the key, could modify data and\nhave the kernel compute valid tags for it.\n\ndm_integrity_resume() can still start the same recalculation in J or D\nmode: if SB_FLAG_DIRTY_BITMAP is set and the bitmap is not clear, or\nlog2_blocks_per_bitmap_bit does not match, it sets\nSB_FLAG_RECALCULATING and recalc_sector = 0. The superblock is not\nauthenticated unless fix_hmac and journal_mac are both used, so the\nflag can be set offline. Resume also runs on the first activation.\n\nApply the constructor's policy there. If recalculation is not allowed,\nlog an error and keep the existing tags, so modified blocks fail\nverification. This also avoids queueing recalc_work on a NULL\nrecalc_wq when internal_hash is not used."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - dm_integrity_resume() reads the attacker-written superblock via sync_rw_sb() and the journal area via rw_journal_sectors() when dm_table_resume_targets() calls it from dm_resume() on DM_DEV_SUSPEND. SB_FLAG_DIRTY_BITMAP is on-disk metadata, not a field of a network, Bluetooth, NFC, or USB message.\nAC:L - On a J or D target, setting SB_FLAG_DIRTY_BITMAP and a superblock log2_blocks_per_bitmap_bit other than ic->log2_blocks_per_bitmap_bit makes dm_integrity_resume() set SB_FLAG_RECALCULATING and recalc_sector to 0 on every resume. sync_rw_sb() verifies the superblock only when journal_mac and SB_FLAG_FIXED_HMAC are both set, which the keyed internal_hash setup does not require.\nPR:N - The forged SB_FLAG_DIRTY_BITMAP is planted on the backing device with no host credential. dm_integrity_resume() has no uid check; capable(CAP_SYS_ADMIN) in ctl_ioctl() applies to the administrator whose resume is the required user interaction.\nUI:R - dm_integrity_resume() runs only from dm_table_resume_targets() after an explicit device-mapper resume. Writing the backing device does not call that path; an administrator must load and resume the integrity target.\nS:U - The tag rewrite in integrity_recalc() and the NULL-wq oops in dm_integrity_resume() both stay in the kernel that owns this dm-integrity table. They do not cross a VM or IOMMU boundary.\nC:N - integrity_recalc() stores tags with dm_integrity_rw_tag() and does not copy the HMAC key or other kernel memory to userspace. With no internal_hash, __queue_work() faults on NULL ic->recalc_wq before any disclosure.\nI:H - dm_integrity_ctr() rejects SB_FLAG_RECALCULATING when dm_integrity_disable_recalculate() is true, but dm_integrity_resume() sets that flag from a dirty bitmap and integrity_recalc() rewrites every tag with integrity_sector_checksum() using the keyed internal_hash, so modified blocks pass verification.\nA:H - Without internal_hash, dm_integrity_ctr() does not allocate ic->recalc_wq, yet dm_integrity_resume() sets SB_FLAG_RECALCULATING and calls queue_work(ic->recalc_wq, &ic->recalc_work). __queue_work() then loads wq->flags and oopses."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-integrity.c"],"versions":[{"version":"5c02406428d5219c367c5f53457698c58bc5f917","lessThan":"c6472608f26f192d0843e75a3fa1cb2f308bfc49","status":"affected","versionType":"git"},{"version":"5c02406428d5219c367c5f53457698c58bc5f917","lessThan":"10366fea7e24e405874f68f3d9c3b72d4fb888fa","status":"affected","versionType":"git"},{"version":"5c02406428d5219c367c5f53457698c58bc5f917","lessThan":"81e5a4f56e2219958579d220bd387a563e7bf7a4","status":"affected","versionType":"git"},{"version":"5c02406428d5219c367c5f53457698c58bc5f917","lessThan":"765077a40b93cb7f417a5fb7d393559ac9533590","status":"affected","versionType":"git"},{"version":"5c02406428d5219c367c5f53457698c58bc5f917","lessThan":"875a7161fe1574205293c36f7bbd0815023e48a1","status":"affected","versionType":"git"},{"version":"26b30d36cb5cff5e075114d05e5309043514770c","status":"affected","versionType":"git"},{"version":"2d8848edc96b43d1dd8823a533e702953048b33e","status":"affected","versionType":"git"},{"version":"9cb683c3c471f99018891f7551390217de4b0a8f","status":"affected","versionType":"git"},{"version":"4.19.172","lessThan":"4.20","status":"affected","versionType":"semver"},{"version":"5.4.94","lessThan":"5.5","status":"affected","versionType":"semver"},{"version":"5.10.11","lessThan":"5.11","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-integrity.c"],"versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","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.11","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.172"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.94"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.11"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/c6472608f26f192d0843e75a3fa1cb2f308bfc49"},{"url":"https://git.kernel.org/stable/c/10366fea7e24e405874f68f3d9c3b72d4fb888fa"},{"url":"https://git.kernel.org/stable/c/81e5a4f56e2219958579d220bd387a563e7bf7a4"},{"url":"https://git.kernel.org/stable/c/765077a40b93cb7f417a5fb7d393559ac9533590"},{"url":"https://git.kernel.org/stable/c/875a7161fe1574205293c36f7bbd0815023e48a1"}],"title":"dm-integrity: don't recalculate with HMAC because of a dirty bitmap","x_generator":{"engine":"bippy-1.2.0"}}}}