CVE-2024-38612: ipv6: sr: fix invalid unregister error path
Vulnerability summary
CVE-2024-38612 is a high (CVSS 7.0) Use After Free vulnerability in linux. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 51.6% of scored vulnerabilities.
Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 26 · Related 21Timeline
- 19-06-2024PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.66%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.66% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-476NULL Pointer DereferenceThe product dereferences a pointer that it expects to be valid but is NULL.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu127 products
- linux< 4.15.0-254.266 | < 5.4.0-192.212 | < 5.15.0-121.131 | < 6.8.0-40.40
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 4.15.0-1195.208 | < 5.4.0-1130.140 | < 5.15.0-1069.75 | < 6.8.0-1013.14
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 46738b1317e169b281ad74690276916e24d1be6d, < 10610575a3ac2a702bf5c57aa931beaf847949c7 | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < 646cd236c55e2cb5f146fc41bbe4034c4af5b2a4 | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < 00e6335329f23ac6cf3105931691674e28bc598c | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < 1a63730fb315bb1bab97edd69ff58ad45e04bb01 | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < e77a3ec7ada84543e75722a1283785a6544de925 | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < 3398a40dccb88d3a7eef378247a023a78472db66 | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < 85a70ff1e572160f1eeb096ed48d09a1c9d4d89a | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < c04d6a914e890ccea4a9d11233009a2ee7978bf4 | ≥ 46738b1317e169b281ad74690276916e24d1be6d, < 160e9d2752181fcf18c662e74022d77d3164cd45 | 4.10
- linux_kernel≥ 4.10, < 4.19.316 | ≥ 4.20, < 5.4.278 | ≥ 5.5, < 5.10.219 | ≥ 5.11, < 5.15.161 | ≥ 5.16, < 6.1.93 | ≥ 6.2, < 6.6.33 | ≥ 6.7, < 6.8.12 | ≥ 6.9, < 6.9.3
Debian1 product
- linux< 6.1.94-1 | < 6.8.12-1
3 vendors · 130 products