CVE-2021-44717
golang: syscall: don't close fd 0 on ForkExec error
Overview
Description
Go before 1.16.12 and 1.17.x before 1.17.5 on UNIX allows write operations to an unintended file or unintended network connection as a consequence of erroneous closing of file descriptor 0 after file-descriptor exhaustion.
Source: OX vulnerability database
Severity
4.8 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness: CWE-404
Affected packages · 2
Operating systems · 51 fixes
Oracle Linux 1 release · 2 packages
fixed 2
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 | go-toolset +7 | 1.16.12-1.module+el8.5.0+20456+eee863d9 |
| 8 | delve | 1.6.0-1.0.1.module+el8.5.0+20332+2a8a7cc5 |
Photon OS 1 release · 2 packages
fixed 2
go
kubernetes-dashboard
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.17.2-2.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
Red Hat 4 releases · 20 packages
eol 2
wont fix 2
fixed 24
affected 1
heketi
golang
atomic-openshift
go-toolset-1-16
cri-o
openshift-clients
+14
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| heketi +2 | eol | — | |
| golang +9 | wont fix | — | |
| 7 | atomic-openshift +31 | eol | — |
| 7 | go-toolset-1-16 +10 | 0:1.16.12-1.el7_9 | RHSA-2021:5176 |
| 7 | cri-o | 0:1.22.1-17.rhaos4.9.git3029b1d.el7 | RHSA-2022:0557 |
| 7 | cri-o | 0:1.23.0-92.rhaos4.10.gitdaab4d1.el7 | RHSA-2022:0055 |
23 more rows
alma 1 release · 2 packages
fixed 2
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.16.12-1.module_el8.5.0+2604+960c7771 |
| 8 (go-toolset:rhel8) | delve | 1.6.0-1.module_el8.5.0+2604+960c7771 |
alpine 4 releases · 1 package
fixed 4
go
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.17.6-r0 |
| 3.23 | go | 1.17.6-r0 |
| 3.24 | go | 1.17.6-r0 |
| edge | go | 1.17.6-r0 |
amazon linux 1 release · 1 package
fixed 1
golang
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +7 | 1.19.3-2.amzn2023.0.2 |
debian 3 releases · 4 packages
fixed 4
golang-1-11
golang-1-15
golang-1-7
golang-1-8
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | 1.11.6-1+deb10u6 |
| 11 | golang-1-15 | 1.15.15-1~deb11u2 |
| 9 | golang-1-7 | 1.7.4-2+deb9u4 |
| 9 | golang-1-8 | 1.8.1-1+deb9u4 |
openSUSE 1 release · 3 packages
fixed 3
apptainer
go1-16
go1-17
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | apptainer | 1.0.1-1.1 | openSUSE-SU-2024:11947-1 |
| Tumbleweed | go1-16 +2 | 1.16.12-1.1 | openSUSE-SU-2024:11671-1 |
| Tumbleweed | go1-17 +2 | 1.17.5-1.1 | openSUSE-SU-2024:11672-1 |
rocky 1 release · 2 packages
fixed 2
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.16.12-1.module+el8.5.0+720+c057d5cf |
| 8 (go-toolset:rhel8) | delve | 1.6.0-1.module+el8.5.0+694+f77f0bfd |
ubuntu 2 releases · 2 packages
affected 2
golang-1-8
golang-1-17
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-8 | affected |
| 22.04 | golang-1-17 | affected |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2021:5160
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-44717
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2030801
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2030806
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44716
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44717
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:5160
- github.com https://github.com/golang/go/commit/44a3fb49d99cc8a4de4925b69650f97bb07faf1d (go1.17.5)
Show all 27 references
- github.com https://github.com/golang/go/issues/50057
- go.dev https://go.dev/cl/370576
- go.dev https://go.dev/cl/370577
- go.dev https://go.dev/cl/370795
- go.dev https://go.dev/issue/50057
- go.googlesource.com https://go.googlesource.com/go/+/a76511f3a40ea69ee4f5cd86e735e1c8a84f0aa2
- groups.google.com https://groups.google.com/g/golang-announce/c/hcmEScgc00k
- groups.google.com https://groups.google.com/g/golang-announce/c/hcmEScgc00k/m/ZWnOjeY4CQAJ
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-44717.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-5160.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/01/msg00016.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/01/msg00017.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-44717
- pkg.go.dev https://pkg.go.dev/vuln/GO-2022-0289
- security.gentoo.org https://security.gentoo.org/glsa/202208-02
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-44717
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.