# CVE-2025-39679: drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor().

- 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.24%, higher than 9% of CVEs (2026-11-30)
- Published: 2025-09-05T17:20:45.357Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor().

When the nvif_vmm_type is invalid, we will return error directly
without freeing the args in nvif_vmm_ctor(), which leading a memory
leak. Fix it by setting the ret -EINVAL and goto done.

(As written by CVE List.)

## Affected

- Linux Linux: from 6b252cf42281045a9f803d2198023500cfa6ebd2 before 72553fe19317fe93cb8591c83095c446bc7fe292; from 6b252cf42281045a9f803d2198023500cfa6ebd2 before cabcb52d76d3d42f16c344a96e098dd9d18602f8; from 6b252cf42281045a9f803d2198023500cfa6ebd2 before 7d9110e3b35d08832661da1a1fc2d24455981a04; from 6b252cf42281045a9f803d2198023500cfa6ebd2 before bb8aeaa3191b617c6faf8ae937252e059673b7ea; 6.6 (not affected: before 6.6; from 6.6.103 up to 6.6.*; from 6.12.44 up to 6.12.*; from 6.16.4 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.6 before 6.6.103; from 6.7 before 6.12.44; from 6.13 before 6.16.4; 6.17

## References

- <https://git.kernel.org/stable/c/72553fe19317fe93cb8591c83095c446bc7fe292> (patch)
- <https://git.kernel.org/stable/c/cabcb52d76d3d42f16c344a96e098dd9d18602f8> (patch)
- <https://git.kernel.org/stable/c/7d9110e3b35d08832661da1a1fc2d24455981a04> (patch)
- <https://git.kernel.org/stable/c/bb8aeaa3191b617c6faf8ae937252e059673b7ea> (patch)

## Sources

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

---

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