{"id":"UBUNTU-CVE-2021-29939","details":"An issue was discovered in the stackvector crate through 2021-02-19 for Rust. There is an out-of-bounds write in StackVec::extend if size_hint provides certain anomalous data.","modified":"2026-05-20T16:04:54.340431905Z","published":"2021-04-01T05:15:00Z","upstream":["CVE-2021-29939"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-29939"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2021-0048.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-29939"}],"affected":[{"package":{"name":"rust-stackvector","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-stackvector?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.6-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-stackvector-dev","binary_version":"1.0.6-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29939.json"}},{"package":{"name":"rust-stackvector","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rust-stackvector?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.6-3","1.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-stackvector-dev","binary_version":"1.1.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29939.json"}},{"package":{"name":"rust-stackvector","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-stackvector?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.1-1","binary_name":"librust-stackvector-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29939.json"}},{"package":{"name":"rust-stackvector","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-stackvector?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-stackvector-dev","binary_version":"1.1.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29939.json"}},{"package":{"name":"rust-stackvector","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-stackvector?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-1","1.1.1-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.1-1build1","binary_name":"librust-stackvector-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29939.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"type":"Ubuntu","score":"medium"}]}