5.5medium
gtp: fix a potential NULL pointer dereference
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.32% (higher than 17% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: gtp: fix a potential NULL pointer dereference When sockfd_lookup() fails, gtp_encap_enable_socket() 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.)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before 620fe9809752fae91b4190e897b81ed9976dfb39, from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e, from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before 8bbb9e4e0e66a39282e582d0440724055404b38c, from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before 4643b91691e969b1b9ad54bf552d7a990cfa3b87, from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before e8b9930b0eb045d19e883c65ff9676fc89320c70, from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before 28c67f0f84f889fe9f4cbda8354132b20dc9212d, from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before 612edd35f2a3910ab1f61c1f2338889d4ba99fa2, from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 before defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda and 1 more Not affected: before 4.12, from 4.19.321 up to 4.19.*, from 5.4.283 up to 5.4.*, from 5.10.225 up to 5.10.*, from 5.15.166 up to 5.15.*, from 6.1.108 up to 6.1.* | CVE List |
| linux linux_kernel | from 4.12 before 4.19.321, from 4.20 before 5.4.283, from 5.5 before 5.10.225, from 5.11 before 5.15.166, from 5.16 before 6.1.108, from 6.2 before 6.6.49, from 6.7 before 6.10.8, 6.11 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: gtp: fix a potential NULL pointer dereference When sockfd_lookup() fails, gtp_encap_enable_socket() 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.)
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: gtp: se corrige una posible desreferencia de puntero NULL Cuando sockfd_lookup() falla, gtp_encap_enable_socket() devuelve un puntero NULL, pero sus invocadores solo comprueban los punteros de error, por lo que pasan por alto el caso del puntero NULL. Arréglelo devolviendo un puntero de error con el código de error que lleva sockfd_lookup(). (Encontré este error durante la inspección del código).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-46677 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-46677 changed 2026-06-17 | Public domain |