Xdgmime: heap-based buffer overflow in _xdg_mime_magic_parse_magic_line() in xdgmimemagic.c (xdg xdgmime)

CVE-2026-16118
HIGH 7.1

En bref

Source
NVD
EPSS
EPSS 0.22 % · centile 13 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
redhat
Statut NVD
Awaiting Analysis

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.

Faiblesses (CWE)

  • CWE-122 — Débordement de tampon sur le tas

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:Hredhat
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:HNVD · secalert@redhat.com (Secondary)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
xdg · xdgmime
Red Hat · Red Hat Enterprise Linux 10unaffected 0:2.80.4-12.el10_2.22 < *
Red Hat · Red Hat Enterprise Linux 10.0 Extended Update Supportunaffected 0:2.80.4-4.el10_0.18 < *
Red Hat · Red Hat Enterprise Linux 8unaffected 0:2.56.4-178.el8_10 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:2.68.4-19.el9_8.10 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:2.68.4-19.el9_8.10 < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsunaffected 0:2.68.4-7.el9_2.8 < *
Red Hat · Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsunaffected 0:2.68.4-14.el9_4.9 < *
Red Hat · Red Hat Enterprise Linux 9.6 Extended Update Supportunaffected 0:2.68.4-16.el9_6.8 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791371080 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791371069 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791788287 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791378395 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.17unaffected 1791970484 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791459707 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791459711 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791459759 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.18unaffected 1789029076 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.18unaffected 1791966259 < *
Red Hat · Cert Manager support for Red Hat OpenShift release 1.20unaffected 1790223279 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD