{"id":"CVE-2026-99135","aliases":[],"title":"dm-integrity: fix infinite loop on discard with large tag size","titleSource":"Linux","descriptionSource":"Linux","products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"84597a44a9d86ac949900441cea7da0af0f2f473","status":"affected","lessThan":"fc512700f1413fed652dac22fa1c4e837210b9c0","versionType":"git"},{"version":"84597a44a9d86ac949900441cea7da0af0f2f473","status":"affected","lessThan":"251b44b424920df9204e88a81fb3f78fa48ddd99","versionType":"git"},{"version":"84597a44a9d86ac949900441cea7da0af0f2f473","status":"affected","lessThan":"18d80c77b4c7dd20699e81cedfbbff4e9d198f28","versionType":"git"}],"defaultStatus":"unaffected","source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99135"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"6.18.59","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.13","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99135"}],"remediation":[],"description":"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.","severity":"unknown","score":null,"published":"2026-10-28T10:34:47.902Z","modified":"2026-10-28T10:34:47.902Z","withdrawn":false,"knownExploited":false,"affected":[],"references":["https://git.kernel.org/stable/c/fc512700f1413fed652dac22fa1c4e837210b9c0","https://git.kernel.org/stable/c/251b44b424920df9204e88a81fb3f78fa48ddd99","https://git.kernel.org/stable/c/18d80c77b4c7dd20699e81cedfbbff4e9d198f28"],"sources":[{"name":"CVE","id":"CVE-2026-99135","modified":"2026-10-28T10:34:47.902Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99135"}],"assessments":[],"sourceAffected":[],"kev":{"status":"not-listed","checkedAt":"2026-10-29T05:40:32.739Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}