# CVE-2025-38612: staging: fbtft: fix potential memory leak in fbtft\_framebuffer\_alloc()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-08-19T17:03:54.797Z
- **Modified:** 2026-06-17T09:17:12.857Z

## Who should check

- Anyone running Linux \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< c3b1c45c48117ed4d8797ee89d1155f16b72d490; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 3290f62f23fae05f2ec34085eb86dfb3648ef91f; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< b31cf6f7716a5d3e4461763f32d812acdaec6e74; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< a3177955f8da3c826a18b75e54881e2e9a9c96f1; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 6771f121ae87490ddc19eabb7450383af9e01b6d; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 47b3d6e8921bbb7b65c2dab8eaa8864901848c1c; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< eb2cb7dab60f9be0b435ac4a674255429a36d72c
- Anyone running Linux 4.0

## 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.

## Affected and fixed versions

- Linux: \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< c3b1c45c48117ed4d8797ee89d1155f16b72d490; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 3290f62f23fae05f2ec34085eb86dfb3648ef91f; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< b31cf6f7716a5d3e4461763f32d812acdaec6e74; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< a3177955f8da3c826a18b75e54881e2e9a9c96f1; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 6771f121ae87490ddc19eabb7450383af9e01b6d; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 47b3d6e8921bbb7b65c2dab8eaa8864901848c1c; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< eb2cb7dab60f9be0b435ac4a674255429a36d72c (cvelist)
- Linux: 4.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38612.md
Affected: Linux >= c296d5f9957c03994a699d6739c27d4581a9f6c7, < 83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0; >= c296d5f9957c03994a699d6739c27d4581a9f6c7, < c3b1c45c48117ed4d8797ee89d1155f16b72d490; >= c296d5f9957c03994a699d6739c27d4581a9f6c7, < 3290f62f23fae05f2ec34085eb86dfb3648ef91f; >= c296d5f9957c03994a699d6…
Fixed in: Linux 83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0, Linux 3290f62f23fae05f2ec34085eb86dfb3648ef91f, Linux 6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f, Linux 6771f121ae87490ddc19eabb7450383af9e01b6d, Linux 47b3d6e8921bbb7b65c2dab8eaa8864901848c1c

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-2025-38612 being exploited?

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

### How serious is CVE-2025-38612?

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

### Which versions are affected by CVE-2025-38612?

Linux \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< c3b1c45c48117ed4d8797ee89d1155f16b72d490; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 3290f62f23fae05f2ec34085eb86dfb3648ef91f; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< b31cf6f7716a5d3e4461763f32d812acdaec6e74; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< a3177955f8da3c826a18b75e54881e2e9a9c96f1; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 6771f121ae87490ddc19eabb7450383af9e01b6d; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< 47b3d6e8921bbb7b65c2dab8eaa8864901848c1c; \>= c296d5f9957c03994a699d6739c27d4581a9f6c7, \< eb2cb7dab60f9be0b435ac4a674255429a36d72c; Linux 4.0.

### Is there a fix for CVE-2025-38612?

Yes. Fixed in Linux 83ea0c7b8d12c67f6c4703d6c458627a7fc45fc0, Linux 3290f62f23fae05f2ec34085eb86dfb3648ef91f, Linux 6f9e2cf9e9c1a891a683329af35bb33ed9d38b5f, Linux 6771f121ae87490ddc19eabb7450383af9e01b6d, Linux 47b3d6e8921bbb7b65c2dab8eaa8864901848c1c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38612?

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/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>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## 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-2025-38612>

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