# CVE-2022-49044: dm integrity: fix memory corruption when tag\_size is less than digest size

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-02-26T01:54:21.389Z
- **Modified:** 2026-08-13T00:17:26.760Z

## Who should check

- Anyone running Linux \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 6a95d91c0b315c965198f6ab7dec7c94129e17e0; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 7f84c937222944c03f4615ca4742df6bed0e5adf; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< cd02b2687d66f0a8e716384de4b9a0671331f1dc; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 6b4bf97587ef6c1927a78934b700204920655123; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 4d485cf9b609709e45d5113e6e2b1b01254b2fe9; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 08c1af8f1c13bbf210f1760132f4df24d0ed46d6
- Anyone running Linux 4.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

dm integrity: fix memory corruption when tag\_size is less than digest size

It is possible to set up dm-integrity in such a way that the
"tag\_size" parameter is less than the actual digest size. In this
situation, a part of the digest beyond tag\_size is ignored.

In this case, dm-integrity would write beyond the end of the
ic-\>recalc\_tags array and corrupt memory. The corruption happened in
integrity\_recalc-\>integrity\_sector\_checksum-\>crypto\_shash\_final.

Fix this corruption by increasing the tags array so that it has enough
padding at the end to accomodate the loop in integrity\_recalc() being
able to write a full digest size for the last member of the tags
array.

## Affected and fixed versions

- Linux: \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 6a95d91c0b315c965198f6ab7dec7c94129e17e0; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 7f84c937222944c03f4615ca4742df6bed0e5adf; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< cd02b2687d66f0a8e716384de4b9a0671331f1dc; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 6b4bf97587ef6c1927a78934b700204920655123; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 4d485cf9b609709e45d5113e6e2b1b01254b2fe9; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 08c1af8f1c13bbf210f1760132f4df24d0ed46d6 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 08c1af8f1c13bbf210f1760132f4df24d0ed46d6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49044. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49044.md
Affected: Linux >= a3fcf7253139609bf9ff901fbf955fba047e75dd, < 6a95d91c0b315c965198f6ab7dec7c94129e17e0; >= a3fcf7253139609bf9ff901fbf955fba047e75dd, < 7f84c937222944c03f4615ca4742df6bed0e5adf; >= a3fcf7253139609bf9ff901fbf955fba047e75dd, < cd02b2687d66f0a8e716384de4b9a0671331f1dc; >= a3fcf7253139609bf9ff901…
Fixed in: Linux 6a95d91c0b315c965198f6ab7dec7c94129e17e0, Linux 7f84c937222944c03f4615ca4742df6bed0e5adf, Linux 6b4bf97587ef6c1927a78934b700204920655123, Linux 4d485cf9b609709e45d5113e6e2b1b01254b2fe9, Linux 08c1af8f1c13bbf210f1760132f4df24d0ed46d6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49044 being exploited?

There is no confirmed exploitation: CVE-2022-49044 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49044?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49044?

Linux \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 6a95d91c0b315c965198f6ab7dec7c94129e17e0; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 7f84c937222944c03f4615ca4742df6bed0e5adf; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< cd02b2687d66f0a8e716384de4b9a0671331f1dc; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 6b4bf97587ef6c1927a78934b700204920655123; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 4d485cf9b609709e45d5113e6e2b1b01254b2fe9; \>= a3fcf7253139609bf9ff901fbf955fba047e75dd, \< 08c1af8f1c13bbf210f1760132f4df24d0ed46d6; Linux 4.19.

### Is there a fix for CVE-2022-49044?

Yes. Fixed in Linux 6a95d91c0b315c965198f6ab7dec7c94129e17e0, Linux 7f84c937222944c03f4615ca4742df6bed0e5adf, Linux 6b4bf97587ef6c1927a78934b700204920655123, Linux 4d485cf9b609709e45d5113e6e2b1b01254b2fe9, Linux 08c1af8f1c13bbf210f1760132f4df24d0ed46d6. Upgrade Linux to 08c1af8f1c13bbf210f1760132f4df24d0ed46d6 or later.

### How do I check if I'm affected by CVE-2022-49044?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6a95d91c0b315c965198f6ab7dec7c94129e17e0>
- patch: <https://git.kernel.org/stable/c/7f84c937222944c03f4615ca4742df6bed0e5adf>
- patch: <https://git.kernel.org/stable/c/cd02b2687d66f0a8e716384de4b9a0671331f1dc>
- patch: <https://git.kernel.org/stable/c/6b4bf97587ef6c1927a78934b700204920655123>
- patch: <https://git.kernel.org/stable/c/4d485cf9b609709e45d5113e6e2b1b01254b2fe9>
- patch: <https://git.kernel.org/stable/c/08c1af8f1c13bbf210f1760132f4df24d0ed46d6>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49044>

HTML: <https://flawdb.com/CVE-2022-49044> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49044>
