CVE-2026-58013Glib: buffer over-read in glib/giochannel.c via "g_io_channel_read_line_backend"
A flaw was found in GLib. A buffer over-read can occur in g_io_channel_read_line_backend() in the giochannel.c file when a custom line terminator with a length greater than one is set, causing memcmp to read past the GString buffer. This vulnerability can cause a minor information disclosure of 7 bytes or a denial of service when the buffer over-read crosses a page boundary.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, 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 26.04 | glib2.0 | Fixed | 2.88.0-1ubuntu0.1 | UBUNTU-CVE-2026-58013 |
| Ubuntu 25.10 | glib2.0 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-58013 | |
| Ubuntu 24.04 | glib2.0 | Fixed | 2.80.0-6ubuntu3.9 | UBUNTU-CVE-2026-58013 |
| Ubuntu 22.04 | glib2.0 | Fixed | 2.72.4-0ubuntu2.10 | UBUNTU-CVE-2026-58013 |
| Ubuntu 20.04 | glib2.0 | Fix pending | 2.64.6-1~ubuntu20.04.9+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-58013 |
| Ubuntu 18.04 | glib2.0 | Fix pending | 2.56.4-0ubuntu0.18.04.9+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-58013 |
| Ubuntu 16.04 | glib2.0 | Fix pending | 2.48.2-0ubuntu4.8+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-58013 |
| Ubuntu 14.04 | glib2.0 | Fix pending | 2.40.2-0ubuntu1.1+esm8 (Ubuntu Pro) | UBUNTU-CVE-2026-58013 |
| Debian 14 | glib2.0 | Fixed | 2.88.1-2 | DEBIAN-CVE-2026-58013 |
| Debian 13 | glib2.0 | Fixed | 2.84.4-3~deb13u4 | DEBIAN-CVE-2026-58013 |
| Debian 12 | glib2.0 | Fix pending | DEBIAN-CVE-2026-58013 | |
| Red Hat Enterprise Linux 10 | glib2 | Fixed | 0:2.80.4-12.el10_2.21 | RHSA-2026:57015 |
| Red Hat Enterprise Linux 10 | glib2-devel | Fixed | 0:2.80.4-12.el10_2.21 | RHSA-2026:57015 |
| Red Hat Enterprise Linux 10 | glib2-doc | Fixed | 0:2.80.4-12.el10_2.21 | RHSA-2026:57015 |
| Red Hat Enterprise Linux 10 | glib2-static | Fixed | 0:2.80.4-12.el10_2.21 | RHSA-2026:57015 |
| Red Hat Enterprise Linux 10 | glib2-tests | Fixed | 0:2.80.4-12.el10_2.21 | RHSA-2026:57015 |
| Red Hat Enterprise Linux 10 | mingw-glib2 | Fixed | 0:2.89.2-1.el10 | RHSA-2026:97163 |
| Red Hat Enterprise Linux 10 | mingw32-glib2 | Fixed | 0:2.89.2-1.el10 | RHSA-2026:97163 |
| Red Hat Enterprise Linux 10 | mingw32-glib2-static | Fixed | 0:2.89.2-1.el10 | RHSA-2026:97163 |
| Red Hat Enterprise Linux 10 | mingw64-glib2 | Fixed | 0:2.89.2-1.el10 | RHSA-2026:97163 |
| Red Hat Enterprise Linux 10 | mingw64-glib2-static | Fixed | 0:2.89.2-1.el10 | RHSA-2026:97163 |
| Red Hat Enterprise Linux 9 | glib2 | Fixed | 0:2.68.4-19.el9_8.9 | RHSA-2026:55440 |
| Red Hat Enterprise Linux 9 | glib2-devel | Fixed | 0:2.68.4-19.el9_8.9 | RHSA-2026:55440 |
| Red Hat Enterprise Linux 9 | glib2-doc | Fixed | 0:2.68.4-19.el9_8.9 | RHSA-2026:55440 |
| Red Hat Enterprise Linux 9 | glib2-static | Fixed | 0:2.68.4-19.el9_8.9 | RHSA-2026:55440 |
| Red Hat Enterprise Linux 9 | glib2-tests | Fixed | 0:2.68.4-19.el9_8.9 | RHSA-2026:55440 |
| Red Hat Enterprise Linux 9 | mingw-glib2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | mingw32-glib2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | mingw32-glib2-static | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | mingw64-glib2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | mingw64-glib2-static | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | glib2 | Fixed | 0:2.56.4-177.el8_10 | RHSA-2026:61766 |
| Red Hat Enterprise Linux 8 | glib2-devel | Fixed | 0:2.56.4-177.el8_10 | RHSA-2026:61766 |
| Red Hat Enterprise Linux 8 | glib2-doc | Fixed | 0:2.56.4-177.el8_10 | RHSA-2026:61766 |
| Red Hat Enterprise Linux 8 | glib2-fam | Fixed | 0:2.56.4-177.el8_10 | RHSA-2026:61766 |
| Red Hat Enterprise Linux 8 | glib2-static | Fixed | 0:2.56.4-177.el8_10 | RHSA-2026:61766 |
| Red Hat Enterprise Linux 8 | glib2-tests | Fixed | 0:2.56.4-177.el8_10 | RHSA-2026:61766 |
| Red Hat Enterprise Linux 8 | mingw-glib2 | Fixed | 0:2.70.1-9.el8_10 | RHSA-2026:49512 |
| Red Hat Enterprise Linux 8 | mingw32-glib2 | Fixed | 0:2.70.1-9.el8_10 | RHSA-2026:49512 |
| Red Hat Enterprise Linux 8 | mingw32-glib2-static | Fixed | 0:2.70.1-9.el8_10 | RHSA-2026:49512 |
| Red Hat Enterprise Linux 8 | mingw64-glib2 | Fixed | 0:2.70.1-9.el8_10 | RHSA-2026:49512 |
| Red Hat Enterprise Linux 8 | mingw64-glib2-static | Fixed | 0:2.70.1-9.el8_10 | RHSA-2026:49512 |
| Red Hat Enterprise Linux 6 | glib2 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glib2-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glib2-doc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | glib2-static | Will not fix Will not fix | ||
| AlmaLinux 10 | glib2 | Fixed | 2.80.4-12.el10_2.21 | ALSA-2026:57015 |
| AlmaLinux 10 | glib2-devel | Fixed | 2.80.4-12.el10_2.21 | ALSA-2026:57015 |
| AlmaLinux 10 | glib2-doc | Fixed | 2.80.4-12.el10_2.21 | ALSA-2026:57015 |
| AlmaLinux 10 | glib2-static | Fixed | 2.80.4-12.el10_2.21 | ALSA-2026:57015 |
| AlmaLinux 10 | glib2-tests | Fixed | 2.80.4-12.el10_2.21 | ALSA-2026:57015 |
| AlmaLinux 10 | mingw32-glib2 | Fixed | 2.89.2-1.el10 | ALSA-2026:97163 |
| AlmaLinux 10 | mingw32-glib2-static | Fixed | 2.89.2-1.el10 | ALSA-2026:97163 |
| AlmaLinux 10 | mingw64-glib2 | Fixed | 2.89.2-1.el10 | ALSA-2026:97163 |
| AlmaLinux 10 | mingw64-glib2-static | Fixed | 2.89.2-1.el10 | ALSA-2026:97163 |
| AlmaLinux 9 | glib2 | Fixed | 2.68.4-19.el9_8.9 | ALSA-2026:55440 |
| AlmaLinux 9 | glib2-devel | Fixed | 2.68.4-19.el9_8.9 | ALSA-2026:55440 |
| AlmaLinux 9 | glib2-doc | Fixed | 2.68.4-19.el9_8.9 | ALSA-2026:55440 |
| AlmaLinux 9 | glib2-static | Fixed | 2.68.4-19.el9_8.9 | ALSA-2026:55440 |
| AlmaLinux 9 | glib2-tests | Fixed | 2.68.4-19.el9_8.9 | ALSA-2026:55440 |
| AlmaLinux 8 | glib2 | Fixed | 2.56.4-177.el8_10 | ALSA-2026:61766 |
| AlmaLinux 8 | glib2-devel | Fixed | 2.56.4-177.el8_10 | ALSA-2026:61766 |
| AlmaLinux 8 | glib2-doc | Fixed | 2.56.4-177.el8_10 | ALSA-2026:61766 |
| AlmaLinux 8 | glib2-fam | Fixed | 2.56.4-177.el8_10 | ALSA-2026:61766 |
| AlmaLinux 8 | glib2-static | Fixed | 2.56.4-177.el8_10 | ALSA-2026:61766 |
| AlmaLinux 8 | glib2-tests | Fixed | 2.56.4-177.el8_10 | ALSA-2026:61766 |
| AlmaLinux 8 | mingw32-glib2 | Fixed | 2.70.1-9.el8_10 | ALSA-2026:49512 |
| AlmaLinux 8 | mingw32-glib2-static | Fixed | 2.70.1-9.el8_10 | ALSA-2026:49512 |
| AlmaLinux 8 | mingw64-glib2 | Fixed | 2.70.1-9.el8_10 | ALSA-2026:49512 |
| AlmaLinux 8 | mingw64-glib2-static | Fixed | 2.70.1-9.el8_10 | ALSA-2026:49512 |
| Rocky Linux 10 | glib2 | Fixed | 0:2.80.4-12.el10_2.21 | RLSA-2026:57015 |
| Rocky Linux 10 | mingw32-glib2 | Fixed | 0:2.89.2-1.el10 | RLSA-2026:97163 |
| Rocky Linux 10 | mingw32-glib2-static | Fixed | 0:2.89.2-1.el10 | RLSA-2026:97163 |
| Rocky Linux 10 | mingw64-glib2 | Fixed | 0:2.89.2-1.el10 | RLSA-2026:97163 |
| Rocky Linux 10 | mingw64-glib2-static | Fixed | 0:2.89.2-1.el10 | RLSA-2026:97163 |
| Rocky Linux 9 | glib2 | Fixed | 0:2.68.4-19.el9_8.9 | RLSA-2026:55440 |
| Rocky Linux 8 | glib2 | Fixed | 0:2.56.4-177.el8_10 | RLSA-2026:61766 |
| Rocky Linux 8 | mingw-glib2 | Fixed | 0:2.70.1-9.el8_10 | RLSA-2026:49512 |
| Alpine Linux 3.23 | glib | Fixed | 2.86.4-r0 | ALPINE-CVE-2026-58013 |
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.
- GNOME GLib: affected: before 2.88.1; fixed in
2.88.1 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 10.0 Extended Update Support
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9
Workaround: To mitigate this vulnerability, restrict any custom line terminator string passed to g_io_channel_set_line_term() to a maximum length of one byte before calling g_io_channel_read_line_backend(). Using the default line terminators will completely neutralize this issue.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:49512 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:55440 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:57015 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:58981 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:61766 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:61783 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:49512
- https://access.redhat.com/errata/RHSA-2026:55440
- https://access.redhat.com/errata/RHSA-2026:57015
- https://access.redhat.com/errata/RHSA-2026:58981
- https://access.redhat.com/errata/RHSA-2026:61766
- https://access.redhat.com/errata/RHSA-2026:61783
- https://access.redhat.com/errata/RHSA-2026:63135
- https://access.redhat.com/errata/RHSA-2026:63138
- https://access.redhat.com/errata/RHSA-2026:63140
- https://access.redhat.com/errata/RHSA-2026:65762
- https://access.redhat.com/errata/RHSA-2026:65763
- https://access.redhat.com/errata/RHSA-2026:65767
- https://access.redhat.com/errata/RHSA-2026:65768
- https://access.redhat.com/errata/RHSA-2026:65769
- https://access.redhat.com/errata/RHSA-2026:65770
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.