CVEfocus › CVE database › CVE-2026-16118

CVE-2026-16118Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in…

CVSS 7.1 HighEPSS 0.2% (higher than 8% of CVEs)Published 2026-07-17Updated 2026-11-25Assigner: redhat

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.

CWE-122

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

48Fixed
5Fix pending
15Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04glib2.0Fixed2.88.0-1ubuntu0.1UBUNTU-CVE-2026-16118
Ubuntu 24.04glib2.0Fixed2.80.0-6ubuntu3.9UBUNTU-CVE-2026-16118
Ubuntu 22.04glib2.0Fixed2.72.4-0ubuntu2.10UBUNTU-CVE-2026-16118
Ubuntu 20.04glib2.0Fix pending2.64.6-1~ubuntu20.04.9+esm2 (Ubuntu Pro)UBUNTU-CVE-2026-16118
Ubuntu 18.04glib2.0Fix pending2.56.4-0ubuntu0.18.04.9+esm6 (Ubuntu Pro)UBUNTU-CVE-2026-16118
Ubuntu 16.04glib2.0Fix pending2.48.2-0ubuntu4.8+esm6 (Ubuntu Pro)UBUNTU-CVE-2026-16118
Ubuntu 14.04glib2.0Fix pending2.40.2-0ubuntu1.1+esm8 (Ubuntu Pro)UBUNTU-CVE-2026-16118
Debian 14glib2.0Fixed2.88.3-3DEBIAN-CVE-2026-16118
Debian 13glib2.0Fixed2.84.4-3~deb13u5DEBIAN-CVE-2026-16118
Debian 12glib2.0Fix pendingDEBIAN-CVE-2026-16118
Red Hat Enterprise Linux 10glib2Fixed0:2.80.4-12.el10_2.22RHSA-2026:98557
Red Hat Enterprise Linux 10glib2-develFixed0:2.80.4-12.el10_2.22RHSA-2026:98557
Red Hat Enterprise Linux 10glib2-docFixed0:2.80.4-12.el10_2.22RHSA-2026:98557
Red Hat Enterprise Linux 10glib2-staticFixed0:2.80.4-12.el10_2.22RHSA-2026:98557
Red Hat Enterprise Linux 10glib2-testsFixed0:2.80.4-12.el10_2.22RHSA-2026:98557
Red Hat Enterprise Linux 9glib2Fixed0:2.68.4-29.el9_9.1RHSA-2026:64800
Red Hat Enterprise Linux 9glib2-develFixed0:2.68.4-29.el9_9.1RHSA-2026:64800
Red Hat Enterprise Linux 9glib2-docFixed0:2.68.4-29.el9_9.1RHSA-2026:64800
Red Hat Enterprise Linux 9glib2-staticFixed0:2.68.4-19.el9_8.10RHSA-2026:98452
Red Hat Enterprise Linux 9glib2-testsFixed0:2.68.4-29.el9_9.1RHSA-2026:64800
Red Hat Enterprise Linux 9webkit2gtk3Will not fix
Will not fix
Red Hat Enterprise Linux 9webkit2gtk3-develWill not fix
Will not fix
Red Hat Enterprise Linux 9webkit2gtk3-jscWill not fix
Will not fix
Red Hat Enterprise Linux 9webkit2gtk3-jsc-develWill not fix
Will not fix
Red Hat Enterprise Linux 8glib2Fixed0:2.56.4-178.el8_10RHSA-2026:66451
Red Hat Enterprise Linux 8glib2-develFixed0:2.56.4-178.el8_10RHSA-2026:66451
Red Hat Enterprise Linux 8glib2-docFixed0:2.56.4-178.el8_10RHSA-2026:66451
Red Hat Enterprise Linux 8glib2-famFixed0:2.56.4-178.el8_10RHSA-2026:66451
Red Hat Enterprise Linux 8glib2-staticFixed0:2.56.4-178.el8_10RHSA-2026:66451
Red Hat Enterprise Linux 8glib2-testsFixed0:2.56.4-178.el8_10RHSA-2026:66451
Red Hat Enterprise Linux 8webkit2gtk3Will not fix
Will not fix
Red Hat Enterprise Linux 8webkit2gtk3-develWill not fix
Will not fix
Red Hat Enterprise Linux 8webkit2gtk3-jscWill not fix
Will not fix
Red Hat Enterprise Linux 8webkit2gtk3-jsc-develWill not fix
Will not fix
Red Hat Enterprise Linux 8webkit2gtk3-plugin-process-gtk2Will not fix
Will not fix
Red Hat Enterprise Linux 7webkitgtk4Will not fix
Will not fix
Red Hat Enterprise Linux 7webkitgtk4-develWill not fix
Will not fix
Red Hat Enterprise Linux 7webkitgtk4-docWill not fix
Will not fix
Red Hat Enterprise Linux 7webkitgtk4-jscWill not fix
Will not fix
Red Hat Enterprise Linux 7webkitgtk4-jsc-develWill not fix
Will not fix
Red Hat Enterprise Linux 7webkitgtk4-plugin-process-gtk2Will not fix
Will not fix
AlmaLinux 10glib2Fixed2.80.4-22.el10_3.23ALSA-2026:64799
AlmaLinux 10glib2-develFixed2.80.4-22.el10_3.23ALSA-2026:64799
AlmaLinux 10glib2-docFixed2.80.4-22.el10_3.23ALSA-2026:64799
AlmaLinux 10glib2-staticFixed2.80.4-22.el10_3.23ALSA-2026:64799
AlmaLinux 10glib2-testsFixed2.80.4-22.el10_3.23ALSA-2026:64799
AlmaLinux 9glib2Fixed2.68.4-29.el9_9.1ALSA-2026:64800
AlmaLinux 9glib2-develFixed2.68.4-29.el9_9.1ALSA-2026:64800
AlmaLinux 9glib2-docFixed2.68.4-19.el9_8.10ALSA-2026:98452
AlmaLinux 9glib2-staticFixed2.68.4-29.el9_9.1ALSA-2026:64800
AlmaLinux 9glib2-testsFixed2.68.4-29.el9_9.1ALSA-2026:64800
AlmaLinux 8glib2Fixed2.56.4-178.el8_10ALSA-2026:66451
AlmaLinux 8glib2-develFixed2.56.4-178.el8_10ALSA-2026:66451
AlmaLinux 8glib2-docFixed2.56.4-178.el8_10ALSA-2026:66451
AlmaLinux 8glib2-famFixed2.56.4-178.el8_10ALSA-2026:66451
AlmaLinux 8glib2-staticFixed2.56.4-178.el8_10ALSA-2026:66451
AlmaLinux 8glib2-testsFixed2.56.4-178.el8_10ALSA-2026:66451
Rocky Linux 10glib2Fixed0:2.80.4-12.el10_2.22RLSA-2026:98557
Rocky Linux 10glib2-develFixed0:2.80.4-22.el10_3.23RLSA-2026:98557
Rocky Linux 10glib2-docFixed0:2.80.4-22.el10_3.23RLSA-2026:98557
Rocky Linux 10glib2-staticFixed0:2.80.4-22.el10_3.23RLSA-2026:98557
Rocky Linux 10glib2-testsFixed0:2.80.4-22.el10_3.23RLSA-2026:98557
Rocky Linux 9glib2Fixed0:2.68.4-29.el9_9.1RLSA-2026:98452
Rocky Linux 9glib2-develFixed0:2.68.4-29.el9_9.1RLSA-2026:98452
Rocky Linux 9glib2-docFixed0:2.68.4-29.el9_9.1RLSA-2026:98452
Rocky Linux 9glib2-staticFixed0:2.68.4-29.el9_9.1RLSA-2026:98452
Rocky Linux 9glib2-testsFixed0:2.68.4-29.el9_9.1RLSA-2026:98452
Rocky Linux 8glib2Fixed0:2.56.4-178.el8_10RLSA-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.

Workaround: Do not install a MIME magic file or content from untrusted sources.

Vendor advisories:

References

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.