{"id":"CVE-2022-49044","state":"PUBLISHED","title":"dm integrity: fix memory corruption when tag_size is less than digest size","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm integrity: fix memory corruption when tag_size is less than digest size\n\nIt is possible to set up dm-integrity in such a way that the\n\"tag_size\" parameter is less than the actual digest size. In this\nsituation, a part of the digest beyond tag_size is ignored.\n\nIn this case, dm-integrity would write beyond the end of the\nic->recalc_tags array and corrupt memory. The corruption happened in\nintegrity_recalc->integrity_sector_checksum->crypto_shash_final.\n\nFix this corruption by increasing the tags array so that it has enough\npadding at the end to accomodate the loop in integrity_recalc() being\nable to write a full digest size for the last member of the tags\narray.","publishedAt":"2025-02-26T01:54:21.389Z","updatedAt":"2026-08-12T23:57:25.025Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"6a95d91c0b315c965198f6ab7dec7c94129e17e0","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"7f84c937222944c03f4615ca4742df6bed0e5adf","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"cd02b2687d66f0a8e716384de4b9a0671331f1dc","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"6b4bf97587ef6c1927a78934b700204920655123","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"4d485cf9b609709e45d5113e6e2b1b01254b2fe9","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"08c1af8f1c13bbf210f1760132f4df24d0ed46d6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-integrity.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"4.19.240","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.190","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.112","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.35","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.4","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-integrity.c"]}],"references":["https://git.kernel.org/stable/c/6a95d91c0b315c965198f6ab7dec7c94129e17e0","https://git.kernel.org/stable/c/7f84c937222944c03f4615ca4742df6bed0e5adf","https://git.kernel.org/stable/c/cd02b2687d66f0a8e716384de4b9a0671331f1dc","https://git.kernel.org/stable/c/6b4bf97587ef6c1927a78934b700204920655123","https://git.kernel.org/stable/c/4d485cf9b609709e45d5113e6e2b1b01254b2fe9","https://git.kernel.org/stable/c/08c1af8f1c13bbf210f1760132f4df24d0ed46d6"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49044.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49044","state":"PUBLISHED","datePublished":"2025-02-26T01:54:21.389Z","dateUpdated":"2026-08-12T23:57:25.025Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T01:49:39.241Z"},"containers":{"cna":{"title":"dm integrity: fix memory corruption when tag_size is less than digest size","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm integrity: fix memory corruption when tag_size is less than digest size\n\nIt is possible to set up dm-integrity in such a way that the\n\"tag_size\" parameter is less than the actual digest size. In this\nsituation, a part of the digest beyond tag_size is ignored.\n\nIn this case, dm-integrity would write beyond the end of the\nic->recalc_tags array and corrupt memory. The corruption happened in\nintegrity_recalc->integrity_sector_checksum->crypto_shash_final.\n\nFix this corruption by increasing the tags array so that it has enough\npadding at the end to accomodate the loop in integrity_recalc() being\nable to write a full digest size for the last member of the tags\narray."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"6a95d91c0b315c965198f6ab7dec7c94129e17e0","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"7f84c937222944c03f4615ca4742df6bed0e5adf","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"cd02b2687d66f0a8e716384de4b9a0671331f1dc","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"6b4bf97587ef6c1927a78934b700204920655123","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"4d485cf9b609709e45d5113e6e2b1b01254b2fe9","versionType":"git"},{"version":"a3fcf7253139609bf9ff901fbf955fba047e75dd","status":"affected","lessThan":"08c1af8f1c13bbf210f1760132f4df24d0ed46d6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-integrity.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"4.19.240","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.190","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.112","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.35","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.4","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-integrity.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6a95d91c0b315c965198f6ab7dec7c94129e17e0"},{"url":"https://git.kernel.org/stable/c/7f84c937222944c03f4615ca4742df6bed0e5adf"},{"url":"https://git.kernel.org/stable/c/cd02b2687d66f0a8e716384de4b9a0671331f1dc"},{"url":"https://git.kernel.org/stable/c/6b4bf97587ef6c1927a78934b700204920655123"},{"url":"https://git.kernel.org/stable/c/4d485cf9b609709e45d5113e6e2b1b01254b2fe9"},{"url":"https://git.kernel.org/stable/c/08c1af8f1c13bbf210f1760132f4df24d0ed46d6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-12T23:57:25.025Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"4.19.240"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.4.190"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.10.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.15.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.17.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}