Bug 1494401 (CVE-2017-14227)

Summary: CVE-2017-14227 libbson: Heap based buffer over read in the bson_utf8_validate function
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fedora, ppisar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:26:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1494402, 1489355    
Bug Blocks:    

Description Andrej Nemec 2017-09-22 08:06:25 UTC
In MongoDB libbson 1.7.0, the bson_iter_codewscope function in bson-iter.c miscalculates a bson_utf8_validate length argument, which allows remote attackers to cause a denial of service (heap-based buffer over-read in the bson_utf8_validate function in bson-utf8.c), as demonstrated by bson-to-json.c.

Upstream issue:

https://jira.mongodb.org/browse/CDRIVER-2269

Upstream patches:

https://github.com/mongodb/libbson/commit/42900956dc461dfe7fb91d93361d10737c1602b3
https://github.com/mongodb/libbson/commit/e10059393466f667b031077229cfa98504ce34f3

Comment 1 Andrej Nemec 2017-09-22 08:06:48 UTC
Created libbson tracking bugs for this issue:

Affects: epel-7 [bug 1494402]

Comment 2 Fedora Update System 2017-09-26 23:54:40 UTC
libbson-1.6.3-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2017-09-27 05:27:29 UTC
libbson-1.3.5-4.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2017-09-30 06:31:28 UTC
libbson-1.8.0-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2017-10-09 14:50:14 UTC
libbson-1.3.5-4.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.