AZL-117932: CVE-2026-143013 affecting package kernel 6.6.161.1-1
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 5c02406428d5
Event History
Frequently Asked Questions
What access would an attacker need to exploit this issue?
The attacker needs the ability to write to the underlying device while not knowing the dm-integrity keyed-hash key. They can alter data and manipulate unauthenticated superblock state so that recalculation produces valid tags for the modified data.
Which dm-integrity configurations are most relevant?
The issue concerns dm-integrity volumes using a keyed hash/HMAC where recalculation is not permitted without legacy_recalculate. Risk is heightened when the superblock is not authenticated, which occurs unless both fix_hmac and journal_mac are used.
When can the unsafe recalculation be triggered?
It can be started during dm-integrity resume, including the first activation, when a dirty bitmap is set and nonempty or when log2_blocks_per_bitmap_bit does not match. In J or D mode, these conditions can set the recalculating state and restart from sector zero.
What behavior should occur after the fix when recalculation is disallowed?
The kernel logs an error and retains existing tags rather than recalculating them. Blocks modified without valid tags then fail verification.