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.
Vulnerable Products
red hat:cert manager support for red hat openshift release 1.18
red hat:red hat openshift ai 3.3
red hat:red hat ai inference server 3.5
red hat:red hat enterprise linux 9.4 update services for sap solutions
red hat:red hat openshift ai 3.4
red hat:red hat openshift ai 3.0
red hat:red hat enterprise linux 9
red hat:red hat enterprise linux 10
red hat:red hat enterprise linux 9.6 extended update support
red hat:red hat ai inference server 3.2
red hat:red hat enterprise linux 7
red hat:red hat openshift ai 3.2
red hat:red hat cost management on-premise 1
red hat:red hat enterprise linux 8
red hat:cert manager support for red hat openshift release 1.20
red hat:red hat enterprise linux 10.0 extended update support
red hat:red hat enterprise linux 9.2 update services for sap solutions
xdg:xdgmime
red hat:red hat enterprise linux ai 3.5
red hat:red hat update infrastructure 5
red hat:cert manager support for red hat openshift release 1.17
red hat:red hat openshift ai 3.5