CVE-2019-15757
Description
libMirage 3.2.2 in CDemu has a NULL pointer dereference in the NRG parser in parser.c.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A NULL pointer dereference in the NRG parser of libMirage 3.2.2 can be triggered by a crafted image file, causing a crash.
Vulnerability
In libMirage 3.2.2, the NRG parser in parser.c contains a NULL pointer dereference vulnerability. The issue occurs in the mirage_parser_nrg_build_block_index function at line 103, where memcpy is called with a pointer (cur_ptr) that can be NULL. The root cause is in mirage_parser_nrg_load_image at line 992: if reading the descriptor data fails (e.g., due to a malformed file), the error handling may lead to nrg_data being freed or left in an inconsistent state, yet the code continues to call mirage_parser_nrg_build_block_index, resulting in a NULL pointer dereference [1][2].
Exploitation
An attacker can exploit this by providing a specially crafted NRG image file that causes the descriptor data read to fail, for example by setting an invalid trailer offset. The attacker must convince a user or an application using CDemu (or any software relying on libMirage) to load the malicious image. No authentication or special privileges are required; only the ability to supply the file to the target system [1][2].
Impact
Successful exploitation leads to a denial of service condition via a crash of the application that loaded the image. The available references do not indicate any potential for arbitrary code execution or privilege escalation; the impact is limited to causing the application to terminate abnormally [1][2].
Mitigation
The vulnerability exists in libMirage version 3.2.2. As of the publication date (2019-08-29), no official patch has been released. Users should monitor for updates from the CDemu project and apply a fix when available. In the meantime, avoid opening untrusted NRG image files. This CVE is not listed in the CISA Known Exploited Vulnerabilities catalog [1][2].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
6- CDemu/libMiragedescription
- osv-coords4 versionspkg:rpm/opensuse/libmirage&distro=openSUSE%20Leap%2015.0pkg:rpm/opensuse/libmirage&distro=openSUSE%20Leap%2015.1pkg:rpm/suse/libmirage&distro=SUSE%20Package%20Hub%2015pkg:rpm/suse/libmirage&distro=SUSE%20Package%20Hub%2015%20SP1
< 3.2.2-lp150.2.6.1+ 3 more
- (no CPE)range: < 3.2.2-lp150.2.6.1
- (no CPE)range: < 3.2.2-lp151.3.6.1
- (no CPE)range: < 3.2.2-bp151.4.6.1
- (no CPE)range: < 3.2.2-bp151.4.6.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- lists.opensuse.org/opensuse-security-announce/2019-09/msg00025.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2019-09/msg00026.htmlmitrevendor-advisoryx_refsource_SUSE
- lists.opensuse.org/opensuse-security-announce/2019-09/msg00037.htmlmitrevendor-advisoryx_refsource_SUSE
- gist.github.com/andreafioraldi/343d9ba64060b548c02362a5e61ec932mitrex_refsource_MISC
- sourceforge.net/p/cdemu/bugs/118/mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.