CVE-2026-99135

dm-integrity: fix infinite loop on discard with large tag size

State
Published
Severity
Not scored
Published
Oct 28, 2026
Updated
Oct 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

dm-integrity: fix infinite loop on discard with large tag size

When integrity_metadata handles a discard, it fills a buffer with DISCARD_FILLER and writes it over the tags, max_blocks blocks at a time. If the kmalloc fails, the buffer is the on-stack array checksums_onstack and max_size is set to HASH_MAX_DIGESTSIZE. So if the tag size is larger than HASH_MAX_DIGESTSIZE, max_blocks is zero, bi_size is never decremented and the loop never terminates.

Fix this by using sizeof(checksums_onstack) as max_size. The array has MAX_TAG_SIZE bytes since commit b93b6643e9b5 ("dm integrity: fix a crash with unusually large tag size"), so max_blocks is at least 1.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before f41a224b3c9d66c7b59afc7cae02a8b214f3c684Affected
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before c66f5c6ccfa832d28b44a66c01e3468c246adac4Affected
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before 41a18e6c6e2c4a912494a035c17ecfe79c68b9e6Affected
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before bbc154a7da4e075aef720ef051aff6094400eb66Affected
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before c4cba6670fa199415689f67108e96b0ba469d767Affected
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before fc512700f1413fed652dac22fa1c4e837210b9c0Affected
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before 251b44b424920df9204e88a81fb3f78fa48ddd99Affected
  • 84597a44a9d86ac949900441cea7da0af0f2f473 to before 18d80c77b4c7dd20699e81cedfbbff4e9d198f28Affected
LinuxLinux
  • 5.7Affected
  • before 5.7Not affected
  • 5.10.273 through 5.10.*Not affected
  • 5.15.224 through 5.15.*Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.161 through 6.6.*Not affected
  • 6.12.115 through 6.12.*Not affected
  • 6.18.59 through 6.18.*Not affected
  • 7.2.13 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.