CVE-2023-3899

Summary

A vulnerability was found in subscription-manager that allows local privilege escalation due to inadequate authorization. The D-Bus interface com.redhat.RHSM1 exposes a significant number of methods to all users that could change the state of the registration. By using the com.redhat.RHSM1.Config.SetAll() method, a low-privileged local user could tamper with the state of the registration, by unregistering the system or by changing the current entitlements. This flaw allows an attacker to set arbitrary configuration directives for /etc/rhsm/rhsm.conf, which can be abused to cause a local privilege escalation to an unconfined root.

Affected Software

VendorProductVersion RangeStatus
Red HatRed Hat Enterprise Linux 70:1.24.52-2.el7_9 < *unaffected
Red HatRed Hat Enterprise Linux 80:1.28.36-3.el8_8 < *unaffected
Red HatRed Hat Enterprise Linux 80:1.28.36-3.el8_8 < *unaffected
Red HatRed Hat Enterprise Linux 8.1 Update Services for SAP Solutions0:1.25.17.1-2.el8_1 < *unaffected
Red HatRed Hat Enterprise Linux 8.2 Advanced Update Support0:1.26.22-2.el8_2 < *unaffected
Red HatRed Hat Enterprise Linux 8.2 Telecommunications Update Service0:1.26.22-2.el8_2 < *unaffected
Red HatRed Hat Enterprise Linux 8.2 Update Services for SAP Solutions0:1.26.22-2.el8_2 < *unaffected
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:1.28.13-7.el8_4 < *unaffected
Red HatRed Hat Enterprise Linux 8.4 Telecommunications Update Service0:1.28.13-7.el8_4 < *unaffected
Red HatRed Hat Enterprise Linux 8.4 Update Services for SAP Solutions0:1.28.13-7.el8_4 < *unaffected
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support0:1.28.29.1-2.el8_6 < *unaffected
Red HatRed Hat Enterprise Linux 90:1.29.33.1-2.el9_2 < *unaffected
Red HatRed Hat Enterprise Linux 9.0 Extended Update Support0:1.29.26.2-2.el9_0 < *unaffected

Weaknesses

  • CWE-285: Improper Authorization

Workarounds

A workaround is to mask rhsm.service using:

systemctl mask rhsm.service

When the rhsm.service is masked, then no D-Bus call cannot trigger the service and all D-Bus calls will be terminated with error: "Call failed: Could not activate remote peer." But then all applications using D-Bus API will not work until you unmask the service using: "systemctl unmask rhsm.service"

ADP Enrichment

CVE Program Container

Additional References

CISA ADP Vulnrichment

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

References