Commit d4d9f39
src,lib: refactor unsafe buffer creation to remove zero-fill toggle
This removes the zero-fill toggle mechanism that allowed JavaScript
to control ArrayBuffer initialization via shared memory. Instead,
unsafe buffer creation now uses a dedicated C++ API.
Refs: https://hackerone.com/reports/3405778
Co-Authored-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: nodejs-private/node-private#759
Backport-PR-URL: nodejs-private/node-private#798
CVE-ID: CVE-2025-551311 parent 6badf4e commit d4d9f39Copy full SHA for d4d9f39
File tree
Expand file treeCollapse file tree
5 files changed
+78
-55
lines changedOpen diff view settings
Filter options
- deps/v8
- include
- src/api
- lib/internal
- process
- src
Expand file treeCollapse file tree
5 files changed
+78
-55
lines changedOpen diff view settings
Collapse file
deps/v8/include/v8-array-buffer.h
Copy file name to clipboardExpand all lines: deps/v8/include/v8-array-buffer.h+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
244 | 244 | |
245 | 245 | |
246 | 246 | |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
247 | 254 | |
248 | 255 | |
249 | 256 | |
|
Collapse file
+17Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8930 | 8930 | |
8931 | 8931 | |
8932 | 8932 | |
| 8933 | + |
| 8934 | + |
| 8935 | + |
| 8936 | + |
| 8937 | + |
| 8938 | + |
| 8939 | + |
| 8940 | + |
| 8941 | + |
| 8942 | + |
| 8943 | + |
| 8944 | + |
| 8945 | + |
| 8946 | + |
| 8947 | + |
| 8948 | + |
| 8949 | + |
8933 | 8950 | |
8934 | 8951 | |
8935 | 8952 | |
|
Collapse file
+5-18Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
34 | 34 | |
35 | 35 | |
36 | 36 | |
| ||
1079 | 1079 | |
1080 | 1080 | |
1081 | 1081 | |
1082 | | - |
1083 | | - |
1084 | | - |
1085 | | - |
1086 | | - |
1087 | 1082 | |
1088 | | - |
1089 | | - |
| 1083 | + |
| 1084 | + |
| 1085 | + |
1090 | 1086 | |
1091 | | - |
1092 | | - |
1093 | 1087 | |
1094 | | - |
1095 | 1088 | |
1096 | | - |
1097 | | - |
1098 | | - |
1099 | | - |
1100 | | - |
1101 | | - |
| 1089 | + |
1102 | 1090 | |
1103 | 1091 | |
1104 | 1092 | |
| ||
1109 | 1097 | |
1110 | 1098 | |
1111 | 1099 | |
1112 | | - |
1113 | 1100 | |
Collapse file
lib/internal/process/pre_execution.js
Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
27 | 26 | |
28 | 27 | |
29 | 28 | |
| ||
98 | 97 | |
99 | 98 | |
100 | 99 | |
101 | | - |
102 | 100 | |
103 | 101 | |
104 | 102 | |
|
Collapse file
+49-35Lines changed: 49 additions & 35 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
81 | 80 | |
82 | 81 | |
83 | 82 | |
| ||
1229 | 1228 | |
1230 | 1229 | |
1231 | 1230 | |
1232 | | - |
1233 | | - |
1234 | | - |
1235 | | - |
1236 | | - |
1237 | | - |
1238 | | - |
1239 | | - |
1240 | | - |
1241 | | - |
1242 | | - |
1243 | | - |
1244 | | - |
1245 | | - |
1246 | | - |
1247 | | - |
1248 | | - |
1249 | | - |
1250 | | - |
1251 | | - |
1252 | | - |
1253 | | - |
1254 | | - |
1255 | | - |
1256 | | - |
1257 | | - |
1258 | | - |
1259 | | - |
1260 | | - |
1261 | | - |
1262 | | - |
1263 | 1231 | |
1264 | 1232 | |
1265 | 1233 | |
| ||
1433 | 1401 | |
1434 | 1402 | |
1435 | 1403 | |
| 1404 | + |
| 1405 | + |
| 1406 | + |
| 1407 | + |
| 1408 | + |
| 1409 | + |
| 1410 | + |
| 1411 | + |
| 1412 | + |
| 1413 | + |
| 1414 | + |
| 1415 | + |
| 1416 | + |
| 1417 | + |
| 1418 | + |
| 1419 | + |
| 1420 | + |
| 1421 | + |
| 1422 | + |
| 1423 | + |
| 1424 | + |
| 1425 | + |
| 1426 | + |
| 1427 | + |
| 1428 | + |
| 1429 | + |
| 1430 | + |
| 1431 | + |
| 1432 | + |
| 1433 | + |
| 1434 | + |
| 1435 | + |
| 1436 | + |
| 1437 | + |
| 1438 | + |
| 1439 | + |
| 1440 | + |
| 1441 | + |
| 1442 | + |
| 1443 | + |
| 1444 | + |
| 1445 | + |
| 1446 | + |
| 1447 | + |
| 1448 | + |
| 1449 | + |
1436 | 1450 | |
1437 | 1451 | |
1438 | 1452 | |
| ||
1550 | 1564 | |
1551 | 1565 | |
1552 | 1566 | |
| 1567 | + |
| 1568 | + |
1553 | 1569 | |
1554 | 1570 | |
1555 | 1571 | |
| ||
1599 | 1615 | |
1600 | 1616 | |
1601 | 1617 | |
1602 | | - |
1603 | | - |
1604 | 1618 | |
1605 | 1619 | |
1606 | 1620 | |
| ||
1649 | 1663 | |
1650 | 1664 | |
1651 | 1665 | |
1652 | | - |
1653 | 1666 | |
1654 | 1667 | |
| 1668 | + |
1655 | 1669 | |
1656 | 1670 | |
1657 | 1671 | |
|
0 commit comments