ipv6: sr: fix invalid unregister error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 46738b1317e169b281ad74690276916e24d1be6d · < 3398a40dccb88d3a7eef378247a023a78472db66| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The IPv6 segment-routing initialization error path fails to unregister a generic netlink family if CONFIG_IPV6_SEG6_LWTUNNEL is disabled and seg6_hmac_init() fails. The input does not specify how an attacker could trigger this failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with IPv6 segment routing should check whether their builds are affected; the input does not identify affected versions.