Ubuntu CVE Tracker
UBUNTU-CVE-2022-2879
Details
Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:14.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | golang-1.13 | All versions before 1.13.8-1ubuntu1~16.04.3+esm3 (fixed in 1.13.8-1ubuntu1~16.04.3+esm3) |
| Ubuntu:Pro:16.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~16.04.6 (fixed in 1.18.1-1ubuntu1~16.04.6) |
| Ubuntu:16.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:16.04:LTS | golang-1.6 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~18.04.4 (fixed in 1.18.1-1ubuntu1~18.04.4) |
| Ubuntu:18.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.13 | All versions before 1.13.8-1ubuntu1~18.04.4+esm1 (fixed in 1.13.8-1ubuntu1~18.04.4+esm1) |
| Ubuntu:Pro:18.04:LTS | golang-1.16 | All versions before 1.16.2-0ubuntu1~18.04.2+esm1 (fixed in 1.16.2-0ubuntu1~18.04.2+esm1) |
| Ubuntu:18.04:LTS | golang-1.8 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.9 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.13 | All versions before 1.13.8-1ubuntu1.2 (fixed in 1.13.8-1ubuntu1.2) |
| Ubuntu:20.04:LTS | golang-1.16 | All versions before 1.16.2-0ubuntu1~20.04.1 (fixed in 1.16.2-0ubuntu1~20.04.1) |
| Ubuntu:20.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~20.04.2 (fixed in 1.18.1-1ubuntu1~20.04.2) |
| Ubuntu:20.04:LTS | golang-1.14 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.13 | All versions before 1.13.8-1ubuntu2.22.04.2 (fixed in 1.13.8-1ubuntu2.22.04.2) |
| Ubuntu:22.04:LTS | golang-1.17 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1.1 (fixed in 1.18.1-1ubuntu1.1) |
References
- https://ubuntu.com/security/CVE-2022-2879
- https://go.dev/issue/54853
- https://github.com/golang/go/commit/4fa773cdefd20be093c84f731be7d4febf5536fa
- https://github.com/golang/go/commit/0a723816cd205576945fa57fbdde7e6532d59d08
- https://ubuntu.com/security/notices/USN-6038-1
- https://ubuntu.com/security/notices/USN-6038-2
- https://www.cve.org/CVERecord?id=CVE-2022-2879