CVE-2026-16118: Red Hat heap-based buffer overflow in _xdg_mime_magic_parse_magic_line in xdgmimemagic.c
This Red Hat advisory covers CVE-2026-16118 in Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 7 Extended Lifecycle Support and Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support.
- CVE-2026-16118
Am I affected by CVE-2026-16118?
The Red Hat advisory lists no affected version range that VulniPulse could read. Check it for Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 7 Extended Lifecycle Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support.
Fixed releases listed by the vendor: glib2-0:2.80.4-12.el10_2.22, glib2-0:2.80.4-22.el10_3.23, glib2-0:2.80.4-4.el10_0.18, glib2-0:2.56.1-13.el7_9.2, glib2-0:2.56.4-178.el8_10, glib2-0:2.56.4-10.el8_4.8, glib2-0:2.56.4-158.el8_6.8, glib2-0:2.56.4-165.el8_8.3, glib2-0:2.68.4-19.el9_8.10, glib2-0:2.68.4-29.el9_9.1, glib2-0:2.68.4-7.el9_2.8, glib2-0:2.68.4-14.el9_4.9, glib2-0:2.68.4-16.el9_6.8, cert-manager/jetstack-cert-manager-acmesolver-rhel9:1791371080, cert-manager/jetstack-cert-manager-rhel9:1791371069, cert-manager/cert-manager-operator-rhel9:1791788287, cert-manager/cert-manager-istio-csr-rhel9:1791378395, cert-manager/cert-manager-operator-bundle:1791970484, cert-manager/jetstack-cert-manager-acmesolver-rhel9:1791459707, cert-manager/jetstack-cert-manager-rhel9:1791459711, cert-manager/cert-manager-istio-csr-rhel9:1791459759, cert-manager/cert-manager-operator-rhel9:1789029076, cert-manager/cert-manager-operator-bundle:1791966259, cert-manager/jetstack-cert-manager-rhel9:1790223279, cert-manager/cert-manager-istio-csr-rhel9:1790223719 and 25 more
Official advisory · high-confidence parse· fetched ·verify at source
Key facts
- Vendor rating
- High, CVSS 7.1
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H· base score 7.1, scored by redhatAttack vector: local. Attack complexity: low. Privileges required: none. User interaction: required. Scope: unchanged. Confidentiality impact: none. Integrity impact: high. Availability impact: high.- Weakness
- CWE-122 Heap-based Buffer Overflow
- EPSS
- 0.28% chance of exploitation in the next 30 days (21st percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: proof of concept exists. Automatable: no. Technical impact: partial. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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. Also, only little-endian systems are vulnerable.
Due to these reasons, this issue has been rated with a moderate severity. Red Hat severity: Moderate — CVSS 7.1 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H).
Weakness: CWE-122.
Affected products named by the advisory: Red Hat Enterprise Linux 10.0 Extended Update Support; Red Hat Enterprise Linux 7 Extended Lifecycle Support; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support; Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On; and 23 more.
Text from the source record.
How to fix CVE-2026-16118
Upgrade to a fixed release named by Red Hat:
- glib2-0:2.80.4-12.el10_2.22
- glib2-0:2.80.4-22.el10_3.23
- glib2-0:2.80.4-4.el10_0.18
- glib2-0:2.56.1-13.el7_9.2
- glib2-0:2.56.4-178.el8_10
- glib2-0:2.56.4-10.el8_4.8
- glib2-0:2.56.4-158.el8_6.8
- glib2-0:2.56.4-165.el8_8.3
- glib2-0:2.68.4-19.el9_8.10
- glib2-0:2.68.4-29.el9_9.1
- glib2-0:2.68.4-7.el9_2.8
- glib2-0:2.68.4-14.el9_4.9
- glib2-0:2.68.4-16.el9_6.8
- cert-manager/jetstack-cert-manager-acmesolver-rhel9:1791371080
- cert-manager/jetstack-cert-manager-rhel9:1791371069
- cert-manager/cert-manager-operator-rhel9:1791788287
- cert-manager/cert-manager-istio-csr-rhel9:1791378395
- cert-manager/cert-manager-operator-bundle:1791970484
- cert-manager/jetstack-cert-manager-acmesolver-rhel9:1791459707
- cert-manager/jetstack-cert-manager-rhel9:1791459711
- cert-manager/cert-manager-istio-csr-rhel9:1791459759
- cert-manager/cert-manager-operator-rhel9:1789029076
- cert-manager/cert-manager-operator-bundle:1791966259
- cert-manager/jetstack-cert-manager-rhel9:1790223279
- cert-manager/cert-manager-istio-csr-rhel9:1790223719
and 25 more in the Red Hat advisory.
Vendor guidance
- Red Hat: will not fix (Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9).
- Do not install a MIME magic file or content from untrusted sources.
Support dates for the fixed release lines
- Red Hat Enterprise Linux 9: support ends
- Red Hat Enterprise Linux 4: support ended
- Red Hat Enterprise Linux 6: support ended
- Red Hat Enterprise Linux 8: support ends
CVE-2026-16118 questions
Is CVE-2026-16118 being exploited?
CISA does not list it in its Known Exploited Vulnerabilities catalog (checked ), and the Red Hat advisory does not report exploitation. That is not proof it is unexploited.
How do I fix CVE-2026-16118?
Upgrade to a fixed release Red Hat lists for your version: glib2-0:2.80.4-12.el10_2.22, glib2-0:2.80.4-22.el10_3.23, glib2-0:2.80.4-4.el10_0.18, glib2-0:2.56.1-13.el7_9.2 and 46 more. The advisory's own guidance is above.
How likely is CVE-2026-16118 to be exploited?
FIRST's EPSS model gives it a 0.28% chance of exploitation in the next 30 days (21st percentile among scored CVEs, model date ). It is a forecast, not a report of attacks.
How serious is CVE-2026-16118?
Red Hat rates it high, CVSS 7.1 out of 10.
More Red Hat Linux advisories
CVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli DecoderCVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-freeCVE-2026-109618Oct 21, 2026OOM bailout during request parsing leads to memory corruption and RCECVE-2026-97229Oct 13, 2026integer overflow issue in CI/CD regular expression compilerCVE-2026-46300May 13, 2026net: skbuff: preserve shared-frag marker during coalescingCVE-2026-31431Apr 22, 2026algif_aead - Revert to operating out-of-place
Get an email when Red Hat RHEL & SELinux publishes the next one.
See Red Hat RHEL & SELinux's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).