Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xdg | xdgmime | — | — |
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | — | — |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | — | — |
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | — | — |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | — | — |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.17 | — | — |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.18 | — | — |
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.20 | — | — |
| Red Hat | Red Hat AI Inference Server 3.2 | — | — |
| Red Hat | Red Hat AI Inference Server 3.5 | — | — |
| Red Hat | Red Hat Cost Management On-Premise 1 | — | — |
| Red Hat | Red Hat Enterprise Linux AI 3.5 | — | — |
| Red Hat | Red Hat OpenShift AI 3.0 | — | — |
| Red Hat | Red Hat OpenShift AI 3.2 | — | — |
| Red Hat | Red Hat OpenShift AI 3.3 | — | — |
| Red Hat | Red Hat OpenShift AI 3.4 | — | — |
| Red Hat | Red Hat OpenShift AI 3.5 | — | — |
| Red Hat | Red Hat Update Infrastructure 5 | — | — |
| Red Hat | Red Hat Enterprise Linux 7 | — | — |
| Red Hat | Red Hat OpenShift AI (RHOAI) | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | glib2.0 | 2.88.3-3 | — |
| Debian 13 | glib2.0 | 2.84.4-3~deb13u5 | — |
| Debian 12 | glib2.0 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | glib2.0 | 2.88.0-1ubuntu0.1 | USN-8794-1 |
| Ubuntu 24.04 LTS | glib2.0 | 2.80.0-6ubuntu3.9 | USN-8794-1 |
| Ubuntu 22.04 LTS | glib2.0 | 2.72.4-0ubuntu2.10 | USN-8794-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | glib2.0 | 2.64.6-1~ubuntu20.04.9+esm2 | USN-8794-1 |
| Ubuntu Pro 18.04 LTS | glib2.0 | 2.56.4-0ubuntu0.18.04.9+esm6 | USN-8794-1 |
| Ubuntu Pro 16.04 LTS | glib2.0 | 2.48.2-0ubuntu4.8+esm6 | USN-8794-1 |
| Ubuntu Pro 14.04 LTS | glib2.0 | 2.40.2-0ubuntu1.1+esm8 | USN-8794-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | glib2 +4 | 2.80.4-12.el10_2.22 | RHSA-2026:98557, RHSA-2026:64799 |
| RHEL 9 | glib2 +4 | 2.68.4-19.el9_8.10 | RHSA-2026:98452, RHSA-2026:64800 |
| RHEL 8 | glib2 +5 | 2.56.4-178.el8_10 | RHSA-2026:66451 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10.0 EUS | glib2 +4 | 2.80.4-4.el10_0.18 | RHSA-2026:71404 |
| RHEL 9.6 EUS | glib2 +4 | 2.68.4-16.el9_6.8 | RHSA-2026:71403 |
| RHEL 9.4 E4S | glib2 +3 | 2.68.4-14.el9_4.9 | RHSA-2026:70636 |
| RHEL 9.2 E4S | glib2 +3 | 2.68.4-7.el9_2.8 | RHSA-2026:71405 |
| RHEL 8.6 EUS Long Life | glib2 +3 | 2.56.4-158.el8_6.8 | RHSA-2026:99864 |
| RHEL 8.6 AUS | glib2 +3 | 2.56.4-158.el8_6.8 | RHSA-2026:99864 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | glib2 +4 | 2.80.4-12.el10_2.22 | ALSA-2026:64799 |
| AlmaLinux 9 | glib2 +4 | 2.68.4-19.el9_8.10 | ALSA-2026:64800 |
| AlmaLinux 8 | glib2 +5 | 2.56.4-178.el8_10 | ALSA-2026:66451 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | glib2 | 2.80.4-12.el10_2.22 | RLSA-2026:98557, RLSA-2026:64799 |
| Rocky Linux 10 | glib2-doc +3 | 2.80.4-22.el10_3.23 | RLSA-2026:98557 |
| Rocky Linux 9 | glib2 | 2.68.4-19.el9_8.10 | RLSA-2026:98452, RLSA-2026:64800 |
| Rocky Linux 9 | glib2-doc +3 | 2.68.4-29.el9_9.1 | RLSA-2026:98452 |
| Rocky Linux 8 | glib2 | 2.56.4-178.el8_10 | RLSA-2026:66451 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | glib2 +4 | 2.82.2-771.amzn2023 | ALAS2023-2026-2028 |
| Amazon Linux 2 | glib2 +5 | 2.56.1-9.amzn2.0.15 | ALAS2-2026-3850 |
| Amazon Linux 2 | webkitgtk4 +3 | 2.52.5-1.amzn2 | ALAS2-2026-3843 |
Advisories 23
- RHSA-2026:99864 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:98557 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:98452 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:71404 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RLSA-2026:98557 Moderate: glib2 security update Rocky Linux Security Advisories · Nov 13, 2026
- RLSA-2026:98452 Moderate: glib2 security update Rocky Linux Security Advisories · Nov 13, 2026
- WID-SEC-2026-3229 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- ALSA-2026:64800 Moderate: glib2 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:64799 Moderate: glib2 security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:66451 Moderate: glib2 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:71405 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:71403 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:70636 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:66451 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:64799 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:64800 Red Hat Security Advisory: glib2 security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- USN-8794-1 glib2.0 vulnerabilities Ubuntu Security Notices (USN) · Sep 22, 2026
- RLSA-2026:66451 Moderate: glib2 security update Rocky Linux Security Advisories · Sep 11, 2026
- RLSA-2026:64800 Moderate: glib2 security update Rocky Linux Security Advisories · Sep 9, 2026
- RLSA-2026:64799 Moderate: glib2 security update Rocky Linux Security Advisories · Sep 9, 2026
- ALAS2-2026-3843 Important: webkitgtk4 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Aug 4, 2026
- ALAS2-2026-3850 Important: glib2 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Aug 4, 2026
- ALAS2023-2026-2028 Important: glib2 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 4, 2026
References
- RHSA-2026:64799 vendor-advisory
- RHSA-2026:64800 vendor-advisory
- RHSA-2026:66451 vendor-advisory
- RHSA-2026:67956 vendor-advisory
- RHSA-2026:70636 vendor-advisory
- RHSA-2026:71403 vendor-advisory
- RHSA-2026:71404 vendor-advisory
- RHSA-2026:71405 vendor-advisory
- RHSA-2026:72394 vendor-advisory
- RHSA-2026:72395 vendor-advisory
- RHSA-2026:72399 vendor-advisory
- RHSA-2026:72470 vendor-advisory
- RHSA-2026:72475 vendor-advisory
- RHSA-2026:72476 vendor-advisory
- RHSA-2026:72502 vendor-advisory
- RHSA-2026:73859 vendor-advisory
- RHSA-2026:73909 vendor-advisory
- RHSA-2026:73929 vendor-advisory
- RHSA-2026:73930 vendor-advisory
- RHSA-2026:73959 vendor-advisory
- RHSA-2026:73960 vendor-advisory
- RHSA-2026:73961 vendor-advisory
- RHSA-2026:73962 vendor-advisory
- RHSA-2026:74359 vendor-advisory
- RHSA-2026:74360 vendor-advisory
- RHSA-2026:74361 vendor-advisory
- RHSA-2026:74362 vendor-advisory
- RHSA-2026:74363 vendor-advisory
- RHSA-2026:74364 vendor-advisory
- RHSA-2026:74365 vendor-advisory
- RHSA-2026:74450 vendor-advisory
- RHSA-2026:74458 vendor-advisory
- RHSA-2026:74459 vendor-advisory
- RHSA-2026:74460 vendor-advisory
- RHSA-2026:74461 vendor-advisory
- RHSA-2026:74462 vendor-advisory
- RHSA-2026:74463 vendor-advisory
- RHSA-2026:74674 vendor-advisory
- RHSA-2026:74677 vendor-advisory
- RHSA-2026:74678 vendor-advisory
- RHSA-2026:74679 vendor-advisory
- RHSA-2026:74681 vendor-advisory
- RHSA-2026:74683 vendor-advisory
- RHSA-2026:74685 vendor-advisory
- RHSA-2026:74687 vendor-advisory
- RHSA-2026:74688 vendor-advisory
- RHSA-2026:74771 vendor-advisory
- RHSA-2026:75652 vendor-advisory
- RHSA-2026:75654 vendor-advisory
- RHSA-2026:75655 vendor-advisory
- RHSA-2026:75657 vendor-advisory
- RHSA-2026:75658 vendor-advisory
- RHSA-2026:75659 vendor-advisory
- RHSA-2026:75660 vendor-advisory
- RHSA-2026:76042 vendor-advisory
- RHSA-2026:79357 vendor-advisory
- RHSA-2026:80756 vendor-advisory
- RHSA-2026:81127 vendor-advisory
- RHSA-2026:82059 vendor-advisory
- RHSA-2026:82061 vendor-advisory