CVE-2024-38612

ipv6: sr: fix invalid unregister error path

HIGH
7
CVSS Score
Published: June 19, 2024 at 01:56 PM UTC
Updated: October 15, 2026 at 01:18 AM UTC
11 products affected across 2 vendorsLinux KernelAcrnSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP Firmware

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
HIGH7
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

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.

Affected

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

All versions
Vendor states this is fixed in 5.10.219 (unaffected)
4.10 ≤ v < 4.19.3164.20 ≤ v < 5.4.2785.11 ≤ v < 5.15.1615.16 ≤ v < 6.1.935.5 ≤ v < 5.10.2196.2 ≤ v < 6.6.336.7 ≤ v < 6.8.126.9 ≤ v < 6.9.34.1046738b1317e146738b1317e169b281ad74690276916e24d1be6d
Vendor states this is fixed in 00e6335329f2 (fixed)
Vendor states this is fixed in 00e6335329f23ac6cf3105931691674e28bc598c (fixed)
Vendor states this is fixed in 10610575a3ac2a702bf5c57aa931beaf847949c7 (fixed)
Vendor states this is fixed in 160e9d275218 (fixed)
Vendor states this is fixed in 160e9d2752181fcf18c662e74022d77d3164cd45 (fixed)
Vendor states this is fixed in 1a63730fb315 (fixed)
Vendor states this is fixed in 1a63730fb315bb1bab97edd69ff58ad45e04bb01 (fixed)
Vendor states this is fixed in 3398a40dccb8 (fixed)
Vendor states this is fixed in 3398a40dccb88d3a7eef378247a023a78472db66 (fixed)
Vendor states this is fixed in 646cd236c55e (fixed)
Vendor states this is fixed in 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4 (fixed)
Vendor states this is fixed in 85a70ff1e572 (fixed)
Vendor states this is fixed in 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a (fixed)
Vendor states this is fixed in c04d6a914e89 (fixed)
Vendor states this is fixed in c04d6a914e890ccea4a9d11233009a2ee7978bf4 (fixed)
Vendor states this is fixed in e77a3ec7ada8 (fixed)
Vendor states this is fixed in e77a3ec7ada84543e75722a1283785a6544de925 (fixed)
Vendor states this is fixed in 4.10 (unaffected)
Vendor states this is fixed in 4.19.316 (unaffected)
Vendor states this is fixed in 5.10.219 (unaffected)
Vendor states this is fixed in 5.15.161 (unaffected)
Vendor states this is fixed in 5.4.278 (unaffected)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.10-rc1 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.8.12 (unaffected)
Vendor states this is fixed in 6.9.3 (unaffected)
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
v < V3.1
Affected range stops below V3.1, so it looks safe — our inference, not a vendor statement
V3.1.0 ≤ v < V3.1.53.1.0
Affected range stops below V3.1.5, so it looks safe — our inference, not a vendor statement
V3.1.0 ≤ v < V3.1.53.1.0
Affected range stops below V3.1.5, so it looks safe — our inference, not a vendor statement

References (13)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/00e6335329f23ac6cf3105931691674e28bc598c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/10610575a3ac2a702bf5c57aa931beaf847949c7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/160e9d2752181fcf18c662e74022d77d3164cd45
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1a63730fb315bb1bab97edd69ff58ad45e04bb01
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3398a40dccb88d3a7eef378247a023a78472db66
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/646cd236c55e2cb5f146fc41bbe4034c4af5b2a4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/85a70ff1e572160f1eeb096ed48d09a1c9d4d89a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c04d6a914e890ccea4a9d11233009a2ee7978bf4

SSVC — Action Prioritization

SSVCNo known exploitAutomatableTotal impact

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

CVSS

7HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416CWE-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