CVE-2021-28855
Description
In Deark before 1.5.8, a specially crafted input file can cause a NULL pointer dereference in the dbuf_write function (src/deark-dbuf.c).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In Deark before 1.5.8, a specially crafted PICT file triggers a NULL pointer dereference in dbuf_write, causing a denial of service.
Vulnerability
A NULL pointer dereference vulnerability exists in Deark versions before 1.5.8. The flaw resides in the dbuf_write function within src/deark-dbuf.c. When processing a specially crafted PICT file, the code path do_iccprofile_item -> dbuf_copy -> dbuf_write is reached without verifying that the d->iccprofile_file pointer is non-NULL, leading to a NULL pointer dereference [1][2].
Exploitation
An attacker can exploit this vulnerability by providing a malicious PICT file to a user of Deark. No special network position or authentication is required; the victim only needs to open the file with Deark. The crafted PICT file contains a malformed ICC profile segment that causes d->iccprofile_file to be NULL. When Deark processes the file, the NULL pointer dereference occurs in dbuf_write, resulting in a crash [1].
Impact
Successful exploitation results in a denial of service (application crash) due to the NULL pointer dereference. There is no indication of arbitrary code execution or information disclosure. The crash occurs in the dbuf_write function, terminating the Deark process.
Mitigation
The vulnerability is fixed in Deark version 1.5.8. The fix, introduced in commit [2], adds a check for d->iccprofile_file being NULL before calling dbuf_copy. Users should upgrade to version 1.5.8 or later. No workarounds are available for earlier versions.
AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Deark/Dearkdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3News mentions
0No linked articles in our index yet.