{"id":"CVE-2026-99135","aliases":["CVE-2026-99135"],"related":[],"kind":"vulnerability","state":"published","title":"dm-integrity: fix infinite loop on discard with large tag size","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-28T10:34:47.902Z","modified":"2026-10-30T13:21:47.757Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"f41a224b3c9d66c7b59afc7cae02a8b214f3c684","status":"affected"},{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"c66f5c6ccfa832d28b44a66c01e3468c246adac4","status":"affected"},{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"41a18e6c6e2c4a912494a035c17ecfe79c68b9e6","status":"affected"},{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"bbc154a7da4e075aef720ef051aff6094400eb66","status":"affected"},{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"c4cba6670fa199415689f67108e96b0ba469d767","status":"affected"},{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"fc512700f1413fed652dac22fa1c4e837210b9c0","status":"affected"},{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"251b44b424920df9204e88a81fb3f78fa48ddd99","status":"affected"},{"type":"git","introduced":"84597a44a9d86ac949900441cea7da0af0f2f473","fixed":"18d80c77b4c7dd20699e81cedfbbff4e9d198f28","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.161","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.115","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.59","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.13","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f41a224b3c9d66c7b59afc7cae02a8b214f3c684","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c66f5c6ccfa832d28b44a66c01e3468c246adac4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41a18e6c6e2c4a912494a035c17ecfe79c68b9e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bbc154a7da4e075aef720ef051aff6094400eb66","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4cba6670fa199415689f67108e96b0ba469d767","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc512700f1413fed652dac22fa1c4e837210b9c0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/251b44b424920df9204e88a81fb3f78fa48ddd99","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/18d80c77b4c7dd20699e81cedfbbff4e9d198f28","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99135","url":"https://www.cve.org/CVERecord?id=CVE-2026-99135","licence":"CVE Terms of Use","modified":"2026-10-30T12:42:08.647Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99135","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99135","licence":"Public domain","modified":"2026-10-30T13:21:47.757Z"}],"updatedAt":"2026-11-25T22:59:47.574Z","epss":{"score":0.0022,"percentile":0.13431,"date":"2026-12-01T12:00:22.000Z"}}