CVE-2024-2905

Summary

A security vulnerability has been discovered within rpm-ostree, pertaining to the /etc/shadow file in default builds having the world-readable bit enabled. This issue arises from the default permissions being set at a higher level than recommended, potentially exposing sensitive authentication data to unauthorized access.

Affected Software

VendorProductVersion RangeStatus
1.2024.4affected
Red HatRed Hat Enterprise Linux 100:2025.5-1.el10 < *unaffected
Red HatRed Hat Enterprise Linux 90:2024.3-3.el9_4 < *unaffected
Red HatRed Hat Enterprise Linux 9.2 Extended Update Support0:2023.3-2.el9_2 < *unaffected

Weaknesses

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Workarounds

If you need to apply the fix immediately, you can run the following commands, using credentials that have administrator access to an OpenShift cluster:

List current permissions for all nodes

for node in $( oc get nodes -oname) ; do echo $node ; oc debug $node – bash -c "ls -alhZ /host/etc/shadow"; done

Set correct permissions

for node in $( oc get nodes -oname) ; do echo $node ; oc debug $node – chmod –verbose 0000 /host/etc/shadow /host/etc/gshadow /host/etc/shadow- /host/etc/gshadow-; done

As a precaution, we recommend rotating all user credentials stored in those files.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

CVE Program Container

Additional References

References