Advisory

UBUNTU-CVE-2026-16118

Also known as: CVE-2026-16118

Summary

The record has no summary.

Details

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

High Basis: CVSS v3 score 7.1, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Dates

Published
2026-07-17 20:17 UTC
Modified
2026-09-22 03:22 UTC

Affected packages and fixes

glib2.0

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.72.4-0ubuntu2.10 (ecosystem)

Fixed versions

2.72.4-0ubuntu2.10

Fix

  • Fixed version 2.72.4-0ubuntu2.10
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

glib2.0

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.80.0-6ubuntu3.9 (ecosystem)

Fixed versions

2.80.0-6ubuntu3.9

Fix

  • Fixed version 2.80.0-6ubuntu3.9
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

glib2.0

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2.88.0-1ubuntu0.1 (ecosystem)

Fixed versions

2.88.0-1ubuntu0.1

Fix

  • Fixed version 2.88.0-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences