CVE-2020-6625
Description
jhead through 3.04 has a heap-based buffer over-read in Get32s when called from ProcessGpsInfo in gpsinfo.c.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
4- jhead/jheaddescription
- Range: <=3.04
- osv-coords2 versionspkg:rpm/opensuse/jhead&distro=openSUSE%20Leap%2015.2pkg:rpm/suse/jhead&distro=SUSE%20Package%20Hub%2015%20SP2
< 3.06.0.1-lp152.7.6.1+ 1 more
- (no CPE)range: < 3.06.0.1-lp152.7.6.1
- (no CPE)range: < 3.06.0.1-bp152.4.6.1
Patches
Vulnerability mechanics
Root cause
"Missing bounds check in Get32s allows reading past the end of a heap-allocated buffer when processing crafted Exif GPS data."
Attack vector
An attacker supplies a crafted JPEG file with malicious Exif GPS metadata. When jhead parses the file, the `ProcessGpsInfo` function reads beyond the allocated heap buffer via `Get32s`, causing a heap-buffer-over-read [ref_id=1]. The attacker needs no authentication; the only precondition is that the victim runs jhead on the malicious file.
Affected code
The heap-buffer-overflow occurs in `Get32s` at `exif.c:336` when called from `ProcessGpsInfo` in `gpsinfo.c:138`. The call chain is `ProcessGpsInfo` → `Get32s`, triggered during `ProcessExifDir` processing of a crafted JPEG file [ref_id=1].
What the fix does
The advisory does not include a patch. The bug report only documents the crash via AddressSanitizer output; no code fix is published in the referenced bug [ref_id=1]. Remediation would require adding bounds checking in `Get32s` or its callers to ensure reads stay within the allocated heap region.
Preconditions
- inputVictim runs jhead on a crafted JPEG file supplied by the attacker.
- authNo authentication or special privileges required.
Generated on May 30, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- security.gentoo.org/glsa/202007-17mitrevendor-advisory
- bugs.gentoo.org/711220mitre
- bugs.gentoo.org/876247mitre
- bugs.launchpad.net/ubuntu/+source/jhead/+bug/1858746mitre
News mentions
0No linked articles in our index yet.