{"id":"CVE-2026-99135","published":"2026-10-28T10:34:47Z","modified":"2026-10-30T12:42:08Z","title":"dm-integrity: fix infinite loop on discard with large tag size","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-integrity: fix infinite loop on discard with large tag size\n\nWhen integrity_metadata handles a discard, it fills a buffer with\nDISCARD_FILLER and writes it over the tags, max_blocks blocks at a\ntime. If the kmalloc fails, the buffer is the on-stack array\nchecksums_onstack and max_size is set to HASH_MAX_DIGESTSIZE. So if the\ntag size is larger than HASH_MAX_DIGESTSIZE, max_blocks is zero, bi_size\nis never decremented and the loop never terminates.\n\nFix this by using sizeof(checksums_onstack) as max_size. The array has\nMAX_TAG_SIZE bytes since commit b93b6643e9b5 (\"dm integrity: fix a\ncrash with unusually large tag size\"), so max_blocks is at least 1.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0022,"percentile":0.12661,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f41a224b3c9d66c7b59afc7cae02a8b214f3c684","tags":[]},{"url":"https://git.kernel.org/stable/c/c66f5c6ccfa832d28b44a66c01e3468c246adac4","tags":[]},{"url":"https://git.kernel.org/stable/c/41a18e6c6e2c4a912494a035c17ecfe79c68b9e6","tags":[]},{"url":"https://git.kernel.org/stable/c/bbc154a7da4e075aef720ef051aff6094400eb66","tags":[]},{"url":"https://git.kernel.org/stable/c/c4cba6670fa199415689f67108e96b0ba469d767","tags":[]},{"url":"https://git.kernel.org/stable/c/fc512700f1413fed652dac22fa1c4e837210b9c0","tags":[]},{"url":"https://git.kernel.org/stable/c/251b44b424920df9204e88a81fb3f78fa48ddd99","tags":[]},{"url":"https://git.kernel.org/stable/c/18d80c77b4c7dd20699e81cedfbbff4e9d198f28","tags":[]}],"priority":{"score":2.5,"factors":[{"name":"EPSS percentile","points":2.53}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 84597a44a9d86ac949900441cea7da0af0f2f473, < f41a224b3c9d66c7b59afc7cae02a8b214f3c684",">= 84597a44a9d86ac949900441cea7da0af0f2f473, < c66f5c6ccfa832d28b44a66c01e3468c246adac4",">= 84597a44a9d86ac949900441cea7da0af0f2f473, < 41a18e6c6e2c4a912494a035c17ecfe79c68b9e6",">= 84597a44a9d86ac949900441cea7da0af0f2f473, < bbc154a7da4e075aef720ef051aff6094400eb66",">= 84597a44a9d86ac949900441cea7da0af0f2f473, < c4cba6670fa199415689f67108e96b0ba469d767",">= 84597a44a9d86ac949900441cea7da0af0f2f473, < fc512700f1413fed652dac22fa1c4e837210b9c0",">= 84597a44a9d86ac949900441cea7da0af0f2f473, < 251b44b424920df9204e88a81fb3f78fa48ddd99",">= 84597a44a9d86ac949900441cea7da0af0f2f473, < 18d80c77b4c7dd20699e81cedfbbff4e9d198f28"]},{"vendor":"Linux","product":"Linux","versions":["5.7"]}],"euvd":{"id":"EUVD-2026-111887","exploited":false,"provenance":"source"}}