CVE-2024-38612

ipv6: sr: fix invalid unregister error path

7.0 high EPSS 0.66%

Published 19 Jun 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-38612

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-38612 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:

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.

Severity (CVSS)

7.0 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
9.8 critical CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

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

The assessment of CISA (SSVC, 25 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 46738b1317e169b281ad74690276916e24d1be6d, before 10610575a3ac2a702bf5c57aa931beaf847949c7
affected from 46738b1317e169b281ad74690276916e24d1be6d, before 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4
affected from 46738b1317e169b281ad74690276916e24d1be6d, before 00e6335329f23ac6cf3105931691674e28bc598c
affected from 46738b1317e169b281ad74690276916e24d1be6d, before 1a63730fb315bb1bab97edd69ff58ad45e04bb01
affected from 46738b1317e169b281ad74690276916e24d1be6d, before e77a3ec7ada84543e75722a1283785a6544de925
affected from 46738b1317e169b281ad74690276916e24d1be6d, before 3398a40dccb88d3a7eef378247a023a78472db66
affected from 46738b1317e169b281ad74690276916e24d1be6d, before 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a
affected from 46738b1317e169b281ad74690276916e24d1be6d, before c04d6a914e890ccea4a9d11233009a2ee7978bf4
affected from 46738b1317e169b281ad74690276916e24d1be6d, before 160e9d2752181fcf18c662e74022d77d3164cd45
Other versions: unaffected
Linux
affected 4.10
unaffected before 4.10
unaffected from 4.19.316 up to and including 4.19.*
unaffected from 5.4.278 up to and including 5.4.*
unaffected from 5.10.219 up to and including 5.10.*
unaffected from 5.15.161 up to and including 5.15.*
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.8.12 up to and including 6.8.*
unaffected from 6.9.3 up to and including 6.9.*
unaffected 6.10 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-38612 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38612

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-38612
trivy image --scanners vuln IMAGE | grep CVE-2024-38612

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-38612 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.