CVE-2026-16118Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in…
A flaw was found in xdgmime. A heap-based buffer overflow can be triggered in _xdg_mime_magic_parse_magic_line() in the xdgmimemagic.c file on little-endian systems when an attacker-controlled MIME magic file in a user-writable XDG data location (e.g., in the $XDG_DATA_HOME/mime/magic path) is parsed by an application performing MIME type detection (e.g., via g_content_type_guess()). When performing byte-swap, incorrect pointer arithmetic on the write side causes an out-of-bounds write of 2 bytes, resulting in an application crash or memory corruption.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, 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-16118 |
| Ubuntu 24.04 | glib2.0 | Fixed | 2.80.0-6ubuntu3.9 | UBUNTU-CVE-2026-16118 |
| Ubuntu 22.04 | glib2.0 | Fixed | 2.72.4-0ubuntu2.10 | UBUNTU-CVE-2026-16118 |
| Ubuntu 20.04 | glib2.0 | Fix pending | 2.64.6-1~ubuntu20.04.9+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-16118 |
| Ubuntu 18.04 | glib2.0 | Fix pending | 2.56.4-0ubuntu0.18.04.9+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-16118 |
| Ubuntu 16.04 | glib2.0 | Fix pending | 2.48.2-0ubuntu4.8+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-16118 |
| Ubuntu 14.04 | glib2.0 | Fix pending | 2.40.2-0ubuntu1.1+esm8 (Ubuntu Pro) | UBUNTU-CVE-2026-16118 |
| Debian 14 | glib2.0 | Fixed | 2.88.3-3 | DEBIAN-CVE-2026-16118 |
| Debian 13 | glib2.0 | Fixed | 2.84.4-3~deb13u5 | DEBIAN-CVE-2026-16118 |
| Debian 12 | glib2.0 | Fix pending | DEBIAN-CVE-2026-16118 | |
| Red Hat Enterprise Linux 10 | glib2 | Fixed | 0:2.80.4-12.el10_2.22 | RHSA-2026:98557 |
| Red Hat Enterprise Linux 10 | glib2-devel | Fixed | 0:2.80.4-12.el10_2.22 | RHSA-2026:98557 |
| Red Hat Enterprise Linux 10 | glib2-doc | Fixed | 0:2.80.4-12.el10_2.22 | RHSA-2026:98557 |
| Red Hat Enterprise Linux 10 | glib2-static | Fixed | 0:2.80.4-12.el10_2.22 | RHSA-2026:98557 |
| Red Hat Enterprise Linux 10 | glib2-tests | Fixed | 0:2.80.4-12.el10_2.22 | RHSA-2026:98557 |
| Red Hat Enterprise Linux 9 | glib2 | Fixed | 0:2.68.4-29.el9_9.1 | RHSA-2026:64800 |
| Red Hat Enterprise Linux 9 | glib2-devel | Fixed | 0:2.68.4-29.el9_9.1 | RHSA-2026:64800 |
| Red Hat Enterprise Linux 9 | glib2-doc | Fixed | 0:2.68.4-29.el9_9.1 | RHSA-2026:64800 |
| Red Hat Enterprise Linux 9 | glib2-static | Fixed | 0:2.68.4-19.el9_8.10 | RHSA-2026:98452 |
| Red Hat Enterprise Linux 9 | glib2-tests | Fixed | 0:2.68.4-29.el9_9.1 | RHSA-2026:64800 |
| Red Hat Enterprise Linux 9 | webkit2gtk3 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | webkit2gtk3-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | webkit2gtk3-jsc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | webkit2gtk3-jsc-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | glib2 | Fixed | 0:2.56.4-178.el8_10 | RHSA-2026:66451 |
| Red Hat Enterprise Linux 8 | glib2-devel | Fixed | 0:2.56.4-178.el8_10 | RHSA-2026:66451 |
| Red Hat Enterprise Linux 8 | glib2-doc | Fixed | 0:2.56.4-178.el8_10 | RHSA-2026:66451 |
| Red Hat Enterprise Linux 8 | glib2-fam | Fixed | 0:2.56.4-178.el8_10 | RHSA-2026:66451 |
| Red Hat Enterprise Linux 8 | glib2-static | Fixed | 0:2.56.4-178.el8_10 | RHSA-2026:66451 |
| Red Hat Enterprise Linux 8 | glib2-tests | Fixed | 0:2.56.4-178.el8_10 | RHSA-2026:66451 |
| Red Hat Enterprise Linux 8 | webkit2gtk3 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | webkit2gtk3-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | webkit2gtk3-jsc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | webkit2gtk3-jsc-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | webkit2gtk3-plugin-process-gtk2 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | webkitgtk4 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | webkitgtk4-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | webkitgtk4-doc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | webkitgtk4-jsc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | webkitgtk4-jsc-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | webkitgtk4-plugin-process-gtk2 | Will not fix Will not fix | ||
| AlmaLinux 10 | glib2 | Fixed | 2.80.4-22.el10_3.23 | ALSA-2026:64799 |
| AlmaLinux 10 | glib2-devel | Fixed | 2.80.4-22.el10_3.23 | ALSA-2026:64799 |
| AlmaLinux 10 | glib2-doc | Fixed | 2.80.4-22.el10_3.23 | ALSA-2026:64799 |
| AlmaLinux 10 | glib2-static | Fixed | 2.80.4-22.el10_3.23 | ALSA-2026:64799 |
| AlmaLinux 10 | glib2-tests | Fixed | 2.80.4-22.el10_3.23 | ALSA-2026:64799 |
| AlmaLinux 9 | glib2 | Fixed | 2.68.4-29.el9_9.1 | ALSA-2026:64800 |
| AlmaLinux 9 | glib2-devel | Fixed | 2.68.4-29.el9_9.1 | ALSA-2026:64800 |
| AlmaLinux 9 | glib2-doc | Fixed | 2.68.4-19.el9_8.10 | ALSA-2026:98452 |
| AlmaLinux 9 | glib2-static | Fixed | 2.68.4-29.el9_9.1 | ALSA-2026:64800 |
| AlmaLinux 9 | glib2-tests | Fixed | 2.68.4-29.el9_9.1 | ALSA-2026:64800 |
| AlmaLinux 8 | glib2 | Fixed | 2.56.4-178.el8_10 | ALSA-2026:66451 |
| AlmaLinux 8 | glib2-devel | Fixed | 2.56.4-178.el8_10 | ALSA-2026:66451 |
| AlmaLinux 8 | glib2-doc | Fixed | 2.56.4-178.el8_10 | ALSA-2026:66451 |
| AlmaLinux 8 | glib2-fam | Fixed | 2.56.4-178.el8_10 | ALSA-2026:66451 |
| AlmaLinux 8 | glib2-static | Fixed | 2.56.4-178.el8_10 | ALSA-2026:66451 |
| AlmaLinux 8 | glib2-tests | Fixed | 2.56.4-178.el8_10 | ALSA-2026:66451 |
| Rocky Linux 10 | glib2 | Fixed | 0:2.80.4-12.el10_2.22 | RLSA-2026:98557 |
| Rocky Linux 10 | glib2-devel | Fixed | 0:2.80.4-22.el10_3.23 | RLSA-2026:98557 |
| Rocky Linux 10 | glib2-doc | Fixed | 0:2.80.4-22.el10_3.23 | RLSA-2026:98557 |
| Rocky Linux 10 | glib2-static | Fixed | 0:2.80.4-22.el10_3.23 | RLSA-2026:98557 |
| Rocky Linux 10 | glib2-tests | Fixed | 0:2.80.4-22.el10_3.23 | RLSA-2026:98557 |
| Rocky Linux 9 | glib2 | Fixed | 0:2.68.4-29.el9_9.1 | RLSA-2026:98452 |
| Rocky Linux 9 | glib2-devel | Fixed | 0:2.68.4-29.el9_9.1 | RLSA-2026:98452 |
| Rocky Linux 9 | glib2-doc | Fixed | 0:2.68.4-29.el9_9.1 | RLSA-2026:98452 |
| Rocky Linux 9 | glib2-static | Fixed | 0:2.68.4-29.el9_9.1 | RLSA-2026:98452 |
| Rocky Linux 9 | glib2-tests | Fixed | 0:2.68.4-29.el9_9.1 | RLSA-2026:98452 |
| Rocky Linux 8 | glib2 | Fixed | 0:2.56.4-178.el8_10 | RLSA-2026:66451 |
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.
- xdgmime
- 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: Do not install a MIME magic file or content from untrusted sources.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:100504 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:102189 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:103506 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:64799 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:64800 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:66451 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:100504
- https://access.redhat.com/errata/RHSA-2026:102189
- https://access.redhat.com/errata/RHSA-2026:103506
- https://access.redhat.com/errata/RHSA-2026:64799
- https://access.redhat.com/errata/RHSA-2026:64800
- https://access.redhat.com/errata/RHSA-2026:66451
- https://access.redhat.com/errata/RHSA-2026:67956
- https://access.redhat.com/errata/RHSA-2026:70636
- https://access.redhat.com/errata/RHSA-2026:71403
- https://access.redhat.com/errata/RHSA-2026:71404
- https://access.redhat.com/errata/RHSA-2026:71405
- https://access.redhat.com/errata/RHSA-2026:72394
- https://access.redhat.com/errata/RHSA-2026:72395
- https://access.redhat.com/errata/RHSA-2026:72399
- https://access.redhat.com/errata/RHSA-2026:72470
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.