CVE-2026-99098: dm-integrity: fix buffer overflow in inline mode with large tag size
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dm-integrity: fix buffer overflow in inline mode with large tag size
In inline mode, dm_integrity_check and dm_integrity_inline_recheck compute the checksum of each block into an on-stack buffer of HASH_MAX_DIGESTSIZE bytes. integrity_sector_checksum pads its result with zeroes up to the tag size, so if the tag size is larger than HASH_MAX_DIGESTSIZE, the padding runs past the end of the buffer. With CONFIG_STACKPROTECTOR the kernel panics in dm_integrity_check on the first read.
Enlarge both buffers to hold MAX_TAG_SIZE bytes, as commit b93b6643e9b5 ("dm integrity: fix a crash with unusually large tag size") did for integrity_metadata.
Note that this is not a security bug because the buffer overflow can only be triggered by root.
The Linux kernel CVE team has assigned CVE-2026-99098 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit fb0987682c629c1d2c476f35f6fde405a5e304a4 and fixed in 6.12.114 with commit 3c7aad85aeb9e28386672e3a009aa2e61f751b86 Issue introduced in 6.11 with commit fb0987682c629c1d2c476f35f6fde405a5e304a4 and fixed in 6.18.57 with commit 4f0ee735dc68e3e6c4dd9a666d7f7047163c4165 Issue introduced in 6.11 with commit fb0987682c629c1d2c476f35f6fde405a5e304a4 and fixed in 7.2.11 with commit f49cd7820cd0a96f20e1aa2708adb002124e38a7 Issue introduced in 6.11 with commit fb0987682c629c1d2c476f35f6fde405a5e304a4 and fixed in 7.3 with commit 764b683a6180fd72c931c13fea98d383506a3475
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-99098
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:
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/3c7aad85aeb9e28386672e3a009aa2e61f751b86 https://git.kernel.org/stable/c/4f0ee735dc68e3e6c4dd9a666d7f7047163c4165 https://git.kernel.org/stable/c/f49cd7820cd0a96f20e1aa2708adb002124e38a7 https://git.kernel.org/stable/c/764b683a6180fd72c931c13fea98d383506a3475