Skip to content

realloc failed (segmentation fault) during xccdf eval #2231

Closed as not planned
@pfuntner

Description

@pfuntner

My team has tooling that uses openscap on various Linux distros and platforms. Starting today (2025-04-21), openscap has started to end abnormally in a redhat/ubi9 container:

[root@c58d2e82b7d0 /]# oscap xccdf eval  --profile xccdf_org.ssgproject.content_profile_stig --report /tmp/oscap.html /tmp/scap-security-guide-0.1.76/ssg-rhel9-ds.xml
--- Starting Evaluation ---

Title   Install AIDE
Rule    xccdf_org.ssgproject.content_rule_package_aide_installed
Ident   CCE-90843-4
Result  notapplicable

.
.
.

Title   Write Audit Logs to the Disk
Rule    xccdf_org.ssgproject.content_rule_auditd_write_logs
Ident   CCE-83705-4
Result  notapplicable

realloc failed !
Segmentation fault (core dumped)
[root@c58d2e82b7d0 /]#

Complete output: oscap.txt

We didn't have the problem with redhat/ubi9 on 2025-04-20 and Redhat 9 still continues to work fine on AWS EC2 instances, even on 2025-04-21. We're using oscap 1.3.10 on all systems.

I have an Ansible playbook (run-oscap-on-ubi9-playbook.yaml.gz) that recreates the scenario:

$ docker run -dit --rm --name ubi9 redhat/ubi9
$ ansible-playbook --connection docker -i ubi9, run-oscap-on-ubi9-playbook.yaml

The playbook takes care of installing openscap, et al, downloading the STIG profile, running openscap.

I ran oscap with debugging:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions