{"id":"CVE-2022-49044","aliases":["CVE-2022-49044"],"related":[],"kind":"vulnerability","state":"published","title":"dm integrity: fix memory corruption when tag_size is less than digest size","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: dm integrity: fix memory corrupts when tag_size is less than digest size Es posible configurar dm-integrity de tal manera que el parámetro \"tag_size\" sea menor que el tamaño real del resumen. En esta situación, se ignora una parte del resumen más allá de tag_size. En este caso, dm-integrity escribiría más allá del final de la matriz ic-&gt;recalc_tags y dañaría la memoria. La corrupción ocurrió en integrity_recalc-&gt;integrity_sector_checksum-&gt;crypto_shash_final. Corrija esta corrupción aumentando la matriz tags para que tenga suficiente relleno al final para acomodar el bucle en integrity_recalc() pudiendo escribir un tamaño de resumen completo para el último miembro de la matriz tags.","source":"nvd"}],"published":"2025-02-26T01:54:21.389Z","modified":"2026-08-13T00:17:26.760Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"a3fcf7253139609bf9ff901fbf955fba047e75dd","fixed":"6a95d91c0b315c965198f6ab7dec7c94129e17e0","status":"affected"},{"type":"git","introduced":"a3fcf7253139609bf9ff901fbf955fba047e75dd","fixed":"7f84c937222944c03f4615ca4742df6bed0e5adf","status":"affected"},{"type":"git","introduced":"a3fcf7253139609bf9ff901fbf955fba047e75dd","fixed":"cd02b2687d66f0a8e716384de4b9a0671331f1dc","status":"affected"},{"type":"git","introduced":"a3fcf7253139609bf9ff901fbf955fba047e75dd","fixed":"6b4bf97587ef6c1927a78934b700204920655123","status":"affected"},{"type":"git","introduced":"a3fcf7253139609bf9ff901fbf955fba047e75dd","fixed":"4d485cf9b609709e45d5113e6e2b1b01254b2fe9","status":"affected"},{"type":"git","introduced":"a3fcf7253139609bf9ff901fbf955fba047e75dd","fixed":"08c1af8f1c13bbf210f1760132f4df24d0ed46d6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"4.19.240","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.190","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.112","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.35","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.4","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.12","fixed":"4.19.240"},{"status":"affected","introduced":"4.20","fixed":"5.4.190"},{"status":"affected","introduced":"5.5","fixed":"5.10.112"},{"status":"affected","introduced":"5.11","fixed":"5.15.35"},{"status":"affected","introduced":"5.16","fixed":"5.17.4"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6a95d91c0b315c965198f6ab7dec7c94129e17e0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f84c937222944c03f4615ca4742df6bed0e5adf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd02b2687d66f0a8e716384de4b9a0671331f1dc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b4bf97587ef6c1927a78934b700204920655123","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4d485cf9b609709e45d5113e6e2b1b01254b2fe9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08c1af8f1c13bbf210f1760132f4df24d0ed46d6","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49044","url":"https://www.cve.org/CVERecord?id=CVE-2022-49044","licence":"CVE Terms of Use","modified":"2026-08-12T23:57:25.025Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49044","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49044","licence":"Public domain","modified":"2026-08-13T00:17:26.760Z"}],"updatedAt":"2026-11-25T22:58:20.112Z","epss":{"score":0.00282,"percentile":0.22293,"date":"2026-12-01T12:00:22.000Z"}}