VYPR
Unrated severityNVD Advisory· Published Apr 6, 2021· Updated Aug 3, 2024

CVE-2021-30046

CVE-2021-30046

Description

VIGRA Computer Vision Library Version-1-11-1 contains a segmentation fault vulnerability in the impex.hxx read_image_band() function, in which a crafted file can cause a denial of service.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

2
  • VIGRA/Computer Vision Librarydescription
  • vigra/vigrallm-create
    Range: = 1.11.1

Patches

Vulnerability mechanics

Root cause

"Missing bounds validation on the scanline pointer in read_image_band() allows an out-of-bounds memory access when processing a crafted TIFF file."

Attack vector

An attacker supplies a crafted TIFF file (the PoC file attached to the report) that triggers a segmentation fault when processed by the `verdandi` tool from Hugin, which uses the VIGRA library. The decoder sets a `scanline` offset that causes the loop in `read_image_band()` to read past the end of the pixel buffer. No authentication or special network access is required; the attack is file‑based and results in a denial of service [ref_id=1].

Affected code

The vulnerability resides in `vigra::detail::read_image_band()` in `/include/vigra/impex.hxx` (lines 82–89) and the `StandardValueAccessor::set()` function in `/usr/include/vigra/accessor.hxx:234`. The loop advances a `scanline` pointer by an `offset` without validating that the resulting address remains within the allocated image buffer, leading to an out‑of‑bounds dereference [ref_id=1].

What the fix does

The advisory does not include a patch. The report identifies that the `scanline` pointer is advanced by an `offset` without a bounds check before dereferencing in the `set()` call. A proper fix would validate that `scanline` stays within the image's allocated memory region before each access, or ensure that the decoder provides a safe offset that does not exceed the row stride. Without a published fix, users must avoid processing untrusted TIFF files with the affected version [ref_id=1].

Preconditions

  • inputThe victim must open a crafted TIFF file using a program that calls VIGRA's importImage (e.g., Hugin's verdandi tool).
  • configThe crafted file must set a TIFF photometric interpretation value (e.g., 32985) that triggers an inappropriate SGILog compression path, leading to an invalid scanline offset.

Generated on May 29, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

1

News mentions

0

No linked articles in our index yet.