# CVE-2026-16118: Xdgmime: heap-based buffer overflow in \_xdg\_mime\_magic\_parse\_magic\_line() in xdgmimemagic.c

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-17 · Modified: 2026-12-02
- Aliases: RHSA-2026:64799, RHSA-2026:64800, RHSA-2026:66451, RHSA-2026:70636, RHSA-2026:71403, RHSA-2026:71404, RHSA-2026:71405, UBUNTU-CVE-2026-16118, DEBIAN-CVE-2026-16118, RHSA-2026:98452, RHSA-2026:98557, RHSA-2026:99864, RHSA-2026:100504, RHSA-2026:102189, RHSA-2026:103506
- Record: https://cvemate.com/vulnerability/CVE-2026-16118 · JSON: https://cvemate.com/vulnerability/CVE-2026-16118/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- EPSS: 0.277%, percentile 21.554%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian glib2.0 (Debian): All versions (No fix recorded) \| \< 2.84.4-3~deb13u5 \| \< 2.88.3-3
- ubuntu glib2.0 (Ubuntu): \< 2.40.2-0ubuntu1.1+esm8 \| \< 2.48.2-0ubuntu4.8+esm6 \| \< 2.56.4-0ubuntu0.18.04.9+esm6 \| \< 2.64.6-1~ubuntu20.04.9+esm2 \| \< 2.72.4-0ubuntu2.10 \| \< 2.80.0-6ubuntu3.9 \| \< 2.88.0-1ubuntu0.1
- redhat glib2 (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.56.1-13.el7\_9.2 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-debuginfo (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.56.1-13.el7\_9.2 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-debugsource (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-devel (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.56.1-13.el7\_9.2 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-devel-debuginfo (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-doc (Red Hat): \< 0:2.56.1-13.el7\_9.2 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23
- redhat glib2-fam (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.56.1-13.el7\_9.2 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-fam-debuginfo (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-static (Red Hat): \< 0:2.56.1-13.el7\_9.2 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23
- redhat glib2-tests (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.56.1-13.el7\_9.2 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23 \| \< 0:2.56.4-158.el8\_6.8
- redhat glib2-tests-debuginfo (Red Hat): \< 0:2.56.4-10.el8\_4.8 \| \< 0:2.56.4-165.el8\_8.3 \| \< 0:2.80.4-12.el10\_2.22 \| \< 0:2.68.4-19.el9\_8.10 \| \< 0:2.56.4-178.el8\_10 \| \< 0:2.68.4-14.el9\_4.9 \| \< 0:2.68.4-16.el9\_6.8 \| \< 0:2.80.4-4.el10\_0.18 \| \< 0:2.68.4-7.el9\_2.8 \| \< 0:2.68.4-29.el9\_9.1 \| \< 0:2.80.4-22.el10\_3.23 \| \< 0:2.56.4-158.el8\_6.8

## References (first 20 of 104)

- <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>
- <https://access.redhat.com/errata/RHSA-2026:72475>
- <https://access.redhat.com/errata/RHSA-2026:72476>
- <https://access.redhat.com/errata/RHSA-2026:72502>
- <https://access.redhat.com/errata/RHSA-2026:73859>
- <https://access.redhat.com/errata/RHSA-2026:73909>
- <https://access.redhat.com/errata/RHSA-2026:73929>
- <https://access.redhat.com/errata/RHSA-2026:73930>
- <https://access.redhat.com/errata/RHSA-2026:73959>

---

Data as of 2026-12-05T06:21:55.334Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
