What’s Vulnerable › Vulnerabilities

CVE-2026-16118: Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in xdgmimemagic.c

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

How to fix

Upgrade to a fixed version: Red Hat Cert Manager support for Red Hat OpenShift release 1.17 1791371080; Red Hat Cert Manager support for Red Hat OpenShift release 1.18 1791459707; Red Hat Cert Manager support for Red Hat OpenShift release 1.20 1790223279; Red Hat AI Inference Server 3.2 1790621714; Red Hat AI Inference Server 3.5 1791425869; Red Hat Cost Management On-Premise 1 1791460851; Red Hat Enterprise Linux 10 0:2.80.4-12.el10_2.22; Red Hat Enterprise Linux 10.0 Extended Update Support 0:2.80.4-4.el10_0.18; Red Hat Enterprise Linux 8 0:2.56.4-178.el8_10; Red Hat Enterprise Linux 9 0:2.68.4-19.el9_8.10; Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 0:2.68.4-7.el9_2.8; Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions 0:2.68.4-14.el9_4.9. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-16118 or the next vulnerability affects your stack