cve.bz

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

7.1 highEPSS 0.3%Fix available

High (7.1). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 21st percentile. Scored 2026-11-19. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-07-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:2.80.4-12.el10_2.22
  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:2.80.4-22.el10_3.23
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support: fixed in 0:2.80.4-4.el10_0.18
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:2.56.4-178.el8_10
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:2.56.4-158.el8_6.8
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On: fixed in 0:2.56.4-158.el8_6.8
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:2.68.4-19.el9_8.10
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:2.68.4-29.el9_9.1
  • Debian, Ubuntu, Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-16118 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-16118?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-16118?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-16118 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:2.80.4-12.el10_2.22
Red Hat Enterprise Linux 100:2.80.4-22.el10_3.23
Red Hat Enterprise Linux 10.0 Extended Update Support0:2.80.4-4.el10_0.18
Red Hat Enterprise Linux 80:2.56.4-178.el8_10
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:2.56.4-158.el8_6.8
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On0:2.56.4-158.el8_6.8
Red Hat Enterprise Linux 90:2.68.4-19.el9_8.10
Red Hat Enterprise Linux 90:2.68.4-29.el9_9.1
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:2.68.4-7.el9_2.8
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions0:2.68.4-14.el9_4.9
Red Hat Enterprise Linux 9.6 Extended Update Support0:2.68.4-16.el9_6.8
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791371080
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791371069
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791788287
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791378395
Red Hat Cert Manager support for Red Hat OpenShift release 1.171791970484
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791459707
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791459711
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791459759
Red Hat Cert Manager support for Red Hat OpenShift release 1.181789029076
Red Hat Cert Manager support for Red Hat OpenShift release 1.181791966259
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790223279
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790223719
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790272426
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790589998
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790589912
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790589914
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790589855
Red Hat Cert Manager support for Red Hat OpenShift release 1.201790598593
Red Hat AI Inference Server 3.21790621714
Red Hat AI Inference Server 3.21790621718
Red Hat AI Inference Server 3.21790621713
Red Hat AI Inference Server 3.51791425869
Red Hat AI Inference Server 3.51791427182
Red Hat AI Inference Server 3.51791803821
Red Hat AI Inference Server 3.51791473631
Red Hat AI Inference Server 3.51791818357
Red Hat AI Inference Server 3.51791473614
Red Hat Cost Management On-Premise 11791460851
Red Hat Enterprise Linux AI 3.51793206758
Red Hat Enterprise Linux AI 3.51793194817
Red Hat Enterprise Linux AI 3.51793194815
Red Hat Enterprise Linux AI 3.51793194834
Red Hat Enterprise Linux AI 3.51793135861
Red Hat Enterprise Linux AI 3.51793135863
Red Hat OpenShift AI 3.01790276886
Red Hat OpenShift AI 3.01790276884
Red Hat OpenShift AI 3.01790277045
Red Hat OpenShift AI 3.01790276889
Red Hat OpenShift AI 3.01790276974
Red Hat OpenShift AI 3.21790703497
Red Hat OpenShift AI 3.21790703506
Red Hat OpenShift AI 3.21790703590
Red Hat OpenShift AI 3.21790703568
Red Hat OpenShift AI 3.21790703586
Red Hat OpenShift AI 3.21790703494
Red Hat OpenShift AI 3.31790703615
Red Hat OpenShift AI 3.31790703516
Red Hat OpenShift AI 3.31790703524
Red Hat OpenShift AI 3.31790703601
Red Hat OpenShift AI 3.31790703608
Red Hat OpenShift AI 3.31790703579
Red Hat OpenShift AI 3.31791231820
Red Hat OpenShift AI 3.31791232257
Red Hat OpenShift AI 3.41790703542
Red Hat OpenShift AI 3.41790703539
Red Hat OpenShift AI 3.41790703553
Red Hat OpenShift AI 3.41790703631
Red Hat OpenShift AI 3.41790703597
Red Hat OpenShift AI 3.41790703641
Red Hat OpenShift AI 3.41790703630
Red Hat OpenShift AI 3.41790703541
Red Hat OpenShift AI 3.41790703545
Red Hat OpenShift AI 3.51790703552
Red Hat OpenShift AI 3.51790703656
Red Hat OpenShift AI 3.51790703557
Red Hat OpenShift AI 3.51790703707
Red Hat OpenShift AI 3.51790703645
Red Hat OpenShift AI 3.51790703554
Red Hat OpenShift AI 3.51790703630
Red Hat OpenShift AI 3.51790703706
Red Hat Update Infrastructure 51789479916
Red Hat Update Infrastructure 51789479900
Red Hat Update Infrastructure 51789479891
Red Hat Update Infrastructure 51789482961
Red Hat Update Infrastructure 51789478095

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12glib2.0no fix listedDEBIAN-CVE-2026-16118
Debian13glib2.02.84.4-3~deb13u5DEBIAN-CVE-2026-16118
Debian14glib2.02.88.3-3DEBIAN-CVE-2026-16118
Ubuntu22.04:LTSglib2.02.72.4-0ubuntu2.10UBUNTU-CVE-2026-16118 USN-8794-1
Ubuntu24.04:LTSglib2.02.80.0-6ubuntu3.9UBUNTU-CVE-2026-16118 USN-8794-1
Ubuntu26.04:LTSglib2.02.88.0-1ubuntu0.1UBUNTU-CVE-2026-16118 USN-8794-1
UbuntuPro:14.04:LTSglib2.02.40.2-0ubuntu1.1+esm8UBUNTU-CVE-2026-16118 USN-8794-1
UbuntuPro:16.04:LTSglib2.02.48.2-0ubuntu4.8+esm6UBUNTU-CVE-2026-16118 USN-8794-1
UbuntuPro:18.04:LTSglib2.02.56.4-0ubuntu0.18.04.9+esm6UBUNTU-CVE-2026-16118 USN-8794-1
UbuntuPro:20.04:LTSglib2.02.64.6-1~ubuntu20.04.9+esm2UBUNTU-CVE-2026-16118 USN-8794-1
Red Hatenterprise_linux:8::baseosglib2, glib2-fam, glib2-devel and 6 more0:2.56.4-178.el8_10RHSA-2026:66451
Red Hatenterprise_linux:8::crbglib2-doc, glib2-static, glib2-debuginfo and 4 more0:2.56.4-178.el8_10RHSA-2026:66451
Red Hatenterprise_linux:9::appstreamglib2-doc, glib2-devel, glib2-tests and 4 more0:2.68.4-19.el9_8.10RHSA-2026:64800
Red Hatenterprise_linux:9::appstreamglib2-doc, glib2-devel, glib2-tests and 4 more0:2.68.4-29.el9_9.1RHSA-2026:98452
Red Hatenterprise_linux:9::baseosglib2, glib2-debuginfo, glib2-debugsource and 2 more0:2.68.4-19.el9_8.10RHSA-2026:64800
Red Hatenterprise_linux:9::baseosglib2, glib2-debuginfo, glib2-debugsource and 2 more0:2.68.4-29.el9_9.1RHSA-2026:98452
Red Hatenterprise_linux:9::crbglib2-static, glib2-debuginfo, glib2-debugsource and 2 more0:2.68.4-19.el9_8.10RHSA-2026:64800
Red Hatenterprise_linux:9::crbglib2-static, glib2-debuginfo, glib2-debugsource and 2 more0:2.68.4-29.el9_9.1RHSA-2026:98452
Red Hatenterprise_linux:10.2glib2, glib2-doc, glib2-devel and 6 more0:2.80.4-12.el10_2.22RHSA-2026:64799
Red Hatenterprise_linux:10.3glib2, glib2-doc, glib2-devel and 6 more0:2.80.4-22.el10_3.23RHSA-2026:98557
Red Hatenterprise_linux_eus:10.0glib2, glib2-doc, glib2-devel and 6 more0:2.80.4-4.el10_0.18RHSA-2026:71404
Red Hatrhel_aus:8.6::baseos, rhel_eus_long_life:8.6::baseosglib2, glib2-fam, glib2-devel and 6 more0:2.56.4-158.el8_6.8RHSA-2026:99864
7 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8glib2, glib2-doc, glib2-fam and 3 more2.56.4-178.el8_10ALSA-2026:66451
AlmaLinux9glib2, glib2-doc, glib2-devel and 2 more2.68.4-19.el9_8.10ALSA-2026:64800
AlmaLinux9glib2, glib2-doc, glib2-devel and 2 more2.68.4-29.el9_9.1ALSA-2026:98452
AlmaLinux10glib2, glib2-doc, glib2-devel and 2 more2.80.4-12.el10_2.22ALSA-2026:64799
AlmaLinux10glib2, glib2-doc, glib2-devel and 2 more2.80.4-22.el10_3.23ALSA-2026:98557
Rocky Linux8glib20:2.56.4-178.el8_10RLSA-2026:66451
Rocky Linux9glib20:2.68.4-19.el9_8.10RLSA-2026:64800
Rocky Linux9glib2, glib2-doc, glib2-devel and 6 more0:2.68.4-29.el9_9.1RLSA-2026:98452
Rocky Linux10glib20:2.80.4-12.el10_2.22RLSA-2026:64799
Rocky Linux10glib2, glib2-doc, glib2-devel and 6 more0:2.80.4-22.el10_3.23RLSA-2026:98557

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

