title: Subscription-manager: inadequate authorization of com.redhat.rhsm1 d-bus interface allows local users to modify configuration
description: 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.
problem types: Improper Authorization
affected:
{
product: subscription-manager
vendor: n/a
versions:
version: 1.29.37, status: unaffected
version: 1.28.39, status: unaffected
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 7
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.24.52-2.el7_9, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:enterprise_linux:7::computenode, cpe:/o:redhat:enterprise_linux:7::client, cpe:/o:redhat:enterprise_linux:7::server, cpe:/o:redhat:enterprise_linux:7::workstation]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.28.36-3.el8_8, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:enterprise_linux:8::baseos, cpe:/a:redhat:enterprise_linux:8::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.28.36-3.el8_8, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:enterprise_linux:8::baseos, cpe:/a:redhat:enterprise_linux:8::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.25.17.1-2.el8_1, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:rhel_e4s:8.1::baseos, cpe:/a:redhat:rhel_e4s:8.1::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.2 Advanced Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.26.22-2.el8_2, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.2::appstream, cpe:/a:redhat:rhel_tus:8.2::appstream, cpe:/a:redhat:rhel_e4s:8.2::appstream, cpe:/o:redhat:rhel_aus:8.2::baseos, cpe:/o:redhat:rhel_tus:8.2::baseos, cpe:/o:redhat:rhel_e4s:8.2::baseos]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.2 Telecommunications Update Service
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.26.22-2.el8_2, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.2::appstream, cpe:/a:redhat:rhel_tus:8.2::appstream, cpe:/a:redhat:rhel_e4s:8.2::appstream, cpe:/o:redhat:rhel_aus:8.2::baseos, cpe:/o:redhat:rhel_tus:8.2::baseos, cpe:/o:redhat:rhel_e4s:8.2::baseos]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.26.22-2.el8_2, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/a:redhat:rhel_aus:8.2::appstream, cpe:/a:redhat:rhel_tus:8.2::appstream, cpe:/a:redhat:rhel_e4s:8.2::appstream, cpe:/o:redhat:rhel_aus:8.2::baseos, cpe:/o:redhat:rhel_tus:8.2::baseos, cpe:/o:redhat:rhel_e4s:8.2::baseos]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.28.13-7.el8_4, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:rhel_aus:8.4::baseos, cpe:/a:redhat:rhel_tus:8.4::appstream, cpe:/a:redhat:rhel_aus:8.4::appstream, cpe:/o:redhat:rhel_tus:8.4::baseos, cpe:/o:redhat:rhel_e4s:8.4::baseos, cpe:/a:redhat:rhel_e4s:8.4::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.4 Telecommunications Update Service
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.28.13-7.el8_4, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:rhel_aus:8.4::baseos, cpe:/a:redhat:rhel_tus:8.4::appstream, cpe:/a:redhat:rhel_aus:8.4::appstream, cpe:/o:redhat:rhel_tus:8.4::baseos, cpe:/o:redhat:rhel_e4s:8.4::baseos, cpe:/a:redhat:rhel_e4s:8.4::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.28.13-7.el8_4, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:rhel_aus:8.4::baseos, cpe:/a:redhat:rhel_tus:8.4::appstream, cpe:/a:redhat:rhel_aus:8.4::appstream, cpe:/o:redhat:rhel_tus:8.4::baseos, cpe:/o:redhat:rhel_e4s:8.4::baseos, cpe:/a:redhat:rhel_e4s:8.4::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 8.6 Extended Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.28.29.1-2.el8_6, lessThan: *, versionType: rpm, status: unaffected
cpe: [cpe:/o:redhat:rhel_eus:8.6::baseos, cpe:/a:redhat:rhel_eus:8.6::appstream]
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.29.33.1-2.el9_2, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/o:redhat:enterprise_linux:9::baseos
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 9.0 Extended Update Support
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: affected
versions:
version: 0:1.29.26.2-2.el9_0, lessThan: *, versionType: rpm, status: unaffected
cpe: cpe:/o:redhat:rhel_eus:9.0::baseos
}
{
vendor: Red Hat
product: Red Hat Enterprise Linux 6
collectionURL: https://access.redhat.com/downloads/content/package-browser/
packageName: subscription-manager
defaultStatus: unaffected
cpes: cpe:/o:redhat:enterprise_linux:6
}
{
product: Fedora 37
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: subscription-manager
defaultStatus: affected
}
{
product: Fedora 38
vendor: Fedora
collectionURL: https://packages.fedoraproject.org/
packageName: subscription-manager
defaultStatus: affected
}
metrics:
other: [
content: {'value': 'Important', 'namespace': 'https://access.redhat.com/security/updates/classification/'}
type: Red Hat severity rating
]
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"