In libarchive before 3.6.2, the software does not check for an error after calling calloc function that can return with a NULL pointer if the function...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSlibarchive |
< 3.1.2-7ubuntu2.8+esm3→ 3.1.2-7ubuntu2.8+esm3 |
3.1.2-7ubuntu2.8+esm3 |
| Ubuntu:Pro:16.04:LTSlibarchive |
< 3.1.2-11ubuntu0.16.04.8+esm1→ 3.1.2-11ubuntu0.16.04.8+esm1 |
3.1.2-11ubuntu0.16.04.8+esm1 |
| Ubuntu:Pro:18.04:LTSlibarchive |
< 3.2.2-3.1ubuntu0.7+esm1→ 3.2.2-3.1ubuntu0.7+esm1 |
3.2.2-3.1ubuntu0.7+esm1 |
| Ubuntu:20.04:LTSlibarchive |
< 3.4.0-2ubuntu1.3→ 3.4.0-2ubuntu1.3 |
3.4.0-2ubuntu1.3 |
| Ubuntu:22.04:LTSlibarchive |
< 3.6.0-1ubuntu1.2→ 3.6.0-1ubuntu1.2 |
3.6.0-1ubuntu1.2 |
Original description The description as published by the source.
In libarchive before 3.6.2, the software does not check for an error after calling calloc function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference. NOTE: the discoverer cites this CWE-476 remark but third parties dispute the code-execution impact: "In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution."
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report github.com
- report cve.org