CVE-2024-38612
ipv6: sr: fix invalid unregister error path
Reported by linux · Published June 19, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.94-99.176.amzn2023 |
| kernel-tools-devel | Amazon Linux | 4.14.349-266.564.amzn2 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| linux_kernel | linux | e77a3ec7ada8, c04d6a914e89, 85a70ff1e572, 646cd236c55e, 6.9.3, 6.8.12, 6.6.33, 6.1.93, 5.15.161, 5.10.219, 5.4.278, 4.19.316, 3398a40dccb8, 1a63730fb315, 0610575a3ac, 00e6335329f2 |
| SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | Siemens | 1.1.1 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 46738b1317e169b281ad74690276916e24d1be6d, 46738b1317e169b281ad74690276916e24d1be6d, 46738b1317e169b281ad74690276916e24d1be6d |
| Linux | Linux | 4.10, 0, 4.19.316 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | kernel-tools-devel | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| linux | linux_kernel | 6.10-rc1, 5.4.278, 5.15.161 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2 | perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2023 | kernel-devel | 0 |
| Linux | Linux | 4.19.316, 46738b1317e169b281ad74690276916e24d1be6d, 46738b1317e169b281ad74690276916e24d1be6d |
| Siemens | RUGGEDCOM RST2428P | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2 | kernel-livepatch-4.14.349-266.564 | 0 |
…and 15 more
Timeline
- Jun 19, 2024 CVE Published
- Jun 20, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (11 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 8, 2026 Security Advisory (318 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (241 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-38612
vulnetix vdb fixes CVE-2024-38612
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-38612/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart