CVE-2026-99135

Source
https://cve.org/CVERecord?id=CVE-2026-99135
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99135.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99135
Downstream
Published
2026-10-28T10:34:47Z
Modified
2026-11-01T02:30:35Z
Summary
dm-integrity: fix infinite loop on discard with large tag size
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99135.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
84597a44a9d86ac949900441cea7da0af0f2f473
Fixed
f41a224b3c9d66c7b59afc7cae02a8b214f3c684
Fixed
c66f5c6ccfa832d28b44a66c01e3468c246adac4
Fixed
41a18e6c6e2c4a912494a035c17ecfe79c68b9e6
Fixed
bbc154a7da4e075aef720ef051aff6094400eb66
Fixed
c4cba6670fa199415689f67108e96b0ba469d767
Fixed
fc512700f1413fed652dac22fa1c4e837210b9c0
Fixed
251b44b424920df9204e88a81fb3f78fa48ddd99
Fixed
18d80c77b4c7dd20699e81cedfbbff4e9d198f28

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99135.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.7.0
Fixed
5.10.273
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.224
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.191
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.161
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.115
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.59
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99135.json"