Vulnerabilities

CVE-2024-38612

High 7.0 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-06-19
Last modified
2026-10-15
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Probability of exploitation
1.1 % higher than 63 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Linux Linux Kernel ≥ 4.10, < 4.19.316 Affected
Linux Linux Kernel ≥ 4.20, < 5.4.278 Affected
Linux Linux Kernel ≥ 5.11, < 5.15.161 Affected
Linux Linux Kernel ≥ 5.16, < 6.1.93 Affected
Linux Linux Kernel ≥ 5.5, < 5.10.219 Affected
Linux Linux Kernel ≥ 6.2, < 6.6.33 Affected
Linux Linux Kernel ≥ 6.7, < 6.8.12 Affected
Linux Linux Kernel ≥ 6.9, < 6.9.3 Affected

Weakness type

  • 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…

  • CWE-476: NULL Pointer Dereference

    The product dereferences a pointer that it expects to be valid but is NULL.

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities