UBUNTU-CVE-2021-4034

Source
https://ubuntu.com/security/CVE-2021-4034
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4034.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-4034
Related
Published
2022-01-25T17:00:00Z
Modified
2022-01-25T17:00:00Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine.

References

Affected packages

Ubuntu:Pro:14.04:LTS / policykit-1

Package

Name
policykit-1
Purl
pkg:deb/ubuntu/policykit-1?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.105-4ubuntu3.14.04.6+esm1

Affected versions

0.*

0.105-3ubuntu3
0.105-4ubuntu1
0.105-4ubuntu2
0.105-4ubuntu2.14.04.1
0.105-4ubuntu3.14.04.1
0.105-4ubuntu3.14.04.2
0.105-4ubuntu3.14.04.5
0.105-4ubuntu3.14.04.6

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "gir1.2-polkit-1.0"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-agent-1-0"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-agent-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-agent-1-dev"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-backend-1-0"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-backend-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-backend-1-dev"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-gobject-1-0"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-gobject-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "libpolkit-gobject-1-dev"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "policykit-1"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "policykit-1-dbgsym"
        },
        {
            "binary_version": "0.105-4ubuntu3.14.04.6+esm1",
            "binary_name": "policykit-1-doc"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / policykit-1

Package

Name
policykit-1
Purl
pkg:deb/ubuntu/policykit-1?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.105-14.1ubuntu0.5+esm1

Affected versions

0.*

0.105-11ubuntu2
0.105-13
0.105-13ubuntu1
0.105-14
0.105-14.1
0.105-14.1ubuntu0.1
0.105-14.1ubuntu0.4
0.105-14.1ubuntu0.5

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "gir1.2-polkit-1.0"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-agent-1-0"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-agent-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-agent-1-dev"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-backend-1-0"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-backend-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-backend-1-dev"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-gobject-1-0"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-gobject-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "libpolkit-gobject-1-dev"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "policykit-1"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "policykit-1-dbgsym"
        },
        {
            "binary_version": "0.105-14.1ubuntu0.5+esm1",
            "binary_name": "policykit-1-doc"
        }
    ]
}

Ubuntu:18.04:LTS / policykit-1

Package

Name
policykit-1
Purl
pkg:deb/ubuntu/policykit-1?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.105-20ubuntu0.18.04.6

Affected versions

0.*

0.105-18
0.105-20
0.105-20ubuntu0.18.04.1
0.105-20ubuntu0.18.04.4
0.105-20ubuntu0.18.04.5

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "gir1.2-polkit-1.0"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-agent-1-0"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-agent-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-agent-1-dev"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-backend-1-0"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-backend-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-backend-1-dev"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-gobject-1-0"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-gobject-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "libpolkit-gobject-1-dev"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "policykit-1"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "policykit-1-dbgsym"
        },
        {
            "binary_version": "0.105-20ubuntu0.18.04.6",
            "binary_name": "policykit-1-doc"
        }
    ]
}

Ubuntu:20.04:LTS / policykit-1

Package

Name
policykit-1
Purl
pkg:deb/ubuntu/policykit-1?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.105-26ubuntu1.2

Affected versions

0.*

0.105-26ubuntu1
0.105-26ubuntu1.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "gir1.2-polkit-1.0"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "libpolkit-agent-1-0"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "libpolkit-agent-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "libpolkit-agent-1-dev"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "libpolkit-gobject-1-0"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "libpolkit-gobject-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "libpolkit-gobject-1-dev"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "policykit-1"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "policykit-1-dbgsym"
        },
        {
            "binary_version": "0.105-26ubuntu1.2",
            "binary_name": "policykit-1-doc"
        }
    ]
}

Ubuntu:22.04:LTS / policykit-1

Package

Name
policykit-1
Purl
pkg:deb/ubuntu/policykit-1?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.105-31ubuntu1

Affected versions

0.*

0.105-31

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "high",
    "binaries": [
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "gir1.2-polkit-1.0"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "libpolkit-agent-1-0"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "libpolkit-agent-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "libpolkit-agent-1-dev"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "libpolkit-gobject-1-0"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "libpolkit-gobject-1-0-dbgsym"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "libpolkit-gobject-1-dev"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "policykit-1"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "policykit-1-dbgsym"
        },
        {
            "binary_version": "0.105-31ubuntu1",
            "binary_name": "policykit-1-doc"
        }
    ]
}