NetSight
ohne Wertung

CVE-2026-99135

In the Linux kernel, the following vulnerability has been resolved: dm-integrity: fix infinite loop on discard with large tag size When integrity_metadata hand…

Auswirkung

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.

Betroffene Produkte · Linux

ProduktBetroffene Versionen
Linux
ab 84597a44a9d86ac949900441cea7da0af0f2f473 vor fc512700f1413fed652dac22fa1c4e837210b9c0
ab 84597a44a9d86ac949900441cea7da0af0f2f473 vor c66f5c6ccfa832d28b44a66c01e3468c246adac4
ab 84597a44a9d86ac949900441cea7da0af0f2f473 vor f41a224b3c9d66c7b59afc7cae02a8b214f3c684
Versionen patch: 7.3, patch: 6.1.191, patch: 6.6.161

Referenzen