Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1620219 - (CVE-2018-12115) CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding
CVE-2018-12115 nodejs: Out of bounds (OOB) write via UCS-2 encoding
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20180811,repo...
: Security
Depends On: 1621655 1621656 1621762 1621764 1621766 1623735 1623736 1638279 1621652 1621654 1621657 1621761 1621763
Blocks: 1620220
  Show dependency treegraph
 
Reported: 2018-08-22 13:47 EDT by Pedro Sampaio
Modified: 2018-10-18 06:10 EDT (History)
44 users (show)

See Also:
Fixed In Version: nodejs 10.9.0, nodejs 8.11.4, nodejs 6.14.4
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2552 None None None 2018-08-22 17:12 EDT
Red Hat Product Errata RHSA-2018:2553 None None None 2018-08-22 17:14 EDT
Red Hat Product Errata RHSA-2018:2944 None None None 2018-10-18 03:44 EDT
Red Hat Product Errata RHSA-2018:2949 None None None 2018-10-18 06:10 EDT

  None (edit)
Description Pedro Sampaio 2018-08-22 13:47:27 EDT
Node.js TSC member Сковорода Никита Андреевич (Nikita Skovoroda / @ChALkeR) discovered an OOB write in Buffer that can be used to write to memory outside of a Buffer's memory space. This can corrupt unrelated Buffer objects or cause the Node.js process to crash.

When used with UCS-2 encoding (recognized by Node.js under the names 'ucs2', 'ucs-2', 'utf16le' and 'utf-16le'), Buffer#write() can be abused to write outside of the bounds of a single Buffer. Writes that start from the second-to-last position of a buffer cause a miscalculation of the maximum length of the input bytes to be written.

Impact:

All previous versions of Node.js 6.x (LTS "Boron") are vulnerable
All previous versions of Node.js 8.x (LTS "Carbon") are vulnerable
All previous versions of Node.js 10.x (Current) are vulnerable

References:

https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/
Comment 1 Scott Gayou 2018-08-22 16:50:15 EDT
Upstream Fix:

https://github.com/nodejs/node/commit/fc14d812b7
Comment 2 errata-xmlrpc 2018-08-22 17:12:44 EDT
This issue has been addressed in the following products:

  Red Hat OpenShift Application Runtimes Node.js 8

Via RHSA-2018:2552 https://access.redhat.com/errata/RHSA-2018:2552
Comment 3 errata-xmlrpc 2018-08-22 17:14:32 EDT
This issue has been addressed in the following products:

  Red Hat OpenShift Application Runtimes Node.js 10

Via RHSA-2018:2553 https://access.redhat.com/errata/RHSA-2018:2553
Comment 4 Scott Gayou 2018-08-23 13:13:14 EDT
All versions impacted. nodejs advisory doesn't mention 4.x, which also segfaults. Guessing because node 4 is end of lifed.
Comment 6 Scott Gayou 2018-08-23 13:28:06 EDT
Created nodejs tracking bugs for this issue:

Affects: epel-all [bug 1621655]
Affects: fedora-all [bug 1621656]
Comment 11 Jason Shepherd 2018-08-27 22:13:27 EDT
Statement:

Openshift Container Platform 3.x versions are potentially vulnerable via the nodejs-slave-jenkins and nodejs-node-jenkins components. However a build would have to occur with a malicious jenkins pipeline, or nodejs source code supplied by an attacker, reducing the impact of this flaw to moderate.
Comment 13 Jason Shepherd 2018-08-27 22:32:31 EDT
Mitigation:

On Openshift Container Platform 3.x you can override the container image used on the Jenkins Slave by specifying the JENKINS_SLAVE_IMAGE environment variable in your jenkins deployment configuration. Ref:

https://github.com/openshift/jenkins/blob/8e1ab16fb5f44d6570018c5dfa3407692fdba6e5/2/contrib/jenkins/kube-slave-common.sh#L27-L33
Comment 14 Jason Shepherd 2018-08-28 02:14:38 EDT
The logging-kibana component of Openshift Container Platform 3.x does't write to any Buffers, so is not affected by this vulnerability.
Comment 15 Jason Shepherd 2018-08-29 04:01:18 EDT
The logging-auth-proxy component of Openshift Container Platform 3.x uses NodeJS 0.10 which is not affected by this issue.
Comment 16 Jason Shepherd 2018-08-30 00:01:22 EDT
.
Comment 20 Tomas Hoger 2018-09-10 10:29:31 EDT
Fixed upstream in Node.js 6.14.4, 8.11.4, and 10.9.0:

https://nodejs.org/en/blog/release/v6.14.4/
https://nodejs.org/en/blog/release/v8.11.4/
https://nodejs.org/en/blog/release/v10.9.0/
Comment 23 errata-xmlrpc 2018-10-18 03:44:18 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS

Via RHSA-2018:2944 https://access.redhat.com/errata/RHSA-2018:2944
Comment 24 errata-xmlrpc 2018-10-18 06:10:35 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2018:2949 https://access.redhat.com/errata/RHSA-2018:2949

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