Linux kernel: IPv6 seg6 init invalid unregister path (CVE-2024-38612)
CVE-2024-38612 Published on June 19, 2024

ipv6: sr: fix invalid unregister error path
In the Linux kernel, the following vulnerability has been resolved: ipv6: sr: fix invalid unregister error path The error path of seg6_init() is wrong in case CONFIG_IPV6_SEG6_LWTUNNEL is not defined. In that case if seg6_hmac_init() fails, the genl_unregister_family() isn't called. This issue exist since commit 46738b1317e1 ("ipv6: sr: add option to control lwtunnel support"), and commit 5559cea2d5aa ("ipv6: sr: fix possible use-after-free and null-ptr-deref") replaced unregister_pernet_subsys() with genl_unregister_family() in this error path.

NVD

Vulnerability Analysis

CVE-2024-38612 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH

Weakness Types

NULL Pointer Dereference

A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. NULL pointer dereference issues can occur through a number of flaws, including race conditions, and simple programming omissions.

What is a Dangling pointer Vulnerability?

Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.

CVE-2024-38612 has been classified to as a Dangling pointer vulnerability or weakness.


Products Associated with CVE-2024-38612

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-38612 are published in these products:

 
 
 

Affected Versions

Linux: Linux: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux acrn: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel: linux_kernel:

Exploit Probability

EPSS
0.17%
Percentile
37.33%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.