An issue was discovered in klibc before 2.0.9. Additions in the malloc() function may result in an integer overflow and a subsequent heap buffer overflow.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31873.json"
[
{
"signature_type": "Line",
"source": "https://github.com/huolinjue/klibc/commit/2e48a12ab1e30d43498c2d53e878a11a1b5102d5",
"id": "CVE-2021-31873-72e70cd3",
"deprecated": false,
"target": {
"file": "usr/utils/cpio.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"308283541531381744514487166056665852727",
"185068699135860301733489562560209838802",
"132144626656056469567345719663273201775",
"47804530823586436168056557717241444302"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://github.com/huolinjue/klibc/commit/2e48a12ab1e30d43498c2d53e878a11a1b5102d5",
"id": "CVE-2021-31873-abb2255b",
"deprecated": false,
"target": {
"function": "copyin_link",
"file": "usr/utils/cpio.c"
},
"signature_version": "v1",
"digest": {
"length": 697.0,
"function_hash": "272096419306266800040729748449922772828"
}
},
{
"signature_type": "Line",
"source": "https://github.com/huolinjue/klibc/commit/a31ae8c508fc8d1bca4f57e9f9f88127572d5202",
"id": "CVE-2021-31873-b9ffccc1",
"deprecated": false,
"target": {
"file": "usr/klibc/malloc.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"217924328770968556832553208148882712384",
"187361156840409739383989126867014420216",
"283857668055714559123873115374762873854"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://github.com/huolinjue/klibc/commit/a31ae8c508fc8d1bca4f57e9f9f88127572d5202",
"id": "CVE-2021-31873-d7e0cb41",
"deprecated": false,
"target": {
"function": "malloc",
"file": "usr/klibc/malloc.c"
},
"signature_version": "v1",
"digest": {
"length": 1034.0,
"function_hash": "174256505860084667354504871651983070251"
}
}
]
[
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "9.0"
}
]
}
]