# CVE-2024-46677: gtp: fix a potential NULL pointer dereference

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 17% of CVEs (2026-11-30)
- Published: 2024-09-13T05:29:12.203Z
- Modified: 2026-06-17T07:55:42.727Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.)

(As written by CVE List.)

## Affected

- 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; 4.12 (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.*; from 6.6.49 up to 6.6.*; from 6.10.8 up to 6.10.*; from 6.11 up to *)
- 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

## References

- <https://git.kernel.org/stable/c/620fe9809752fae91b4190e897b81ed9976dfb39> (patch)
- <https://git.kernel.org/stable/c/bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e> (patch)
- <https://git.kernel.org/stable/c/8bbb9e4e0e66a39282e582d0440724055404b38c> (patch)
- <https://git.kernel.org/stable/c/4643b91691e969b1b9ad54bf552d7a990cfa3b87> (patch)
- <https://git.kernel.org/stable/c/e8b9930b0eb045d19e883c65ff9676fc89320c70> (patch)
- <https://git.kernel.org/stable/c/28c67f0f84f889fe9f4cbda8354132b20dc9212d> (patch)
- <https://git.kernel.org/stable/c/612edd35f2a3910ab1f61c1f2338889d4ba99fa2> (patch)
- <https://git.kernel.org/stable/c/defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

- CVE List: [CVE-2024-46677](https://www.cve.org/CVERecord?id=CVE-2024-46677), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46677](https://nvd.nist.gov/vuln/detail/CVE-2024-46677), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46677 · Whole record: https://cve.day/CVE-2024-46677.json · Rebuilt by cve.day 2026-11-25T22:58:45.372Z
