# CVE-2024-38612: ipv6: sr: fix invalid unregister error path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.08% (percentile 65, 2026-11-26)
- **CWE:** CWE-416, CWE-476
- **Published:** 2024-06-19T13:56:13.415Z
- **Modified:** 2026-10-15T01:18:31.360Z

## Who should check

- Anyone running Linux \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 10610575a3ac2a702bf5c57aa931beaf847949c7; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 00e6335329f23ac6cf3105931691674e28bc598c; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 1a63730fb315bb1bab97edd69ff58ad45e04bb01; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< e77a3ec7ada84543e75722a1283785a6544de925; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 3398a40dccb88d3a7eef378247a023a78472db66; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< c04d6a914e890ccea4a9d11233009a2ee7978bf4; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 160e9d2752181fcf18c662e74022d77d3164cd45
- Anyone running Linux 4.10

## 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 and fixed versions

- Linux: \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 10610575a3ac2a702bf5c57aa931beaf847949c7; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 00e6335329f23ac6cf3105931691674e28bc598c; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 1a63730fb315bb1bab97edd69ff58ad45e04bb01; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< e77a3ec7ada84543e75722a1283785a6544de925; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 3398a40dccb88d3a7eef378247a023a78472db66; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< c04d6a914e890ccea4a9d11233009a2ee7978bf4; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 160e9d2752181fcf18c662e74022d77d3164cd45 (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- Upgrade Linux to 160e9d2752181fcf18c662e74022d77d3164cd45 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-38612. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38612.md
Affected: Linux >= 46738b1317e169b281ad74690276916e24d1be6d, < 10610575a3ac2a702bf5c57aa931beaf847949c7; >= 46738b1317e169b281ad74690276916e24d1be6d, < 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4; >= 46738b1317e169b281ad74690276916e24d1be6d, < 00e6335329f23ac6cf3105931691674e28bc598c; >= 46738b1317e169b281ad746…
Fixed in: Linux 10610575a3ac2a702bf5c57aa931beaf847949c7, Linux 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4, Linux 00e6335329f23ac6cf3105931691674e28bc598c, Linux 1a63730fb315bb1bab97edd69ff58ad45e04bb01, Linux 3398a40dccb88d3a7eef378247a023a78472db66, Linux 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a, Linux 160e9…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-38612 being exploited?

There is no confirmed exploitation: CVE-2024-38612 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-38612?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-38612?

Linux \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 10610575a3ac2a702bf5c57aa931beaf847949c7; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 00e6335329f23ac6cf3105931691674e28bc598c; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 1a63730fb315bb1bab97edd69ff58ad45e04bb01; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< e77a3ec7ada84543e75722a1283785a6544de925; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 3398a40dccb88d3a7eef378247a023a78472db66; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< c04d6a914e890ccea4a9d11233009a2ee7978bf4; \>= 46738b1317e169b281ad74690276916e24d1be6d, \< 160e9d2752181fcf18c662e74022d77d3164cd45; Linux 4.10.

### Is there a fix for CVE-2024-38612?

Yes. Fixed in Linux 10610575a3ac2a702bf5c57aa931beaf847949c7, Linux 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4, Linux 00e6335329f23ac6cf3105931691674e28bc598c, Linux 1a63730fb315bb1bab97edd69ff58ad45e04bb01, Linux 3398a40dccb88d3a7eef378247a023a78472db66, Linux 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a, Linux 160e9d2752181fcf18c662e74022d77d3164cd45. Upgrade Linux to 160e9d2752181fcf18c662e74022d77d3164cd45 or later.

### How do I check if I'm affected by CVE-2024-38612?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/10610575a3ac2a702bf5c57aa931beaf847949c7>
- patch: <https://git.kernel.org/stable/c/646cd236c55e2cb5f146fc41bbe4034c4af5b2a4>
- patch: <https://git.kernel.org/stable/c/00e6335329f23ac6cf3105931691674e28bc598c>
- patch: <https://git.kernel.org/stable/c/1a63730fb315bb1bab97edd69ff58ad45e04bb01>
- patch: <https://git.kernel.org/stable/c/e77a3ec7ada84543e75722a1283785a6544de925>
- patch: <https://git.kernel.org/stable/c/3398a40dccb88d3a7eef378247a023a78472db66>
- patch: <https://git.kernel.org/stable/c/85a70ff1e572160f1eeb096ed48d09a1c9d4d89a>
- patch: <https://git.kernel.org/stable/c/c04d6a914e890ccea4a9d11233009a2ee7978bf4>
- patch: <https://git.kernel.org/stable/c/160e9d2752181fcf18c662e74022d77d3164cd45>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38612>

HTML: <https://flawdb.com/CVE-2024-38612> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38612>
