# CVE-2025-38612: staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()

- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-08-19T17:03:54.797Z
- Modified: 2026-06-17T09:17:12.857Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()

In the error paths after fb_info structure is successfully allocated,
the memory allocated in fb_deferred_io_init() for info->pagerefs is not
freed. Fix that by adding the cleanup function on the error path.

(As written by CVE List.)

## Affected

- Linux Linux: from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before c3b1c45c48117ed4d8797ee89d1155f16b72d490; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 3290f62f23fae05f2ec34085eb86dfb3648ef91f; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before b31cf6f7716a5d3e4461763f32d812acdaec6e74; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before a3177955f8da3c826a18b75e54881e2e9a9c96f1; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 6771f121ae87490ddc19eabb7450383af9e01b6d; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before 47b3d6e8921bbb7b65c2dab8eaa8864901848c1c; from c296d5f9957c03994a699d6739c27d4581a9f6c7 before eb2cb7dab60f9be0b435ac4a674255429a36d72c; 4.0 (not affected: before 4.0; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.148 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 4.0 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.148; from 6.2 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0> (patch)
- <https://git.kernel.org/stable/c/c3b1c45c48117ed4d8797ee89d1155f16b72d490> (patch)
- <https://git.kernel.org/stable/c/3290f62f23fae05f2ec34085eb86dfb3648ef91f> (patch)
- <https://git.kernel.org/stable/c/6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f> (patch)
- <https://git.kernel.org/stable/c/b31cf6f7716a5d3e4461763f32d812acdaec6e74> (patch)
- <https://git.kernel.org/stable/c/a3177955f8da3c826a18b75e54881e2e9a9c96f1> (patch)
- <https://git.kernel.org/stable/c/6771f121ae87490ddc19eabb7450383af9e01b6d> (patch)
- <https://git.kernel.org/stable/c/47b3d6e8921bbb7b65c2dab8eaa8864901848c1c> (patch)
- <https://git.kernel.org/stable/c/eb2cb7dab60f9be0b435ac4a674255429a36d72c> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

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

---

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