CVE-2024-38612
Vulnerability Summary
Timeline
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
- v3.1•HIGH•Score: 7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.66%• Percentile: 50%
Techniques & Countermeasures
- CWE-416•Use After Free
The 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-476•NULL Pointer Dereference
The product dereferences a pointer that it expects to be valid but is NULL.
Affected Systems
- debian•linux
< 5.10.221-1 | < 6.1.94-1 | < 6.8.12-1 | < 6.8.12-1
- ubuntu•linux
< 4.15.0-254.266 | < 5.4.0-192.212 | < 5.15.0-121.131 | < 6.8.0-40.40
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
< 4.15.0-1195.208 | < 5.4.0-1130.140 | < 5.15.0-1069.75 | < 6.8.0-1013.14
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1069.75~20.04.1
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1130.140~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-6.5
all
- ubuntu•linux-aws-6.8
< 6.8.0-1013.14~22.04.1
- ubuntu•linux-aws-fips
< 4.15.0-2133.139 | all | < 5.4.0-1130.140+fips1 | < 5.15.0-1069.75+fips1
- ubuntu•linux-aws-hwe
all | < 4.15.0-1195.208~16.04.1
- ubuntu•linux-azure
all | < 4.15.0-1205.220~14.04.1 | < 4.15.0-1205.220~16.04.1 | all | < 5.4.0-1135.142 | < 5.15.0-1072.81 | < 6.8.0-1012.14
- ubuntu•linux-azure-4.15
< 4.15.0-1205.220
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1072.81~20.04.1
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1135.142~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-6.5
all
- ubuntu•linux-azure-6.8
< 6.8.0-1012.14~22.04.1
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all | < 5.15.0-1072.81.1
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fips
< 4.15.0-2113.119 | all | < 5.4.0-1135.142+fips1 | < 5.15.0-1072.81+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1090.97 | < 5.15.0-1052.54
- ubuntu•linux-fips
< 4.15.0-1150.162 | all | < 5.4.0-1104.114 | < 5.15.0-121.131+fips1 | < 6.8.0-78.78+fips1
- ubuntu•linux-gcp
all | < 4.15.0-1188.205~16.04.1 | all | < 5.4.0-1134.143 | < 5.15.0-1068.76 | < 6.8.0-1012.13
- ubuntu•linux-gcp-4.15
< 4.15.0-1188.205
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.15
< 5.15.0-1068.76~20.04.1
- ubuntu•linux-gcp-5.19
all
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1134.143~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-6.2
all
- ubuntu•linux-gcp-6.5
all
- ubuntu•linux-gcp-6.8
< 6.8.0-1012.13~22.04.1
- ubuntu•linux-gcp-fips
< 4.15.0-2096.102 | all | < 5.4.0-1134.143+fips1 | < 5.15.0-1068.76+fips1
- ubuntu•linux-gke
all | < 5.15.0-1066.72 | < 6.8.0-1008.11
Showing first 50 affected entries in server-rendered view.
References (38)
- https://git.kernel.org/stable/c/10610575a3ac2a702bf5c57aa931beaf847949c7
- https://git.kernel.org/stable/c/646cd236c55e2cb5f146fc41bbe4034c4af5b2a4
- https://git.kernel.org/stable/c/00e6335329f23ac6cf3105931691674e28bc598c
- https://git.kernel.org/stable/c/1a63730fb315bb1bab97edd69ff58ad45e04bb01
- https://git.kernel.org/stable/c/e77a3ec7ada84543e75722a1283785a6544de925
- https://git.kernel.org/stable/c/3398a40dccb88d3a7eef378247a023a78472db66
- https://git.kernel.org/stable/c/85a70ff1e572160f1eeb096ed48d09a1c9d4d89a
- https://git.kernel.org/stable/c/c04d6a914e890ccea4a9d11233009a2ee7978bf4
- https://git.kernel.org/stable/c/160e9d2752181fcf18c662e74022d77d3164cd45
- 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
- https://ubuntu.com/security/CVE-2024-38612
- https://www.cve.org/CVERecord?id=CVE-2024-38612
- https://git.kernel.org/linus/160e9d2752181fcf18c662e74022d77d3164cd45
- https://ubuntu.com/security/notices/USN-6949-1
- https://ubuntu.com/security/notices/USN-6951-1
- https://ubuntu.com/security/notices/USN-6952-1
- https://ubuntu.com/security/notices/USN-6953-1
- https://ubuntu.com/security/notices/USN-6955-1
- https://ubuntu.com/security/notices/USN-6949-2
- https://ubuntu.com/security/notices/USN-6952-2
- https://ubuntu.com/security/notices/USN-6951-2
- https://ubuntu.com/security/notices/USN-6951-3
- https://ubuntu.com/security/notices/USN-6951-4
- https://ubuntu.com/security/notices/USN-6979-1
- https://ubuntu.com/security/notices/USN-7007-1
- https://ubuntu.com/security/notices/USN-7009-1
- https://ubuntu.com/security/notices/USN-7019-1
- https://ubuntu.com/security/notices/USN-7007-2
- https://ubuntu.com/security/notices/USN-7007-3
- https://ubuntu.com/security/notices/USN-7009-2
- https://ubuntu.com/security/notices/USN-8633-1
- https://ubuntu.com/security/notices/USN-8635-1
- https://security-tracker.debian.org/tracker/CVE-2024-38612
- https://ubuntu.com/security/notices/USN-8633-2
- https://ubuntu.com/security/notices/USN-8645-1