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

Medium 5.5 Published Updated

A NULL pointer dereference in the Linux kernel GTP module can cause a system crash when socket lookup fails.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-46677?

CVE-2024-46677 is a medium-severity vulnerability in Linux kernel, published on 13 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-476

Which versions are affected by CVE-2024-46677?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46677?

Apply the vendor's patch.

Is CVE-2024-46677 being exploited?

There is no known exploitation of CVE-2024-46677 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-49167, AZL-49227, BELL-CVE-2024-46677, DEBIAN-CVE-2024-46677, GHSA-64qj-9hxc-x9rc, UBUNTU-CVE-2024-46677.

Is CVE-2024-46677 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free