Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701826 (CVE-2019-19035) - <media-gfx/jhead-3.04: heap based over-read in ReadJpegSections and process_SOFn in jpgfile.c leads to denial of service (CVE-2019-19035)
Summary: <media-gfx/jhead-3.04: heap based over-read in ReadJpegSections and process_S...
Alias: CVE-2019-19035
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B3 [glsa cve]
Depends on: CVE-2019-1010301, CVE-2019-1010302
  Show dependency tree
Reported: 2019-12-02 22:44 UTC by GLSAMaker/CVETool Bot
Modified: 2020-07-27 12:32 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description GLSAMaker/CVETool Bot gentoo-dev 2019-12-02 22:44:27 UTC
CVE-2019-19035 (
  jhead 3.03 is affected by: heap-based buffer over-read. The impact is:
  Denial of service. The component is: ReadJpegSections and process_SOFn in
  jpgfile.c. The attack vector is: Open a specially crafted JPEG file.
Comment 1 Thomas Deutschmann gentoo-dev Security 2019-12-02 22:46:24 UTC
Should be fixed in 3.04 according to
Comment 2 Sam James archtester gentoo-dev Security 2020-03-19 01:44:54 UTC
@maintainer(s), please create an appropriate ebuild, and call for stabilisation when ready.
Comment 3 Larry the Git Cow gentoo-dev 2020-07-04 14:27:51 UTC
The bug has been referenced in the following commit(s):

commit 67e090339cb570cde380194dbc8b68089d9de311
Author:     John Helmert III <>
AuthorDate: 2020-06-24 20:39:38 +0000
Commit:     Andreas K. Hüttel <>
CommitDate: 2020-07-04 14:25:02 +0000

    media-gfx/jhead: Security bump to 3.04
    EAPI bumped, src_prepare refactored away, added PATCHES array instead
    with a patch that includes the effects of the previous patch. This patch
    also includes adding Makefile functionality to create a shared library
    that was removed upstream since the last version we have.
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: John Helmert III <>
    Signed-off-by: Andreas K. Hüttel <>

 media-gfx/jhead/Manifest                           |  1 +
 .../files/jhead-3.04-mkstemp-fix-makefile.patch    | 53 ++++++++++++++++++++++
 media-gfx/jhead/jhead-3.04.ebuild                  | 24 ++++++++++
 3 files changed, 78 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2020-07-27 12:32:27 UTC
The bug has been closed via the following commit(s):

commit 974f37f38f8a813afa0dd0c368d11bf7b8e5ccab
Author:     Sam James <>
AuthorDate: 2020-07-27 12:32:20 +0000
Commit:     Sam James <>
CommitDate: 2020-07-27 12:32:20 +0000

    [ GLSA 202007-17 ] Add missing bug #701826
    This does not change the severity or impact of the GLSA.
    Signed-off-by: Sam James <>

 glsa-202007-17.xml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)