gtp: fix a potential NULL pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1e3a3abd8b28cfda9d0d0167e50e0fe11bc372a9 · < 28c67f0f84f889fe9f4cbda8354132b20dc9212d| No fix yet |
| Linux Linux |
|
|
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.)
From the CVE record · Linux
The Linux kernel’s GTP code can dereference a NULL pointer when sockfd_lookup() fails and callers fail to recognize the returned NULL value. The input does not establish how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with GTP support should check their versions; affected versions are not specified.