# CVE-2024-26860: dm-integrity: fix a memory leak when rechecking the data

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-04-17T10:27:24.343Z
- Modified: 2026-06-17T07:18:31.817Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

dm-integrity: fix a memory leak when rechecking the data

Memory for the "checksums" pointer will leak if the data is rechecked
after checksum failure (because the associated kfree won't happen due
to 'goto skip_io').

Fix this by freeing the checksums memory before recheck, and just use
the "checksum_onstack" memory for storing checksum during recheck.

(As written by CVE List.)

## Affected

- Linux Linux: from 906414f4596469004632de29126c55751ed82c5e before 20e21c3c0195d915f33bc7321ee6b362177bf5bf; from d6824a28b244e8a750952848e4bd2167e1e9a17e before 338580a7fb9b0930bb38098007e89cc0fc496bf7; from eb7b14a6a923c5678573c4d238c781cc83fcbc0f before 74abc2fe09691f3d836d8a54d599ca71f1e4287b; from c88f5e553fe38b2ffc4c33d08654e5281b297677 before 6d35654f03c35c273240d85ec67e3f2c3596c4e0; from c88f5e553fe38b2ffc4c33d08654e5281b297677 before 55e565c42dce81a4e49c13262d5bc4eb4c2e588a; from 6.1.80 before 6.1.83; from 6.6.19 before 6.6.23; from 6.7.7 before 6.7.11; 6.8 (not affected: before 6.8; from 6.1.83 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.1.80 before 6.1.83; from 6.6.19 before 6.6.23; from 6.7.7 before 6.7.11; from 6.8 before 6.8.2

## References

- <https://git.kernel.org/stable/c/20e21c3c0195d915f33bc7321ee6b362177bf5bf> (patch)
- <https://git.kernel.org/stable/c/338580a7fb9b0930bb38098007e89cc0fc496bf7> (patch)
- <https://git.kernel.org/stable/c/74abc2fe09691f3d836d8a54d599ca71f1e4287b> (patch)
- <https://git.kernel.org/stable/c/6d35654f03c35c273240d85ec67e3f2c3596c4e0> (patch)
- <https://git.kernel.org/stable/c/55e565c42dce81a4e49c13262d5bc4eb4c2e588a> (patch)

## Sources

- CVE List: [CVE-2024-26860](https://www.cve.org/CVERecord?id=CVE-2024-26860), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-26860](https://nvd.nist.gov/vuln/detail/CVE-2024-26860), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26860 · Whole record: https://cve.day/CVE-2024-26860.json · Rebuilt by cve.day 2026-11-25T22:58:39.361Z
