What’s Vulnerable › Vulnerabilities
CVE-2026-16118: Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in xdgmimemagic.c
- Severity: high (CVSS 7.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-17 · updated 2026-10-29
- Weakness: CWE-122
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
- Red Hat Cert Manager support for Red Hat OpenShift release 1.17: all versions — fixed in 1791371080
- Red Hat Cert Manager support for Red Hat OpenShift release 1.18: all versions — fixed in 1791459707
- Red Hat Cert Manager support for Red Hat OpenShift release 1.20: all versions — fixed in 1790223279
- Red Hat AI Inference Server 3.2: all versions — fixed in 1790621714
- Red Hat AI Inference Server 3.5: all versions — fixed in 1791425869
- Red Hat Cost Management On-Premise 1: all versions — fixed in 1791460851
- Red Hat Enterprise Linux 10: all versions — fixed in 0:2.80.4-12.el10_2.22
- Red Hat Enterprise Linux 10.0 Extended Update Support: all versions — fixed in 0:2.80.4-4.el10_0.18
- Red Hat Enterprise Linux 7: all versions
- Red Hat Enterprise Linux 8: all versions — fixed in 0:2.56.4-178.el8_10
- Red Hat Enterprise Linux 9: all versions — fixed in 0:2.68.4-19.el9_8.10
- Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions: all versions — fixed in 0:2.68.4-7.el9_2.8
- Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions: all versions — fixed in 0:2.68.4-14.el9_4.9
- Red Hat Enterprise Linux 9.6 Extended Update Support: all versions — fixed in 0:2.68.4-16.el9_6.8
- Red Hat Enterprise Linux AI 3.5: all versions — fixed in 1793206758
- Red Hat OpenShift AI 3.0: all versions — fixed in 1790276886
- Red Hat OpenShift AI 3.2: all versions — fixed in 1790703497
- Red Hat OpenShift AI 3.3: all versions — fixed in 1790703615
- Red Hat OpenShift AI 3.4: all versions — fixed in 1790703542
- Red Hat OpenShift AI 3.5: all versions — fixed in 1790703552
- Red Hat Update Infrastructure 5: all versions — fixed in 1789479916
- xdgmime: all versions
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
- 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
Get alerted when CVE-2026-16118 or the next vulnerability affects your stack