Lucene search
K

Loading a bgzip block can write out of bounds if size overflows.

🗓️ 07 Jan 2021 12:00:00Reported by rustsecType 
rustsec
 rustsec
🔗 rustsec.org👁 17 Views

Loading a bgzip block can write out of bounds if size overflows. Affected versions of `bam` set the length of an internal buffer using `self.compressed.set_len(block_size - HEADER_SIZE - MIN_EXTRA_SIZE)` and then wrote into it. While `block_size` was constrained to a proper maximum, when it was too small the subtraction could overflow negatively to a large number past the capacity of `self.compressed`. This can result in memory corruption in the form of writing out of bounds when loading a `bgzip` file with a small `block_size`. Commit `061eee38d4` fixed this issue by checking for the underflow when setting the buffer size

Related
Detection
ReporterTitlePublishedViews
Family
Circl
CVE-2021-28027
5 Mar 202112:47
circl
CNNVD
Rust 数字错误漏洞
5 Mar 202100:00
cnnvd
CNVD
Rust Number Error Vulnerability
11 Mar 202100:00
cnvd
CVE
CVE-2021-28027
5 Mar 202108:40
cve
Cvelist
CVE-2021-28027
5 Mar 202108:40
cvelist
EUVD
EUVD-2022-3606
3 Oct 202520:07
euvd
Github Security Blog
Loading a bgzip block can write out of bounds if size overflows.
24 May 202217:43
github
NVD
CVE-2021-28027
5 Mar 202109:15
nvd
OSV
GHSA-CPQJ-R29Q-CHRH Loading a bgzip block can write out of bounds if size overflows.
24 May 202217:43
osv
OSV
RUSTSEC-2021-0027 Loading a bgzip block can write out of bounds if size overflows.
7 Jan 202112:00
osv
Rows per page
Vulners
Node
tprodanovbamRange0.0.00.1.3rust

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

13 Jun 2023 13:10Current
2.4Low risk
Vulners AI Score2.4
CVSS 27.5
CVSS 3.19.8
EPSS0.00433
17