Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
catdoc.6985
CVE-2017-11110.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2017-11110.patch of Package catdoc.6985
From: Andreas Stieger <astieger@suse.com> Date: Mon, 10 Jul 2017 15:37:58 +0000 References: CVE-2017-11110 http://bugzilla.suse.com/show_bug.cgi?id=1047877 All .doc I found had sectorSize 0x09 at offset 0x1e. Guarding it against <4. --- src/ole.c | 5 +++++ 1 file changed, 5 insertions(+) Index: catdoc-0.95/src/ole.c =================================================================== --- catdoc-0.95.orig/src/ole.c 2016-05-25 06:37:12.000000000 +0200 +++ catdoc-0.95/src/ole.c 2017-07-10 17:42:33.578308107 +0200 @@ -106,6 +106,11 @@ FILE* ole_init(FILE *f, void *buffer, si return NULL; } sectorSize = 1<<getshort(oleBuf,0x1e); + /* CVE-2017-11110) */ + if (sectorSize < 4) { + fprintf(stderr,"sectorSize < 4 not supported\n"); + return NULL; + } shortSectorSize=1<<getshort(oleBuf,0x20); /* Read BBD into memory */ @@ -147,7 +152,7 @@ FILE* ole_init(FILE *f, void *buffer, si } fseek(newfile, 512+mblock*sectorSize, SEEK_SET); - if(fread(tmpBuf+MSAT_ORIG_SIZE+(sectorSize-4)*i, + if(fread(tmpBuf+MSAT_ORIG_SIZE+(sectorSize-4)*i, /* >= 4 for CVE-2017-11110 */ 1, sectorSize, newfile) != sectorSize) { fprintf(stderr, "Error read MSAT!\n"); ole_finish();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor