Bug 1343393 - nodejs: Missing check for negative length arguments to Buffer() and Buffer.allocUnsafe()
Summary: nodejs: Missing check for negative length arguments to Buffer() and Buffer.al...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1343394 1343395 1343396 1417967 1417968
Blocks: 1343398 1412811
TreeView+ depends on / blocked
 
Reported: 2016-06-07 09:06 UTC by Adam Mariš
Modified: 2024-08-27 08:49 UTC (History)
47 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-05-20 21:15:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2016-06-07 09:06:36 UTC
There was a missing check for negative parameter value in Buffer() and Buffer.allocUnsafe(). When user input is passed unchecked to the Buffer constructor or allocUnsafe(), it can expose parts of the memory slab used by other Buffers in the application.

External Reference:

https://nodejs.org/en/blog/release/v6.2.1/

Upstream patch:

https://github.com/nodejs/node/pull/7051

Comment 2 Adam Mariš 2016-06-07 09:07:50 UTC
Created nodejs tracking bugs for this issue:

Affects: fedora-all [bug 1343395]
Affects: epel-all [bug 1343396]

Comment 5 Jason Shepherd 2018-04-03 04:44:32 UTC
Openshift Enterprise references the latest RHSCL image, which contains 4.6.2. Marking as not affected.
https://github.com/openshift/library/blob/master/official/nodejs/imagestreams/nodejs-rhel7.json


Note You need to log in before you can comment on or make changes to this bug.