File: rule.yml

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (35 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
documentation_complete: true


title: 'Configure kernel to zero out memory before allocation'

description: |-
    To configure the kernel to zero out memory before allocating it, add the
    <tt>init_on_alloc=1</tt> argument to the default GRUB 2 command line.
    {{{ describe_grub2_argument("init_on_alloc=1") | indent(4) }}}

rationale: |-
    When the kernel configuration option <tt>init_on_alloc</tt> is enabled,
    all page allocator and slab allocator memory will be zeroed when allocated,
    eliminating many kinds of "uninitialized heap memory" flaws, effectively
    preventing data leaks.

severity: medium

identifiers:
    cce@rhel9: CCE-85867-0
    cce@rhel10: CCE-86953-7

ocil_clause: 'the kernel is not configured to zero out memory before allocation'

ocil: |-
    {{{ ocil_grub2_argument("init_on_alloc=1") | indent(4) }}}

references:
    ospp: AVA_VAN.1

template:
    name: grub2_bootloader_argument
    vars:
        arg_name: init_on_alloc
        arg_value: '1'