CVE-2024-46677

Source
https://nvd.nist.gov/vuln/detail/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
2025-11-28T02:35:23.670771Z
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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.12.0
Fixed
4.19.321
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.283
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.225
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.166
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.108
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.49
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.8