CVE-2024-46677

Source
https://cve.org/CVERecord?id=CVE-2024-46677
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46677.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46677
Downstream
Related
Published
2024-09-13T05:29:12.203Z
Modified
2026-03-11T07:55:04.656055Z
Summary
gtp: fix a potential NULL pointer dereference
Details

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.)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46677.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9
Fixed
620fe9809752fae91b4190e897b81ed9976dfb39
Fixed
bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e
Fixed
8bbb9e4e0e66a39282e582d0440724055404b38c
Fixed
4643b91691e969b1b9ad54bf552d7a990cfa3b87
Fixed
e8b9930b0eb045d19e883c65ff9676fc89320c70
Fixed
28c67f0f84f889fe9f4cbda8354132b20dc9212d
Fixed
612edd35f2a3910ab1f61c1f2338889d4ba99fa2
Fixed
defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46677.json"