Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876247 (CVE-2020-6624, CVE-2020-6625, CVE-2022-41751) - media-gfx/jhead: multiple vulnerabilities
Summary: media-gfx/jhead: multiple vulnerabilities
Status: CONFIRMED
Alias: CVE-2020-6624, CVE-2020-6625, CVE-2022-41751
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B2 [??]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-09 03:37 UTC by John Helmert III
Modified: 2022-10-19 02:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 03:37:10 UTC
CVE-2020-6624 (https://bugs.launchpad.net/ubuntu/+source/jhead/+bug/1858744):

jhead through 3.04 has a heap-based buffer over-read in process_DQT in jpgqguess.c.

CVE-2020-6625 (https://bugs.launchpad.net/ubuntu/+source/jhead/+bug/1858746):

jhead through 3.04 has a heap-based buffer over-read in Get32s when called from ProcessGpsInfo in gpsinfo.c.

Both bugs untouched in launchpad. We should fix glsa-202007-17, too,
as it's referenced in the CVEs.

https://security.gentoo.org/glsa/202007-17
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2022-10-18 22:28:21 UTC
(In reply to John Helmert III from comment #0)
> CVE-2020-6624 (https://bugs.launchpad.net/ubuntu/+source/jhead/+bug/1858744):
> 
> jhead through 3.04 has a heap-based buffer over-read in process_DQT in
> jpgqguess.c.

https://github.com/Matthias-Wandel/jhead/issues/20
maybe??

> 
> CVE-2020-6625 (https://bugs.launchpad.net/ubuntu/+source/jhead/+bug/1858746):
> 
> jhead through 3.04 has a heap-based buffer over-read in Get32s when called
> from ProcessGpsInfo in gpsinfo.c.

https://github.com/Matthias-Wandel/jhead/issues/17
maybe?? if yes, then fixed in 3.06.0.1

> 
> Both bugs untouched in launchpad. We should fix glsa-202007-17, too,
> as it's referenced in the CVEs.
> 
> https://security.gentoo.org/glsa/202007-17
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-19 02:30:04 UTC
CVE-2022-41751 (https://github.com/Matthias-Wandel/jhead/pull/57):

Jhead 3.06.0.1 allows attackers to execute arbitrary OS commands by placing them in a JPEG filename and then using the regeneration -rgt50 option.

This one's definitely patched: https://github.com/Matthias-Wandel/jhead/commit/ba1da7dce9e8f3269159b57b88ff9688624426d2