In the Linux kernel, the following vulnerability has been resolved:
tools/nolibc/stdlib: fix memory error in realloc()
Pass userplen to memcpy() instead of heap->len to prevent realloc() from copying an extra sizeof(heap) bytes from beyond the allocated region.
[
{
"id": "CVE-2024-38585-049918da",
"target": {
"file": "tools/include/nolibc/stdlib.h",
"function": "realloc"
},
"digest": {
"function_hash": "82445946154131400593246448708200071590",
"length": 420.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8019d3dd921f39a237a9fab6d2ce716bfac0f983",
"signature_version": "v1"
},
{
"id": "CVE-2024-38585-1bb44fcb",
"target": {
"file": "tools/include/nolibc/stdlib.h"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"314994384212005354787546834619341353793",
"199153053349531224953938682798770662996",
"237021911308793785894267184204281509581",
"152282273900774250693869163806386271424"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8019d3dd921f39a237a9fab6d2ce716bfac0f983",
"signature_version": "v1"
},
{
"id": "CVE-2024-38585-27374923",
"target": {
"file": "tools/include/nolibc/stdlib.h",
"function": "realloc"
},
"digest": {
"function_hash": "82445946154131400593246448708200071590",
"length": 420.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5996b2b2dac739f2a27da13de8eee5b85b2550b3",
"signature_version": "v1"
},
{
"id": "CVE-2024-38585-5de156e8",
"target": {
"file": "tools/include/nolibc/stdlib.h",
"function": "realloc"
},
"digest": {
"function_hash": "82445946154131400593246448708200071590",
"length": 420.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f678c3c336559cf3255a32153e9a17c1be4e7c15",
"signature_version": "v1"
},
{
"id": "CVE-2024-38585-a4d643d5",
"target": {
"file": "tools/include/nolibc/stdlib.h"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"314994384212005354787546834619341353793",
"199153053349531224953938682798770662996",
"237021911308793785894267184204281509581",
"152282273900774250693869163806386271424"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5996b2b2dac739f2a27da13de8eee5b85b2550b3",
"signature_version": "v1"
},
{
"id": "CVE-2024-38585-adc35342",
"target": {
"file": "tools/include/nolibc/stdlib.h",
"function": "realloc"
},
"digest": {
"function_hash": "82445946154131400593246448708200071590",
"length": 420.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@791f4641142e2aced85de082e5783b4fb0b977c2",
"signature_version": "v1"
},
{
"id": "CVE-2024-38585-d6afb144",
"target": {
"file": "tools/include/nolibc/stdlib.h"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"314994384212005354787546834619341353793",
"199153053349531224953938682798770662996",
"237021911308793785894267184204281509581",
"152282273900774250693869163806386271424"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f678c3c336559cf3255a32153e9a17c1be4e7c15",
"signature_version": "v1"
},
{
"id": "CVE-2024-38585-e0ee5729",
"target": {
"file": "tools/include/nolibc/stdlib.h"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"314994384212005354787546834619341353793",
"199153053349531224953938682798770662996",
"237021911308793785894267184204281509581",
"152282273900774250693869163806386271424"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@791f4641142e2aced85de082e5783b4fb0b977c2",
"signature_version": "v1"
}
]