Bug 1576654

Summary: nodejs-bl: Numeric arguments passed to bl.append() return uninitialized memory
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ahardin, bleanhar, ccoleman, dedgar, dffrench, drusso, hhorak, jgoulding, jmadigan, jokerman, jorton, jshepherd, lgriffin, mchappel, ngough, piotr1212, pwright, rhel8-maint, rrajasek, trepel, zsvetlik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-bl 0.9.5, nodejs-bl 1.0.1 Doc Type: If docs needed, set a value
Doc Text:
It was found that the nodejs-bl append() function did not properly handle numeric argument, resulting in a read buffer overflow. An attacker could use this flaw to disclose Node.js application memory.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 20:03:21 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: 1576655, 1576872, 1577875    
Bug Blocks: 1576657    

Description Sam Fowler 2018-05-10 04:54:28 UTC
bl before versions 0.9.5 and 1.0.1 are vulnerable to memory exposure.

bl.append(number) in the affected bl versions passes a number to Buffer constructor, appending a chunk of uninitialized memory.


Upstream issue:

https://github.com/rvagg/bl/pull/22


Upstream patch:

https://github.com/rvagg/bl/pull/22/commits/8e1ddb38145ac4556af67d5e18534e8f4bccbf98


External Reference:

https://nodesecurity.io/advisories/596

Comment 1 Sam Fowler 2018-05-10 04:54:52 UTC
Created nodejs-bl tracking bugs for this issue:

Affects: epel-7 [bug 1576655]