CVE-2026-90333: dm-integrity: replace forgeable discard filler with a keyed sector marker
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dm-integrity: replace forgeable discard filler with a keyed sector marker
The discard-block check in dm_integrity_rw_tag() treats a stored tag of all 0xf6 bytes (DISCARD_FILLER) as proof a block was discarded and skips HMAC verification. allow_discards is only accepted in dm-integrity's standalone mode. An attacker with raw write access to the backing device, but without the integrity key, can stamp any block with an all-0xf6 tag and have it served as authentic.
Add a new "allow_discards_keyed" target argument that marks discarded blocks with a keyed checksum of (salt || sector) instead, computed by integrity_discard_checksum().
The Linux kernel CVE team has assigned CVE-2026-90333 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 84597a44a9d86ac949900441cea7da0af0f2f473 and fixed in 6.18.52 with commit 5c58ea19a909ef6bed4f0f824e9cd7e30d7e4775 Issue introduced in 5.7 with commit 84597a44a9d86ac949900441cea7da0af0f2f473 and fixed in 7.2.6 with commit 6228722c27304e4682cddc1fede03898f87e4414 Issue introduced in 5.7 with commit 84597a44a9d86ac949900441cea7da0af0f2f473 and fixed in 7.3-rc1 with commit 68c5c42567bc462139128968ebbfadd0aefff519
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90333
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
Documentation/admin-guide/device-mapper/dm-ima.rst Documentation/admin-guide/device-mapper/dm-integrity.rst drivers/md/dm-integrity.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/5c58ea19a909ef6bed4f0f824e9cd7e30d7e4775 https://git.kernel.org/stable/c/6228722c27304e4682cddc1fede03898f87e4414 https://git.kernel.org/stable/c/68c5c42567bc462139128968ebbfadd0aefff519