# CVE-2024-43854: block: initialize integrity buffer to zero before writing it to media

- 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.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-08-17T09:22:11.297Z
- Modified: 2026-06-17T07:51:50.640Z
- 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:

block: initialize integrity buffer to zero before writing it to media

Metadata added by bio_integrity_prep is using plain kmalloc, which leads
to random kernel memory being written media.  For PI metadata this is
limited to the app tag that isn't used by kernel generated metadata,
but for non-PI metadata the entire buffer leaks kernel memory.

Fix this by adding the __GFP_ZERO flag to allocations for writes.

(As written by CVE List.)

## Affected

- Linux Linux: from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before 9f4af4cf08f9a0329ade3d938f55d2220c40d0a6; from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before 129f95948a96105c1fad8e612c9097763e88ac5f; from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before 3fd11fe4f20756b4c0847f755a64cd96f8c6a005; from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before cf6b45ea7a8df0f61bded1dc4a8561ac6ad143d2; from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before d418313bd8f55c079a7da12651951b489a638ac1; from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before 23a19655fb56f241e592041156dfb1c6d04da644; from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before ebc0e91ba76dc6544fff9f5b66408b1982806a00; from 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b before 899ee2c3829c5ac14bfc7d3c4a5846c0b709b78f; 2.6.27 (not affected: before 2.6.27; from 4.19.322 up to 4.19.*; from 5.4.284 up to 5.4.*; from 5.10.226 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 2.6.27 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/9f4af4cf08f9a0329ade3d938f55d2220c40d0a6>
- <https://git.kernel.org/stable/c/129f95948a96105c1fad8e612c9097763e88ac5f>
- <https://git.kernel.org/stable/c/3fd11fe4f20756b4c0847f755a64cd96f8c6a005>
- <https://git.kernel.org/stable/c/cf6b45ea7a8df0f61bded1dc4a8561ac6ad143d2> (patch)
- <https://git.kernel.org/stable/c/d418313bd8f55c079a7da12651951b489a638ac1> (patch)
- <https://git.kernel.org/stable/c/23a19655fb56f241e592041156dfb1c6d04da644> (patch)
- <https://git.kernel.org/stable/c/ebc0e91ba76dc6544fff9f5b66408b1982806a00> (patch)
- <https://git.kernel.org/stable/c/899ee2c3829c5ac14bfc7d3c4a5846c0b709b78f> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

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

---

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