CVE-2025-7039Glib: buffer under-read on glib through glib/gfileutils.c via get_tmp_file()
A flaw was found in glib. An integer overflow during temporary file creation leads to an out-of-bounds memory access, allowing an attacker to potentially perform path traversal or access private temporary file content by creating symbolic links. This vulnerability allows a local attacker to manipulate file paths and access unauthorized data. The core issue stems from insufficient validation of file path lengths during temporary file operations.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | glib2.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | glib2.0 | Fixed | 2.80.0-6ubuntu3.6 | UBUNTU-CVE-2025-7039 |
| Ubuntu 22.04 | glib2.0 | Fixed | 2.72.4-0ubuntu2.7 | UBUNTU-CVE-2025-7039 |
| Ubuntu 20.04 | glib2.0 | Fix pending | 2.64.6-1~ubuntu20.04.9+esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-7039 |
| Ubuntu 18.04 | glib2.0 | Fix pending | 2.56.4-0ubuntu0.18.04.9+esm5 (Ubuntu Pro) | UBUNTU-CVE-2025-7039 |
| Ubuntu 16.04 | glib2.0 | Fix pending | 2.48.2-0ubuntu4.8+esm5 (Ubuntu Pro) | UBUNTU-CVE-2025-7039 |
| Ubuntu 14.04 | glib2.0 | Fix pending | 2.40.2-0ubuntu1.1+esm7 (Ubuntu Pro) | UBUNTU-CVE-2025-7039 |
| Debian 14 | glib2.0 | Fixed | 2.84.4-1 | DEBIAN-CVE-2025-7039 |
| Debian 13 | glib2.0 | Fixed | 2.84.4-3~deb13u1 | DEBIAN-CVE-2025-7039 |
| Debian 12 | glib2.0 | Fixed | 2.74.6-2+deb12u7 | DEBIAN-CVE-2025-7039 |
| Red Hat Enterprise Linux 10 | bootc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | glib2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | glib2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | glib2-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | glycin-loaders | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | loupe | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw32-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw32-glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw64-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | mingw64-glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rpm-ostree | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rpm-ostree-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | system-reinstall-bootc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | bootc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | glib2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | glib2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | glib2-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | librsvg2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | librsvg2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | librsvg2-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw32-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw32-glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw64-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mingw64-glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | system-reinstall-bootc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | glib2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | glib2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | glib2-fam | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | glib2-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | librsvg2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | librsvg2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | librsvg2-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-fam | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | glib2-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | glib2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | glib2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | glib2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | glib2-static | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References
- https://access.redhat.com/security/cve/CVE-2025-7039
- https://bugzilla.redhat.com/show_bug.cgi?id=2392423
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.