# CVE-2026-23147: btrfs: zlib: fix the folio leak on S390 hardware acceleration

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-02-14T16:01:16.917Z
- Modified: 2026-06-17T10:20:59.193Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

btrfs: zlib: fix the folio leak on S390 hardware acceleration

[BUG]
After commit aa60fe12b4f4 ("btrfs: zlib: refactor S390x HW acceleration
buffer preparation"), we no longer release the folio of the page cache
of folio returned by btrfs_compress_filemap_get_folio() for S390
hardware acceleration path.

[CAUSE]
Before that commit, we call kumap_local() and folio_put() after handling
each folio.

Although the timing is not ideal (it release previous folio at the
beginning of the loop, and rely on some extra cleanup out of the loop),
it at least handles the folio release correctly.

Meanwhile the refactored code is easier to read, it lacks the call to
release the filemap folio.

[FIX]
Add the missing folio_put() for copy_data_into_buffer().

(As written by CVE List.)

## Affected

- Linux Linux: from aa60fe12b4f49f49fc73e5023f8675e2df1f7805 before e80617a5e1c246da2f112a1a072cdd535046adfe; from aa60fe12b4f49f49fc73e5023f8675e2df1f7805 before 0d0f1314e8f86f5205f71f9e31e272a1d008e40b; 6.15 (not affected: before 6.15; from 6.18.9 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.15 before 6.18.9; 6.19

## References

- <https://git.kernel.org/stable/c/e80617a5e1c246da2f112a1a072cdd535046adfe> (patch)
- <https://git.kernel.org/stable/c/0d0f1314e8f86f5205f71f9e31e272a1d008e40b> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-23147 · Whole record: https://cve.day/CVE-2026-23147.json · Rebuilt by cve.day 2026-11-25T22:59:13.888Z
