Vulnerabilities > CVE-2016-8729 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Artifex Mupdf 1.9

047910
CVSS 7.8 - HIGH
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
local
low complexity
artifex
CWE-119
nessus

Summary

An exploitable memory corruption vulnerability exists in the JBIG2 parser of Artifex MuPDF 1.9. A specially crafted PDF can cause a negative number to be passed to a memset resulting in memory corruption and potential code execution. An attacker can specially craft a PDF and send to the victim to trigger this vulnerability.

Vulnerable Configurations

Part Description Count
Application
Artifex
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2017-1300.NASL
    descriptionThis update for mupdf fixes the following issues : Security issues fixed : - CVE-2017-7976: integer overflow (jbig2_image_compose function in jbig2_image.c) during operations on a crafted .jb2 file (boo#1052029). - CVE-2016-10221: count_entries in pdf-layer.c allows for DoS (boo#1032140). - CVE-2016-8728: Fitz library font glyph scaling Code Execution Vulnerability (boo#1039850). Bug fixes : - Update to version 1.11 - This is primarily a bug fix release. - PDF portfolio support with command line tool
    last seen2020-06-05
    modified2017-11-27
    plugin id104766
    published2017-11-27
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/104766
    titleopenSUSE Security Update : mupdf (openSUSE-2017-1300)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update openSUSE-2017-1300.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(104766);
      script_version("3.5");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2016-10221", "CVE-2016-8728", "CVE-2016-8729", "CVE-2017-7976");
    
      script_name(english:"openSUSE Security Update : mupdf (openSUSE-2017-1300)");
      script_summary(english:"Check for the openSUSE-2017-1300 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update for mupdf fixes the following issues :
    
    Security issues fixed :
    
      - CVE-2017-7976: integer overflow (jbig2_image_compose
        function in jbig2_image.c) during operations on a
        crafted .jb2 file (boo#1052029).
    
      - CVE-2016-10221: count_entries in pdf-layer.c allows for
        DoS (boo#1032140).
    
      - CVE-2016-8728: Fitz library font glyph scaling Code
        Execution Vulnerability (boo#1039850).
    
    Bug fixes :
    
      - Update to version 1.11
    
      - This is primarily a bug fix release.
    
      - PDF portfolio support with command line tool 'mutool
        portfolio'.
    
      - Add callbacks to load fallback fonts from the system.
    
      - Use system fonts in Android to reduce install size.
    
      - Flag to disable publisher styles in EPUB layout.
    
      - Improved SVG output.
    
      - Add reproducible.patch to sort input files to make build
        reproducible (boo#1041090)
    
      - mupdf is not a terminal app (boo#1036637)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1032140"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1036637"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1039850"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1041090"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.opensuse.org/show_bug.cgi?id=1052029"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected mupdf packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:mupdf");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:mupdf-devel-static");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:42.2");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:42.3");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2017/11/23");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/11/27");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE42\.2|SUSE42\.3)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "42.2 / 42.3", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE42.2", reference:"mupdf-1.11-13.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.2", reference:"mupdf-devel-static-1.11-13.3.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"mupdf-1.11-16.1") ) flag++;
    if ( rpm_check(release:"SUSE42.3", reference:"mupdf-devel-static-1.11-16.1") ) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "mupdf / mupdf-devel-static");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2017-5135C91B36.NASL
    descriptionFix for CVE-2016-8728 CVE-2016-8729 ---- Rebuild with new jbig2dec Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2017-05-30
    plugin id100488
    published2017-05-30
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/100488
    titleFedora 25 : mupdf (2017-5135c91b36)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory FEDORA-2017-5135c91b36.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(100488);
      script_version("3.6");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2016-8728", "CVE-2016-8729", "CVE-2017-7885");
      script_xref(name:"FEDORA", value:"2017-5135c91b36");
    
      script_name(english:"Fedora 25 : mupdf (2017-5135c91b36)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Fix for CVE-2016-8728 CVE-2016-8729
    
    ----
    
    Rebuild with new jbig2dec
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora update system website.
    Tenable has attempted to automatically clean and format it as much as
    possible without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bodhi.fedoraproject.org/updates/FEDORA-2017-5135c91b36"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected mupdf package.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:mupdf");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:25");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2017/04/17");
      script_set_attribute(attribute:"patch_publication_date", value:"2017/05/27");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/05/30");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = pregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! preg(pattern:"^25([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 25", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"FC25", reference:"mupdf-1.10a-7.fc25")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "mupdf");
    }
    

Seebug

bulletinFamilyexploit
description### Summary An exploitable memory corruption vulnerability exists in the JBIG2 parser of Artifex MuPDF 1.9. A specially crafted PDF can cause a negative number to be passed to a memset resulting in memory corruption and potential code execution. An attacker can specially craft a PDF and send to the victim to trigger this vulnerability. ### Tested Versions MuPDF 1.9 MuPDF 1.10 RC2 ### Product URLs http://mupdf.com/ ### CVSSv3 Score 7.5 - CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H ### CWE CWE-122: Heap-based Buffer Overflow ### Details MuPDF is a lightweight PDF, XPS, and E-Book viewer that has packages available for Windows as well as Android, iPad, and iPhone. During the parsing of a JBIG2 image embedded in a PDF, each image segment is handled based on the flags for that particular segment. Segments with flags 38 or 39 are handled by calling `jbig2_immediate_generic_region` on the current segment [0]. ``` thirdparty/jbig2dec/jbig2_segment.c:227 /* general segment parsing dispatch */ int jbig2_parse_segment(Jbig2Ctx *ctx, Jbig2Segment *segment, const uint8_t *segment_data) { jbig2_error(ctx, JBIG2_SEVERITY_INFO, segment->number, "Segment %d, flags=%x, type=%d, data_length=%d", segment->number, segment->flags, segment->flags & 63, segment->data_length); switch (segment->flags & 63) { ... case 38: /* immediate generic region */ case 39: /* immediate lossless generic region */ return jbig2_immediate_generic_region(ctx, segment, segment_data); [0] ``` Each segment is lifted into a `Jbig2RegionSegmentInfo` object by reading the segment header information. Two key values are extracted during `jbig2_get_region_segment_info` [1]: width and height [2]. ``` thirdparty/jbig2dec/jbig2_segment.c:227 /** * Handler for immediate generic region segments */ int jbig2_immediate_generic_region(Jbig2Ctx *ctx, Jbig2Segment *segment, const byte *segment_data) { Jbig2RegionSegmentInfo rsi; ... jbig2_get_region_segment_info(&rsi, segment_data); [1] ... image = jbig2_image_new(ctx, rsi.width, rsi.height); [3] thirdparty/jbig2dec/jbig2_segment.c:186 void jbig2_get_region_segment_info(Jbig2RegionSegmentInfo *info, const uint8_t *segment_data) { /* 7.4.1 */ info->width = jbig2_get_int32(segment_data); [2] info->height = jbig2_get_int32(segment_data + 4); [2] info->x = jbig2_get_int32(segment_data + 8); info->y = jbig2_get_int32(segment_data + 12); info->flags = segment_data[16]; info->op = (Jbig2ComposeOp)(info->flags & 0x7); } ``` After extracting the width and height from the segment, `jbig2_image_new` is called [3]. A `stride` value is calculated from the width and subsequently checked to ensure a multiplication overflow won't occur [4]. Assuming this check is passed, the resulting stride value is stored in an image object and returned. ``` thirdparty/jbig2dec/jbig2_image.c:34 Jbig2Image * jbig2_image_new(Jbig2Ctx *ctx, int width, int height) { Jbig2Image *image; ... stride = ((width - 1) >> 3) + 1; /* generate a byte-aligned stride */ /* check for integer multiplication overflow */ check = ((int64_t) stride) * ((int64_t) height); [4] if (check != (int)check) { jbig2_error(ctx, JBIG2_SEVERITY_FATAL, -1, "integer multiplication overflow from stride(%d)*height(%d)", stride, height); jbig2_free(ctx->allocator, image); return NULL; } ... image->stride = stride; [5] ... return image; } ``` If the `MMR` flag is set in the image segment flags, then the resulting image is passed to `jbig2_decode_generic_mmr`. During this decoding, the `stride` value is used directly as the `size` value in a `memset` [6]. ``` int jbig2_decode_generic_mmr(Jbig2Ctx *ctx, Jbig2Segment *segment, const Jbig2GenericRegionParams *params, const byte *data, size_t size, Jbig2Image *image) { Jbig2MmrCtx mmr; const int rowstride = image->stride; ... for (y = 0; y < image->height; y++) { memset(dst, 0, rowstride); [6] ... } } ``` Using the calculation of `stride = ((width - 1) >> 3) + 1;`, a negative value for `stride` can be achieved. Passing this negative value to `memset` results in a buffer overflow condition that could possibly be leveraged to gain code execution. ### Crash Information ``` Dr. Memory output ~~Dr.M~~ Error #1: UNADDRESSABLE ACCESS beyond heap bounds: writing 0x0000000002a7f350-0x0000000002a7f354 4 byte(s) ~~Dr.M~~ # 0 replace_memset [/work/drmemory_package/drmemory/replace.c:201] ~~Dr.M~~ # 1 jbig2_decode_generic_mmr [thirdparty/jbig2dec/jbig2_mmr.c:1021] ~~Dr.M~~ # 2 jbig2_immediate_generic_region [thirdparty/jbig2dec/jbig2_generic.c:766] ~~Dr.M~~ # 3 jbig2_parse_segment [thirdparty/jbig2dec/jbig2_segment.c:249] ~~Dr.M~~ # 4 jbig2_data_in [thirdparty/jbig2dec/jbig2.c:312] ~~Dr.M~~ # 5 fz_load_jbig2_globals [source/fitz/filter-jbig2.c:350] ~~Dr.M~~ # 6 pdf_load_jbig2_globals [source/pdf/pdf-stream.c:72] ~~Dr.M~~ # 7 build_filter [source/pdf/pdf-stream.c:181] ~~Dr.M~~ # 8 pdf_open_filter [source/pdf/pdf-stream.c:313] ~~Dr.M~~ # 9 pdf_open_image_stream [source/pdf/pdf-stream.c:412] ~~Dr.M~~ #10 pdf_load_image_stream [source/pdf/pdf-stream.c:569] ~~Dr.M~~ #11 pdf_load_compressed_stream [source/pdf/pdf-stream.c:612] ~~Dr.M~~ #12 pdf_load_image_imp [source/pdf/pdf-image.c:160] ~~Dr.M~~ #13 pdf_load_image [source/pdf/pdf-image.c:283] ~~Dr.M~~ #14 pdf_process_Do [source/pdf/pdf-interpret.c:555] ~~Dr.M~~ #15 pdf_process_keyword [source/pdf/pdf-interpret.c:992] ~~Dr.M~~ #16 pdf_process_stream [source/pdf/pdf-interpret.c:1170] ~~Dr.M~~ #17 pdf_process_contents [source/pdf/pdf-interpret.c:1242] ~~Dr.M~~ #18 pdf_run_page_contents_with_usage [source/pdf/pdf-run.c:41] ~~Dr.M~~ #19 pdf_run_page_contents [source/pdf/pdf-run.c:62] ~~Dr.M~~ Note: @0:00:00.538 in thread 16021 ~~Dr.M~~ Note: refers to 0 byte(s) beyond last valid byte in prior malloc ~~Dr.M~~ Note: prev lower malloc: 0x0000000002a7f350-0x0000000002a7f350 ~~Dr.M~~ Note: allocated here: ~~Dr.M~~ Note: # 0 replace_malloc [/work/drmemory_package/common/alloc_replace.c:2576] ~~Dr.M~~ Note: # 1 jbig2_default_alloc [thirdparty/jbig2dec/jbig2.c:36] ~~Dr.M~~ Note: # 2 jbig2_alloc [thirdparty/jbig2dec/jbig2.c:63] ~~Dr.M~~ Note: # 3 jbig2_image_new [thirdparty/jbig2dec/jbig2_image.c:56] ~~Dr.M~~ Note: # 4 jbig2_immediate_generic_region [thirdparty/jbig2dec/jbig2_generic.c:760] ~~Dr.M~~ Note: # 5 jbig2_parse_segment [thirdparty/jbig2dec/jbig2_segment.c:249] ~~Dr.M~~ Note: # 6 jbig2_data_in [thirdparty/jbig2dec/jbig2.c:312] ~~Dr.M~~ Note: # 7 fz_load_jbig2_globals [source/fitz/filter-jbig2.c:350] ~~Dr.M~~ Note: # 8 pdf_load_jbig2_globals [source/pdf/pdf-stream.c:72] ~~Dr.M~~ Note: # 9 build_filter [source/pdf/pdf-stream.c:181] ~~Dr.M~~ Note: #10 pdf_open_filter [source/pdf/pdf-stream.c:313] ~~Dr.M~~ Note: #11 pdf_open_image_stream [source/pdf/pdf-stream.c:412] ~~Dr.M~~ Note: instruction: mov %eax -> (%rbx) ``` ### Valgrind output ``` ==19258== Memcheck, a memory error detector ==19258== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==19258== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==19258== Command: ./build/release/mutool convert -o /tmp/asdfasdf -F png ../smart_jbig_crashes_mupdf/04637126fea55ca2a3bf243a3ccfe2858922d943.pdf ==19258== warning: jbig2dec warning: MMR is 1, but GBTEMPLATE is not 0 (segment 0) ==19258== Invalid write of size 8 ==19258== at 0x4C3453F: memset (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==19258== by 0x5A697F: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x5A3939: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x5451E0: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4D4DE6: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5614: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5942: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5EBD: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5F9A: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A6108: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A63CC: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4AF887: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== Address 0x5799f60 is 0 bytes after a block of size 0 alloc'd ==19258== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==19258== by 0x5457E0: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x5A3745: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x5451E0: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4D4DE6: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5614: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5942: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5EBD: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A5F9A: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A6108: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4A63CC: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ==19258== by 0x4AF887: ??? (in /home/vagrant/fuzzing/mupdf/mupdf-orig/build/release/mutool) ``` ### Timeline * 2016-11-29 - Vendor Disclosure * 2017-05-15 - Public Release ### CREDIT * Discovered by Aleksandar Nikolic and Cory Duplantis of Cisco Talos
idSSV:96509
last seen2017-11-19
modified2017-09-18
published2017-09-18
reporterRoot
titleArtifex MuPDf JBIG2 Parser Code Execution Vulnerability(CVE-2016-8729)

Talos

idTALOS-2016-0243
last seen2019-05-29
published2017-05-15
reporterTalos Intelligence
sourcehttp://www.talosintelligence.com/vulnerability_reports/TALOS-2016-0243
titleArtifex MuPDf JBIG2 Parser Code Execution Vulnerability