documentation_complete: true

title: 'Disable the IPv6 protocol'

description: |-
    Disable support for IP version 6 (IPv6).

    {{{ describe_kernel_build_config("CONFIG_IPV6", "n") | indent(4) }}}

rationale: |-
    Any unnecessary network stacks, including IPv6, should be disabled to reduce
    the vulnerability to exploitation.

warnings:
    {{{ warning_kernel_build_config() | indent(4) }}}

severity: medium

identifiers:
    cce@rhel8: CCE-87225-9
    cce@rhel9: CCE-87226-7


ocil_clause: 'the kernel was not built with the required value'

ocil: |-
    {{{ ocil_kernel_build_config("CONFIG_IPV6", "n") | indent(4) }}}

template:
    name: kernel_build_config
    vars:
        config: CONFIG_IPV6
        value: 'n'

