PatchSiren cyber security CVE debrief
CVE-2026-16118 Red Hat CVE debrief
A flaw in xdgmime can cause a heap-based buffer overflow when parsing a malicious MIME magic file, potentially leading to application crashes or memory corruption on little-endian systems. This vulnerability is particularly concerning for defenders and administrators of systems using xdgmime, especially those with user-writable XDG data locations. The vulnerability can be triggered by an attacker-controlled MIME magic file in a user-writable XDG data location, such as $XDG_DATA_HOME/mime/magic path, when an application performs MIME type detection. The buffer overflow occurs due to incorrect pointer arithmetic during byte-swap, resulting in an out-of-bounds write of 2 bytes.
- Vendor
- Red Hat
- Product
- Red Hat Enterprise Linux 10
- CVSS
- HIGH 7.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-17
- Original CVE updated
- 2026-10-14
- Advisory published
- 2026-07-17
- Advisory updated
- 2026-10-14
Who should care
Defenders and administrators of systems using xdgmime, especially those with user-writable XDG data locations, should assess exposure and prioritize remediation. This includes reviewing xdgmime versions and configurations, monitoring systems for potential crashes or memory corruption, and verifying that systems are up-to-date and properly secured. Operational impacts may include potential application crashes, memory corruption on little-endian systems, and
Why it matters
CVE-2026-16118 is a heap-based buffer overflow vulnerability in xdgmime that can be triggered by parsing a malicious MIME magic file in a user-writable XDG data location, potentially leading to application crashes or memory corruption on little-endian systems. Defenders and administrators of systems using xdgmime should assess exposure and prioritize remediation.
- Potential application crashes due to buffer overflow
- Possible memory corruption on little-endian systems
- Need for verification of xdgmime versions and configurations
- Prioritization of remediation for systems with high-risk exposure
Technical summary
The xdgmime library is vulnerable to a heap-based buffer overflow when parsing malicious MIME magic files in user-writable XDG data locations, potentially causing application crashes or memory corruption on little-endian systems. The vulnerability is due to incorrect pointer arithmetic during byte-swap, leading to an out-of-bounds write. This issue can be triggered by an attacker-controlled MIME magic file when an application performs MIME type detection using g_content_type_guess(). Defenders should assess exposure and prioritize remediation for systems using xdgmime.
Defensive priority
Assess exposure and prioritize remediation for systems using xdgmime, especially those with user-writable XDG data locations.
Recommended defensive actions
- Assess exposure of systems using xdgmime, especially those with user-writable XDG data locations.
- Prioritize remediation for systems with high-risk exposure.
- Verify xdgmime versions and configurations to ensure they are up-to-date and properly secured.
- Monitor systems for potential crashes or memory corruption related to xdgmime.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The CVE record and NVD entry provide details on the vulnerability in xdgmime, including its potential impact and affected systems. The vulnerability was publicly disclosed on 2026-07-17 and has been assessed for its severity and potential operational impacts. Defenders should verify the versions and configurations of xdgmime in their environments to ensure they are up-to-date and properly secured. The CVE Program and NVD provide official records and assessments of the vulnerability.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-16118 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-16118
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-16118 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-16118
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:64799
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:64800
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:66451
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:67956
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/errata/RHSA-2026:70636
-
Source reference
Unverified legacy reference
URL: https://access.redhat.com/security/cve/CVE-2026-16118
-
Source reference
Unverified legacy reference
URL: https://gitlab.freedesktop.org/xdg/xdgmime/-/work_items/41
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.