Skip to content

Backport 2363 - #2425

Merged
jan-cerny merged 1 commit into
OpenSCAP:maint-1.3from
Mab879:2363_maint_1_3
Oct 5, 2026
Merged

jan-cerny merged 1 commit into
OpenSCAP:maint-1.3from
Mab879:2363_maint_1_3

Conversation

@Mab879

@Mab879 Mab879 commented Oct 4, 2026

Copy link
Copy Markdown
Member

Backport #2363

- OVAL oval_set.c: a <set> mixing a nested <set> (aggregate) with
  object_reference/filter children (collective) wrote into the wrong union
  member, so oval_setobject_free() later freed a model-owned object
  (use-after-free / double free). Reject children that don't match the
  established set type.
- XCCDF resolve.c: <warning> entries were resolved through
  xccdf_resolve_textlist(), which reads each item as oscap_text -- but a
  xccdf_warning is smaller, so this read out of bounds (heap-buffer-overflow).
  Added a dedicated xccdf_resolve_warninglist() operating on warning->text.
- DS sds.c: component_id aliased the xlink_href buffer that was freed too
  early (use-after-free); keep it alive until last use. Also cap catalog
  component-ref recursion (cyclic catalog -> OOM); this recursion-DoS fix is
  bundled here because it is interleaved with the UAF fix in the same function.
  Also a NULL id guard in lookup_component_in_collection.
- source/schematron.c: OSCAP_SCHEMATRON_TABLE lacked the {0,NULL,NULL}
  sentinel its lookup loop relies on -> global-buffer-overflow; added it.
  Plus NULL guards for missing href/uri, empty <catalog>, and NULL XPath eval.
@Mab879 Mab879 added this to the 1.3.15 milestone Oct 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@jan-cerny jan-cerny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have confirmed that the PR is the same as the linked PR and correctly backports the linked PR to the target branch.

@jan-cerny jan-cerny self-assigned this Oct 5, 2026
@jan-cerny
jan-cerny merged commit 64483e3 into OpenSCAP:maint-1.3 Oct 5, 2026
11 checks passed
@Mab879
Mab879 deleted the 2363_maint_1_3 branch October 5, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants