Skip to content

alma: add AlmaLinux support - #2112

Open
mikelolasagasti wants to merge 2 commits into
quay:mainfrom
mikelolasagasti:almalinux
Open

mikelolasagasti wants to merge 2 commits into
quay:mainfrom
mikelolasagasti:almalinux

Conversation

@mikelolasagasti

Copy link
Copy Markdown

Add distribution detection and vulnerability matching for AlmaLinux 8, 9 and 10 using the official AlmaLinux OVAL feeds.

The implementation reuses Claircore's existing RPM OVAL parser and version matching infrastructure, following the approach used by other RPM-based distributions.

Includes distribution scanner tests, advisory parsing tests, RPM indexing and matching integration tests, and periodic updater coverage.

Vulnerability matching is opt-in for now because RPM signing-key information is not retained in index reports. AffectedManifests support is not included.

@crozzy

crozzy commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

I think there might be a false positive issue with the alma OVAL feeds, specifically with criteria that contain multiple ANDs with EVRs e.g. from the alma 9 feed:

<criteria operator="AND">
  <criterion test_ref="oval:org.almalinux.alsa:tst:20253713001" comment="webkit2gtk3 is earlier than 0:2.48.1-1.el9_5"/>
  <criterion test_ref="oval:org.almalinux.alsa:tst:20257387001" comment="webkit2gtk3 is earlier than 0:2.48.1-1.el9_6"/>
  <criterion test_ref="oval:org.almalinux.alsa:tst:20226634002" comment="webkit2gtk3 is signed with AlmaLinux OS 9 key"/>
</criteria>

I think the existing OVAL parser will create a vulnerability per criterion (essentially making it an OR). This would lead to false positives if the installed version falls in the middle or even matches the version in the advisory (e.g. webkit2gtk3-2.48.1-1.el9_5 itself). 2.48.1-1.el9_5 is not earlier than 2.48.1-1.el9_5 but it is earlier than 2.48.1-1.el9_6 and that would be surfaced.

I believe the other OVAL feeds contain one earlier than criterion (and usually the "signed" criterion).

I think it'd be better to address this (or discount it if applicable).

@mikelolasagasti

Copy link
Copy Markdown
Author

Thanks for catching this. I fixed it in the shared RPM OVAL parser. When two version checks in the same AND group apply to the same package and architecture, Claircore now keeps the stricter cutoff. The fixed el9_5 WebKit build is no longer flagged for ALSA-2025:3713.

I added a regression test and verified that the full AlmaLinux 8, 9, and 10 feeds still parse.

Add distribution detection and vulnerability matching for AlmaLinux 8, 9
and 10 using the official AlmaLinux OVAL feeds.

The implementation reuses Claircore's existing RPM OVAL parser and
version matching infrastructure, following the approach used by other
RPM-based distributions.

Includes distribution scanner tests, advisory parsing tests, RPM
indexing and matching integration tests, and periodic updater coverage.

Vulnerability matching is opt-in for now because RPM signing-key
information is not retained in index reports. `AffectedManifests`
support is not included.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
Collapse equivalent RPM less-than checks within the same AND group to
the earliest fixed version. Leave bounds in separate branches
independent.

This prevents a false positive on the fixed WebKit build shipped in
ALSA-2025:3713.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants