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

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2024-06-19T13:56:13.415Z
- Modified: 2026-10-15T01:18:31.360Z
- Weaknesses: CWE-416, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 46738b1317e169b281ad74690276916e24d1be6d before 10610575a3ac2a702bf5c57aa931beaf847949c7; from 46738b1317e169b281ad74690276916e24d1be6d before 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4; from 46738b1317e169b281ad74690276916e24d1be6d before 00e6335329f23ac6cf3105931691674e28bc598c; from 46738b1317e169b281ad74690276916e24d1be6d before 1a63730fb315bb1bab97edd69ff58ad45e04bb01; from 46738b1317e169b281ad74690276916e24d1be6d before e77a3ec7ada84543e75722a1283785a6544de925; from 46738b1317e169b281ad74690276916e24d1be6d before 3398a40dccb88d3a7eef378247a023a78472db66; from 46738b1317e169b281ad74690276916e24d1be6d before 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a; from 46738b1317e169b281ad74690276916e24d1be6d before c04d6a914e890ccea4a9d11233009a2ee7978bf4; from 46738b1317e169b281ad74690276916e24d1be6d before 160e9d2752181fcf18c662e74022d77d3164cd45; 4.10 (not affected: before 4.10; from 4.19.316 up to 4.19.*; from 5.4.278 up to 5.4.*; from 5.10.219 up to 5.10.*; from 5.15.161 up to 5.15.*; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 46738b1317e1 before 0610575a3ac; from 46738b1317e1 before 646cd236c55e; from 46738b1317e1 before 00e6335329f2; from 46738b1317e1 before 1a63730fb315; from 46738b1317e1 before e77a3ec7ada8; from 46738b1317e1 before 3398a40dccb8; from 46738b1317e1 before 85a70ff1e572; from 46738b1317e1 before c04d6a914e89; from 46738b1317e1 before 160e9d275218; 4.10; from 4.10 before 4.19.316; from 4.20 before 5.4.278; and 6 more (not affected: before 4.10; from 4.19.316 up to 4.20; from 5.4.278 up to 5.5; from 5.15.161 up to 5.16; from 6.1.93 up to 6.2; from 6.6.33 up to 6.7; from 6.8.12 up to 6.9; from 6.9.3 up to 6.10; 6.10-rc1)
- linux acrn: no versions given (not affected: from 5.10.219 up to 5.11)

## Every score

- Linux: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Sources

- CVE List: [CVE-2024-38612](https://www.cve.org/CVERecord?id=CVE-2024-38612), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-38612](https://nvd.nist.gov/vuln/detail/CVE-2024-38612), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-38612 · Whole record: https://cve.day/CVE-2024-38612.json · Rebuilt by cve.day 2026-11-25T22:58:42.045Z
