CVE-2021-22940
nodejs: Use-after-free on close http2 on stream canceling
Overview
Description
Node.js before 16.6.1, 14.17.5, and 12.22.5 is vulnerable to a use after free attack where an attacker might be able to exploit the memory corruption, to change process behavior.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-416
Affected packages · 2
Operating systems · 58 fixes
Oracle Linux 1 release · 4 packages
fixed 4
nodejs
npm
nodejs-nodemon
nodejs-packaging
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:14.17.5-1.module+el8.4.0+20313+f90c2973 |
| 8 | npm | 1:6.14.14-1.14.17.5.1.module+el8.4.0+20313+f90c2973 |
| 8 | nodejs-nodemon | 2.0.3-1.module+el8.4.0+20281+eb64e322 |
| 8 | nodejs-packaging | 23-3.module+el8.3.0+7818+6cd30d85 |
Photon OS 1 release · 1 package
fixed 1
nodejs
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 14.17.5-1.ph4 |
Red Hat 3 releases · 10 packages
fixed 22
rh-nodejs12-nodejs
rh-nodejs14-nodejs
rh-nodejs14-nodejs-nodemon
rh-nodejs12-nodejs-nodemon
rh-nodejs12-npm
rh-nodejs14-npm
+4
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-nodejs12-nodejs +2 | 0:12.22.5-1.el7 | RHSA-2021:3281 |
| 7 | rh-nodejs14-nodejs +2 | 0:14.17.5-1.el7 | RHSA-2021:3280 |
| 7 | rh-nodejs14-nodejs-nodemon | 0:2.0.3-5.el7 | RHSA-2021:3280 |
| 7 | rh-nodejs12-nodejs-nodemon | 0:2.0.3-5.el7 | RHSA-2021:3281 |
| 7 | rh-nodejs12-npm | 0:6.14.14-12.22.5.1.el7 | RHSA-2021:3281 |
| 7 | rh-nodejs14-npm | 0:6.14.14-14.17.5.1.el7 | RHSA-2021:3280 |
16 more rows
alma 2 releases · 4 packages
fixed 6
nodejs-packaging
nodejs
npm
nodejs-nodemon
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:12) | nodejs-packaging | 17-3.module_el8.3.0+2023+d2377ea3 |
| 8 (nodejs:12) | nodejs +3 | 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 |
| 8 (nodejs:12) | npm | 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7 |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f |
| 8 (nodejs:14) | nodejs-nodemon | 2.0.3-1.module_el8.4.0+2521+c668cc9f |
| 8 (nodejs:14) | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 |
debian 4 releases · 1 package
fixed 4
nodejs
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs | 10.24.0~dfsg-1~deb10u2 |
| 12 | nodejs | 12.22.5~dfsg-1 |
| 13 | nodejs | 12.22.5~dfsg-1 |
| 14 | nodejs | 12.22.5~dfsg-1 |
echo 1 release · 1 package
fixed 1
nodejs
| Release | Package | Fixed in |
|---|---|---|
| nodejs | 12.22.5~dfsg-1 |
openSUSE 1 release · 2 packages
fixed 2
nodejs14
nodejs16
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | nodejs14 +3 | 14.17.5-1.2 | openSUSE-SU-2024:11096-1 |
| Tumbleweed | nodejs16 +3 | 16.6.2-2.2 | openSUSE-SU-2024:11097-1 |
rocky 3 releases · 4 packages
fixed 17
nodejs
npm
nodejs-packaging
nodejs-nodemon
| Release | Package | Fixed in |
|---|---|---|
| 8 | nodejs +3 | 1:12.22.5-1.module+el8.4.0+647+e905fa21 |
| 8 | npm | 1:6.14.14-1.12.22.5.1.module+el8.4.0+647+e905fa21 |
| 8 (nodejs:12) | nodejs-packaging | 17-3.module+el8.3.0+101+f84c7154 |
| 8 (nodejs:12) | nodejs +3 | 1:12.22.5-1.module+el8.4.0+647+e905fa21 |
| 8 (nodejs:12) | npm | 1:6.14.14-1.12.22.5.1.module+el8.4.0+647+e905fa21 |
| 8 (nodejs:12) | nodejs-nodemon | 2.0.3-1.module+el8.3.0+100+234774f7 |
11 more rows
root.io debian 1 release · 1 package
fixed 1
rootio-nodejs
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-nodejs | 12.22.5~dfsg-1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2021:3666
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-22940
- bugzilla.redhat.com https://bugzilla.redhat.com/1956818
- bugzilla.redhat.com https://bugzilla.redhat.com/1988342
- bugzilla.redhat.com https://bugzilla.redhat.com/1988394
- bugzilla.redhat.com https://bugzilla.redhat.com/1990409
- bugzilla.redhat.com https://bugzilla.redhat.com/1990415
- bugzilla.redhat.com https://bugzilla.redhat.com/1993019
- bugzilla.redhat.com https://bugzilla.redhat.com/1993029
- bugzilla.redhat.com https://bugzilla.redhat.com/1993039
Show all 43 references
- bugzilla.redhat.com https://bugzilla.redhat.com/1993924
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1956818
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1988342
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1988394
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1990409
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1990415
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993019
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993029
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993039
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1993924
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22930
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22931
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22939
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22940
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23343
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32803
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32804
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3672
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2021-3666.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:3666
- hackerone.com https://hackerone.com/reports/1238162
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-22940.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-3666.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/10/msg00006.html
- nodejs.org https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-22940
- security.gentoo.org https://security.gentoo.org/glsa/202401-02
- security.netapp.com https://security.netapp.com/advisory/ntap-20210923-0001/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-22940
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpuoct2021.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.