Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

v8: backport fix for CVE-2013-6639 and CVE-2013-6640 #6698

Closed

Conversation

tchollingsworth
Copy link

Quoting CVE-2013-6639:

The DehoistArrayIndex function in hydrogen-dehoist.cc in Google V8 before
3.22.24.7, as used in Google Chrome before 31.0.1650.63, allows remote
attackers to cause a denial of service (out-of-bounds write) or possibly
have unspecified other impact via JavaScript code that sets the value of an
array element with a crafted index.

Quoting CVE-2013-6640:

The DehoistArrayIndex function in hydrogen-dehoist.cc in Google V8 before
3.22.24.7, as used in Google Chrome before 31.0.1650.63, allows remote
attackers to cause a denial of service (out-of-bounds read) via JavaScript
code that sets a variable to the value of an array element with a crafted
index.

Like 6b92a7, this is unlikely to affect node.js because it only runs local,
trusted code. However, if there exists some module somewhere that populates
an array index with remotely provided data this could very well be used to crash
a remote server running node. Defense in depth and all.

This is a backport of upstream commit r17801. Original commit log:

Limit size of dehoistable array indices

LOG=Y
BUG=chromium:319835,chromium:319860
R=dslomov@chromium.org

Review URL: https://codereview.chromium.org/74113002

You could also fix this by just bumping the v8 in master, but that's a little more involved so I'll leave that to you if that's what you'd prefer. ;-)

@Nodejs-Jenkins
Copy link

Thank you for contributing this pull request! Here are a few pointers to make sure your submission will be considered for inclusion.

Commit tchollingsworth/node@09a9b8e has the following error(s):

  • First line of commit message must be no longer than 50 characters
  • Commit message line too long: 4
  • Commit message line too long: 5
  • Commit message line too long: 6
  • Commit message line too long: 7
  • Commit message line too long: 12
  • Commit message line too long: 13
  • Commit message line too long: 14
  • Commit message line too long: 15
  • Commit message line too long: 18
  • Commit message line too long: 19
  • Commit message line too long: 20

The following commiters were not found in the CLA:

You can fix all these things without opening another issue.

Please see CONTRIBUTING.md for more information

Quoting CVE-2013-6639:

    The DehoistArrayIndex function in hydrogen-dehoist.cc in Google V8
    before 3.22.24.7, as used in Google Chrome before 31.0.1650.63,
    allows remote attackers to cause a denial of service (out-of-bounds
    write) or possibly have unspecified other impact via JavaScript code
    that sets the value of an array element with a crafted index.

Quoting CVE-2013-6640:

    The DehoistArrayIndex function in hydrogen-dehoist.cc in Google V8
    before 3.22.24.7, as used in Google Chrome before 31.0.1650.63,
    allows remote attackers to cause a denial of service (out-of-bounds
    read) via JavaScript code that sets a variable to the value of an
    array element with a crafted index.

Like 6b92a7, this is unlikely to affect node.js because it only runs
local, trusted code.  However, if there exists some module somewhere
that populates an array index with remotely provided data this could
very well be used to crash a remote server running node.  Defense in
depth and all.

This is a backport of upstream commit r17801. Original commit log:

    Limit size of dehoistable array indices

    LOG=Y
    BUG=chromium:319835,chromium:319860
    R=dslomov@chromium.org

    Review URL: https://codereview.chromium.org/74113002
@indutny
Copy link
Member

indutny commented Dec 13, 2013

Landed through merge, will do a clean update in master.

@indutny indutny closed this Dec 13, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants