Skip to content
VulniPulse
Advisory severityHigh7.1Vendor: MediumRed Hat Linux

High [CVE-2026-16118] heap-based buffer overflow in _xdg_mime_magic_parse_magic_line in xdgmimemagic.c

This high-severity Red Hat Linux advisory covers CVE-2026-16118 affecting Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2026-16118 Source published Source updated

VulniPulse record published Record updated

Affected products & platforms
Red Hat LinuxRed Hat Enterprise Linux
Open source advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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. Also, only little-endian systems are vulnerable.

Due to these reasons, this issue has been rated with a moderate severity. Red Hat severity: Moderate — CVSS 7.1 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H).

Weakness: CWE-122.

Affected Red Hat products: Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 10.0 Extended Update Support; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions; Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions; Red Hat Enterprise Linux 9.6 Extended Update Support; Red Hat Update Infrastructure 5; Red Hat Enterprise Linux 7.

Will not fix / out of support: Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9.

Affected versions

No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.

Official advisory · high-confidence parse· fetched 21 days ago·verify at source

Fixed versions
  • glib2-0:2.80.4-12.el10_2.22
  • glib2-0:2.80.4-4.el10_0.18
  • glib2-0:2.56.4-178.el8_10
  • glib2-0:2.68.4-19.el9_8.10
  • glib2-0:2.68.4-7.el9_2.8
  • glib2-0:2.68.4-14.el9_4.9
  • glib2-0:2.68.4-16.el9_6.8
  • rhui5/cds-kubernetes-rhel9:1789479916
  • rhui5/cds-rhel9:1789479900
  • rhui5/haproxy-rhel9:1789479891
  • rhui5/installer-rhel9:1789482961
  • rhui5/rhua-rhel9:1789478095
  • RHSA-2026:64799
  • RHSA-2026:71404
  • RHSA-2026:66451
  • RHSA-2026:64800
  • RHSA-2026:71405
  • RHSA-2026:70636
  • RHSA-2026:71403
  • RHSA-2026:67956

Official advisory · high-confidence parse· fetched 21 days ago·verify at source

Mitigation checklist

Recommended fix / mitigation
  • Do not install a MIME magic file or content from untrusted sources.

Official advisory · high-confidence parse· fetched 21 days ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.