Description
A Heap-based Buffer Overflow vulnerability exists in jhead 3.04 and 3.05 via the RemoveSectionType function in jpgfile.c.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jhead | 1:3.06.0.1-2 | — |
| Debian 13 | jhead | 1:3.06.0.1-2 | — |
| Debian 12 | jhead | 1:3.06.0.1-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | jhead | 1:3.04-1ubuntu0.1 | USN-6098-1 |
| Ubuntu 18.04 LTS | jhead | 1:3.00-8~ubuntu0.1 | USN-6098-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | jhead | 1:3.00-4+deb9u1ubuntu0.1~esm1 | USN-6098-1 |
| Ubuntu Pro 14.04 LTS | jhead | 1:2.97-1+deb8u2ubuntu0.1~esm1 | USN-6098-1 |
Advisories 1
- USN-6098-1 Jhead vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
References
- https://github.com/Matthias-Wandel/jhead/issues/15
- GLSA-202210-17 vendor-advisory