dm-integrity: fix infinite loop on discard with large tag size (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
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.
References
- https://git.kernel.org/stable/c/f41a224b3c9d66c7b59afc7cae02a8b214f3c684
- https://git.kernel.org/stable/c/c66f5c6ccfa832d28b44a66c01e3468c246adac4
- https://git.kernel.org/stable/c/41a18e6c6e2c4a912494a035c17ecfe79c68b9e6
- https://git.kernel.org/stable/c/bbc154a7da4e075aef720ef051aff6094400eb66
- https://git.kernel.org/stable/c/c4cba6670fa199415689f67108e96b0ba469d767
- https://git.kernel.org/stable/c/fc512700f1413fed652dac22fa1c4e837210b9c0
- https://git.kernel.org/stable/c/251b44b424920df9204e88a81fb3f78fa48ddd99
- https://git.kernel.org/stable/c/18d80c77b4c7dd20699e81cedfbbff4e9d198f28
European references
- ENISA EUVD · EUVD-2026-111887
- GCVE · GCVE-0-2026-99135
CERT-FR advisories
- CERTFR-2026-AVI-1596 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1595 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1473 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < f41a224b3c9d66c7b59afc7cae02a8b214f3c684 affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < c66f5c6ccfa832d28b44a66c01e3468c246adac4 affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < 41a18e6c6e2c4a912494a035c17ecfe79c68b9e6 affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < bbc154a7da4e075aef720ef051aff6094400eb66 affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < c4cba6670fa199415689f67108e96b0ba469d767 affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < fc512700f1413fed652dac22fa1c4e837210b9c0 affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < 251b44b424920df9204e88a81fb3f78fa48ddd99 affected : ≥ 84597a44a9d86ac949900441cea7da0af0f2f473 < 18d80c77b4c7dd20699e81cedfbbff4e9d198f28 Other versions : unaffected |
| Linux · Linux | affected : 5.7 unaffected : ≥ 0 < 5.7 unaffected : ≥ 5.10.273 ≤ 5.10.* unaffected : ≥ 5.15.224 ≤ 5.15.* unaffected : ≥ 6.1.191 ≤ 6.1.* unaffected : ≥ 6.6.161 ≤ 6.6.* unaffected : ≥ 6.12.115 ≤ 6.12.* unaffected : ≥ 6.18.59 ≤ 6.18.* unaffected : ≥ 7.2.13 ≤ 7.2.* unaffected : ≥ 7.3 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |