Skip to content
7.1 High

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.

CVSS 3.1 detail

Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Exploitable with local access to the machine, without an account and if a user takes an action; an attacker can seriously compromise confidentiality, integrity or availability.

Attack vector
Local
Attack complexity
Low
Privileges required
None
Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Affected products and versions

Product Affected versions Fixed in
Red Hat Enterprise Linux 10 Versions not published
Red Hat Enterprise Linux 7 Versions not published
Red Hat Enterprise Linux 8 Versions not published
Red Hat Enterprise Linux 9 Versions not published
xdgmime Versions not published
Red Hat Update Infrastructure 5 1789478095 earliest → < 1789478095 1789478095
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions Versions not published
Red Hat Enterprise Linux 10.0 Extended Update Support Versions not published
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions not published
Show the 13 other branches
Product Affected versions Fixed in
Red Hat Enterprise Linux 9.6 Extended Update Support Versions not published
Cert Manager support for Red Hat OpenShift release 1.20 1790598593 earliest → < 1790598593 1790598593
Red Hat AI Inference Server 3.2 1790621713 earliest → < 1790621713 1790621713
Red Hat OpenShift AI 3.0 1790276974 earliest → < 1790276974 1790276974
Red Hat OpenShift AI 3.3 1791232257 earliest → < 1791232257 1791232257
Red Hat OpenShift AI 3.2 1790703494 earliest → < 1790703494 1790703494
Red Hat OpenShift AI 3.4 1790703545 earliest → < 1790703545 1790703545
Red Hat OpenShift AI 3.5 1790703706 earliest → < 1790703706 1790703706
Red Hat Cost Management On-Premise 1 1791460851 earliest → < 1791460851 1791460851
Red Hat AI Inference Server 3.5 1791473614 earliest → < 1791473614 1791473614
Cert Manager support for Red Hat OpenShift release 1.17 1791970484 earliest → < 1791970484 1791970484
Cert Manager support for Red Hat OpenShift release 1.18 1791966259 earliest → < 1791966259 1791966259
Red Hat Enterprise Linux AI 3.5 1793135863 earliest → < 1793135863 1793135863

References

Timeline

  1. Published
  2. Last modified
The 1454 CVEs of Red Hat Enterprise Linux 10 →
Track this CVE