To exploit this issue, an attacker must convince a user to install a malicious MIME magic file in a user-writable XDG data location (e.g., in the $XDG_DATA_HOME/mime/magic path) and process it with an application performing MIME type detection, limiting its exposure. Also, only little-endian systems are vulnerable. Due to these reasons, this issue has been rated with a moderate severity.

Red Hat's mitigation

Do not install a MIME magic file or content from untrusted sources.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10glib2-0:2.80.4-12.el10_2.22Fixed 2026-09-08RHSA-2026:64799
Red Hat Enterprise Linux 10glib2-0:2.80.4-22.el10_3.23Fixed 2026-11-11RHSA-2026:98557
Red Hat Enterprise Linux 10.0 Extended Update Supportglib2-0:2.80.4-4.el10_0.18Fixed 2026-09-24RHSA-2026:71404
Red Hat Enterprise Linux 8glib2-0:2.56.4-178.el8_10Fixed 2026-09-11RHSA-2026:66451
Red Hat Enterprise Linux 9glib2-0:2.68.4-19.el9_8.10Fixed 2026-09-08RHSA-2026:64800
Red Hat Enterprise Linux 9glib2-0:2.68.4-29.el9_9.1Fixed 2026-11-11RHSA-2026:98452
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsglib2-0:2.68.4-7.el9_2.8Fixed 2026-09-24RHSA-2026:71405
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsglib2-0:2.68.4-14.el9_4.9Fixed 2026-09-23RHSA-2026:70636
Red Hat Enterprise Linux 9.6 Extended Update Supportglib2-0:2.68.4-16.el9_6.8Fixed 2026-09-24RHSA-2026:71403
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/jetstack-cert-manager-acmesolver-rhel9:1791371080Fixed 2026-10-13RHSA-2026:82304
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/jetstack-cert-manager-rhel9:1791371069Fixed 2026-10-13RHSA-2026:82304
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/cert-manager-operator-rhel9:1791788287Fixed 2026-10-13RHSA-2026:82322
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/cert-manager-istio-csr-rhel9:1791378395Fixed 2026-10-13RHSA-2026:82336
Cert Manager support for Red Hat OpenShift release 1.17cert-manager/cert-manager-operator-bundle:1791970484Fixed 2026-10-14RHSA-2026:82888
Cert Manager support for Red Hat OpenShift release 1.18cert-manager/jetstack-cert-manager-acmesolver-rhel9:1791459707Fixed 2026-10-13RHSA-2026:82347
Red Hat Enterprise Linux 7glib2Affected
Red Hat Enterprise Linux 7webkitgtk4Will not fix
Red Hat Enterprise Linux 8webkit2gtk3Will not fix
Red Hat Enterprise Linux 9webkit2gtk3Will not fix
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-k8s-operator-rhel9Not affected
73 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-16118.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON