In the Linux kernel, the following vulnerability has been resolved:
gtp: fix a potential NULL pointer dereference
When sockfdlookup() fails, gtpencapenablesocket() returns a NULL pointer, but its callers only check for error pointers thus miss the NULL pointer case.
Fix it by returning an error pointer with the error code carried from sockfd_lookup().
(I found this bug during code inspection.)
[
{
"id": "CVE-2024-46677-08773ada",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"217253704654071595802447490475615198241",
"232559935211030773043651436611263174333",
"283964656259118623510665276693122116627",
"38660213001667095342698166101457419215"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@620fe9809752fae91b4190e897b81ed9976dfb39",
"target": {
"file": "drivers/net/gtp.c"
}
},
{
"id": "CVE-2024-46677-63adbcb5",
"signature_version": "v1",
"digest": {
"length": 957.0,
"function_hash": "37124200888870360179715593444793928587"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bbb9e4e0e66a39282e582d0440724055404b38c",
"target": {
"file": "drivers/net/gtp.c",
"function": "gtp_encap_enable_socket"
}
},
{
"id": "CVE-2024-46677-69e355df",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"217253704654071595802447490475615198241",
"232559935211030773043651436611263174333",
"283964656259118623510665276693122116627",
"38660213001667095342698166101457419215"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4643b91691e969b1b9ad54bf552d7a990cfa3b87",
"target": {
"file": "drivers/net/gtp.c"
}
},
{
"id": "CVE-2024-46677-7555f839",
"signature_version": "v1",
"digest": {
"length": 957.0,
"function_hash": "37124200888870360179715593444793928587"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@620fe9809752fae91b4190e897b81ed9976dfb39",
"target": {
"file": "drivers/net/gtp.c",
"function": "gtp_encap_enable_socket"
}
},
{
"id": "CVE-2024-46677-931a85d2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"217253704654071595802447490475615198241",
"232559935211030773043651436611263174333",
"283964656259118623510665276693122116627",
"38660213001667095342698166101457419215"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e8b9930b0eb045d19e883c65ff9676fc89320c70",
"target": {
"file": "drivers/net/gtp.c"
}
},
{
"id": "CVE-2024-46677-97c75f35",
"signature_version": "v1",
"digest": {
"length": 1074.0,
"function_hash": "114120257834980924334097936364171720008"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda",
"target": {
"file": "drivers/net/gtp.c",
"function": "gtp_encap_enable_socket"
}
},
{
"id": "CVE-2024-46677-9f197875",
"signature_version": "v1",
"digest": {
"length": 957.0,
"function_hash": "37124200888870360179715593444793928587"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4643b91691e969b1b9ad54bf552d7a990cfa3b87",
"target": {
"file": "drivers/net/gtp.c",
"function": "gtp_encap_enable_socket"
}
},
{
"id": "CVE-2024-46677-bc59ef8e",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"217253704654071595802447490475615198241",
"232559935211030773043651436611263174333",
"283964656259118623510665276693122116627",
"38660213001667095342698166101457419215"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e",
"target": {
"file": "drivers/net/gtp.c"
}
},
{
"id": "CVE-2024-46677-c35b2d5b",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"217253704654071595802447490475615198241",
"232559935211030773043651436611263174333",
"283964656259118623510665276693122116627",
"38660213001667095342698166101457419215"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bbb9e4e0e66a39282e582d0440724055404b38c",
"target": {
"file": "drivers/net/gtp.c"
}
},
{
"id": "CVE-2024-46677-cd7081d9",
"signature_version": "v1",
"digest": {
"length": 957.0,
"function_hash": "37124200888870360179715593444793928587"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e8b9930b0eb045d19e883c65ff9676fc89320c70",
"target": {
"file": "drivers/net/gtp.c",
"function": "gtp_encap_enable_socket"
}
},
{
"id": "CVE-2024-46677-d379c920",
"signature_version": "v1",
"digest": {
"length": 957.0,
"function_hash": "37124200888870360179715593444793928587"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e",
"target": {
"file": "drivers/net/gtp.c",
"function": "gtp_encap_enable_socket"
}
},
{
"id": "CVE-2024-46677-f509f254",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"217253704654071595802447490475615198241",
"232559935211030773043651436611263174333",
"283964656259118623510665276693122116627",
"38660213001667095342698166101457419215"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda",
"target": {
"file": "drivers/net/gtp.c"
}
}
]