Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143013

dm-integrity: don't recalculate with HMAC because of a dirty bitmap

Description

In the Linux kernel, the following vulnerability has been resolved: dm-integrity: don't recalculate with HMAC because of a dirty bitmap Commit 5c02406428d5 ("dm integrity: conditionally disable "recalculate" feature") refuses a superblock with SB_FLAG_RECALCULATING if a keyed hash is used without "legacy_recalculate". Otherwise someone who can write to the device, but does not know the key, could modify data and have the kernel compute valid tags for it. dm_integrity_resume() can still start the same recalculation in J or D mode: if SB_FLAG_DIRTY_BITMAP is set and the bitmap is not clear, or log2_blocks_per_bitmap_bit does not match, it sets SB_FLAG_RECALCULATING and recalc_sector = 0. The superblock is not authenticated unless fix_hmac and journal_mac are both used, so the flag can be set offline. Resume also runs on the first activation. Apply the constructor's policy there. If recalculation is not allowed, log an error and keep the existing tags, so modified blocks fail verification. This also avoids queueing recalc_work on a NULL recalc_wq when internal_hash is not used.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 5c02406428d5219c367c5f53457698c58bc5f917 to < c6472608f26f192d0843e75a3fa1cb2f308bfc49affected
  • 5c02406428d5219c367c5f53457698c58bc5f917 to < 10366fea7e24e405874f68f3d9c3b72d4fb888faaffected
  • 5c02406428d5219c367c5f53457698c58bc5f917 to < 81e5a4f56e2219958579d220bd387a563e7bf7a4affected
  • 5c02406428d5219c367c5f53457698c58bc5f917 to < 765077a40b93cb7f417a5fb7d393559ac9533590affected
  • 5c02406428d5219c367c5f53457698c58bc5f917 to < 875a7161fe1574205293c36f7bbd0815023e48a1affected
  • 26b30d36cb5cff5e075114d05e5309043514770caffected
  • 2d8848edc96b43d1dd8823a533e702953048b33eaffected
  • 9cb683c3c471f99018891f7551390217de4b0a8faffected
  • 4.19.172 to < 4.20affected
  • 5.4.94 to < 5.5affected
  • 5.10.11 to < 5.11affected

Linux Linux

Default version status: affected

  • 5.11affected
  • 0 to < 5.11unaffected
  • 5.15.227 to ≤ 5.15.*unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References