CVE-2024-46677

gtp: fix a potential NULL pointer dereference

MEDIUM
5.5
CVSS Score
Published: September 13, 2024 at 05:29 AM UTC
Updated: June 17, 2026 at 07:55 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 4.19.3214.12 ≤ v < 5.10.2254.12 ≤ v < 5.15.1664.12 ≤ v < 5.4.2834.12 ≤ v < 6.1.1084.12 ≤ v < 6.10.84.12 ≤ v < 6.114.12 ≤ v < 6.6.494.20 ≤ v < 5.4.2835.11 ≤ v < 5.15.1665.16 ≤ v < 6.1.1085.5 ≤ v < 5.10.2256.2 ≤ v < 6.6.496.7 ≤ v < 6.10.81e3a3abd8b28cfda9d0d0167e50e0fe11bc372a96.11 rc16.11 rc26.11 rc36.11 rc46.11 rc5
Vendor states this is fixed in 28c67f0f84f889fe9f4cbda8354132b20dc9212d (fixed)
Vendor states this is fixed in 4643b91691e969b1b9ad54bf552d7a990cfa3b87 (fixed)
Vendor states this is fixed in 612edd35f2a3910ab1f61c1f2338889d4ba99fa2 (fixed)
Vendor states this is fixed in 620fe9809752fae91b4190e897b81ed9976dfb39 (fixed)
Vendor states this is fixed in 8bbb9e4e0e66a39282e582d0440724055404b38c (fixed)
Vendor states this is fixed in bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e (fixed)
Vendor states this is fixed in defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda (fixed)
Vendor states this is fixed in e8b9930b0eb045d19e883c65ff9676fc89320c70 (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 4.19.321 (unaffected)
Vendor states this is fixed in 5.10.225 (unaffected)
Vendor states this is fixed in 5.15.166 (unaffected)
Vendor states this is fixed in 5.4.283 (unaffected)
Vendor states this is fixed in 6.1.108 (unaffected)
Vendor states this is fixed in 6.10.8 (unaffected)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.6.49 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/28c67f0f84f889fe9f4cbda8354132b20dc9212d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4643b91691e969b1b9ad54bf552d7a990cfa3b87
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/612edd35f2a3910ab1f61c1f2338889d4ba99fa2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/620fe9809752fae91b4190e897b81ed9976dfb39
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8bbb9e4e0e66a39282e582d0440724055404b38c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bdd99e5f0ad5fa727b16f2101fe880aa2bff2f8e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/defd8b3c37b0f9cb3e0f60f47d3d78d459d57fda
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e8b9930b0eb045d19e883c65ff9676fc89320c70

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card