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

Published Dec 3, 2026
·
Updated

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 SBFLAGRECALCULATING if a keyed hash is used without "legacyrecalculate". 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.

dmintegrityresume() can still start the same recalculation in J or D mode: if SBFLAGDIRTYBITMAP is set and the bitmap is not clear, or log2blocksperbitmapbit does not match, it sets SBFLAGRECALCULATING and recalcsector = 0. The superblock is not authenticated unless fixhmac and journalmac 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 recalcwork on a NULL recalcwq when internalhash is not used.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 5c02406428d5

Event History

Dec 3, 2026
CVE Published
via MITRE·09:17 AM
Data Sourced
via MITRE·09:17 AM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using dm-integrity with a keyed hash are exposed if an attacker can write to the protected device without knowing the integrity key. The issue is relevant when resume or initial activation can trigger recalculation because of a dirty bitmap or a bitmap geometry mismatch.

2

What does an attacker need to exploit it?

The attacker needs offline or other write access to the device, sufficient to modify data and set the unauthenticated superblock state that causes recalculation. They do not need to know the keyed-hash key, because the vulnerable kernel can generate valid tags for their modified data.

3

Are default dm-integrity configurations affected?

The described attack depends on using a keyed hash and on the superblock not being authenticated. The superblock is authenticated only when both fix_hmac and journal_mac are used; configurations with those protections do not have an unauthenticated superblock flag that can be set offline as described.

4

What happens after the fix when recalculation is not permitted?

The kernel logs an error and preserves the existing tags instead of recalculating them. Modified blocks then fail integrity verification rather than receiving valid replacement tags.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203