CVE-2024-46677

gtp: fix a potential NULL pointer dereference

No CVSS score yet EPSS 0.26%

Published 13 Sep 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-46677

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-46677 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 29 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before 620fe9809752fae91b4190e897b81ed9976dfb39
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before 8bbb9e4e0e66a39282e582d0440724055404b38c
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before 4643b91691e969b1b9ad54bf552d7a990cfa3b87
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before e8b9930b0eb045d19e883c65ff9676fc89320c70
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before 28c67f0f84f889fe9f4cbda8354132b20dc9212d
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before 612edd35f2a3910ab1f61c1f2338889d4ba99fa2
affected from 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9, before defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda
Other versions: unaffected
Linux
affected 4.12
unaffected before 4.12
unaffected from 4.19.321 up to and including 4.19.*
unaffected from 5.4.283 up to and including 5.4.*
unaffected from 5.10.225 up to and including 5.10.*
unaffected from 5.15.166 up to and including 5.15.*
unaffected from 6.1.108 up to and including 6.1.*
unaffected from 6.6.49 up to and including 6.6.*
unaffected from 6.10.8 up to and including 6.10.*
unaffected 6.11 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-46677 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-46677

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-46677
trivy image --scanners vuln IMAGE | grep CVE-2024-46677

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-46677 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.