UBUNTU-CVE-2022-2309

Source
https://ubuntu.com/security/CVE-2022-2309
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2309.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-2309
Related
Published
2022-07-05T10:15:00Z
Modified
2024-10-15T14:09:47Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

NULL Pointer Dereference allows attackers to cause a denial of service (or application crash). This only applies when lxml is used together with libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected. It allows triggering crashes through forged input data, given a vulnerable code sequence in the application. The vulnerability is caused by the iterwalk function (also used by the canonicalize function). Such code shouldn't be in wide-spread use, given that parsing + iterwalk would usually be replaced with the more efficient iterparse function. However, an XML converter that serialises to C14N would also be vulnerable, for example, and there are legitimate use cases for this code sequence. If untrusted input is received (also remotely) and processed via iterwalk function, a crash can be triggered.

References

Affected packages

Ubuntu:Pro:14.04:LTS / lxml

Package

Name
lxml
Purl
pkg:deb/ubuntu/lxml?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.2.0-1
3.3.0~beta2-1
3.3.0~beta4-1
3.3.1-1
3.3.2-1
3.3.2-1build1
3.3.3-1
3.3.3-1ubuntu0.1
3.3.3-1ubuntu0.2
3.3.3-1ubuntu0.2+esm1
3.3.3-1ubuntu0.2+esm2
3.3.3-1ubuntu0.2+esm3
3.3.3-1ubuntu0.2+esm5

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:Pro:16.04:LTS / lxml

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.4.4-1
3.5.0-1
3.5.0-1build1
3.5.0-1ubuntu0.1
3.5.0-1ubuntu0.2
3.5.0-1ubuntu0.3
3.5.0-1ubuntu0.4
3.5.0-1ubuntu0.4+esm2

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:Pro:18.04:LTS / lxml

Package

Name
lxml
Purl
pkg:deb/ubuntu/lxml?arch=src?distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.0.0-1
4.1.0-1
4.2.0-1
4.2.1-1
4.2.1-1ubuntu0.1
4.2.1-1ubuntu0.2
4.2.1-1ubuntu0.3
4.2.1-1ubuntu0.4
4.2.1-1ubuntu0.6

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:20.04:LTS / libxml2

Package

Name
libxml2
Purl
pkg:deb/ubuntu/libxml2?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.10+dfsg-5ubuntu0.20.04.5

Affected versions

2.*

2.9.4+dfsg1-7ubuntu3
2.9.4+dfsg1-7ubuntu5
2.9.4+dfsg1-8ubuntu1
2.9.4+dfsg1-8ubuntu2
2.9.4+dfsg1-8ubuntu3
2.9.10+dfsg-1ubuntu3
2.9.10+dfsg-4build1
2.9.10+dfsg-5
2.9.10+dfsg-5ubuntu0.20.04.1
2.9.10+dfsg-5ubuntu0.20.04.2
2.9.10+dfsg-5ubuntu0.20.04.3
2.9.10+dfsg-5ubuntu0.20.04.4

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "libxml2"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "libxml2-dbgsym"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "libxml2-dev"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "libxml2-doc"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "libxml2-utils"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "libxml2-utils-dbgsym"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "python-libxml2"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "python-libxml2-dbg"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "python3-libxml2"
        },
        {
            "binary_version": "2.9.10+dfsg-5ubuntu0.20.04.5",
            "binary_name": "python3-libxml2-dbg"
        }
    ]
}

Ubuntu:20.04:LTS / lxml

Package

Name
lxml
Purl
pkg:deb/ubuntu/lxml?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.4.1-1
4.4.1-1build1
4.4.2-1
4.5.0-1
4.5.0-1ubuntu0.1
4.5.0-1ubuntu0.2
4.5.0-1ubuntu0.3
4.5.0-1ubuntu0.5

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:22.04:LTS / libxml2

Package

Name
libxml2
Purl
pkg:deb/ubuntu/libxml2?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.13+dfsg-1ubuntu0.2

Affected versions

2.*

2.9.12+dfsg-4
2.9.12+dfsg-5
2.9.12+dfsg-6
2.9.13+dfsg-1
2.9.13+dfsg-1build1
2.9.13+dfsg-1ubuntu0.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "libxml2"
        },
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "libxml2-dbgsym"
        },
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "libxml2-dev"
        },
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "libxml2-doc"
        },
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "libxml2-utils"
        },
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "libxml2-utils-dbgsym"
        },
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "python3-libxml2"
        },
        {
            "binary_version": "2.9.13+dfsg-1ubuntu0.2",
            "binary_name": "python3-libxml2-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / lxml

Package

Name
lxml
Purl
pkg:deb/ubuntu/lxml?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.6.3+dfsg-0.1
4.6.4-1
4.6.4-1ubuntu1
4.7.1-1
4.8.0-1
4.8.0-1build1

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:24.04:LTS / libxml2

Package

Name
libxml2
Purl
pkg:deb/ubuntu/libxml2?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.14+dfsg-1.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "libxml2"
        },
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "libxml2-dbgsym"
        },
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "libxml2-dev"
        },
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "libxml2-doc"
        },
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "libxml2-utils"
        },
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "libxml2-utils-dbgsym"
        },
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "python3-libxml2"
        },
        {
            "binary_version": "2.9.14+dfsg-1.3",
            "binary_name": "python3-libxml2-dbgsym"
        }
    ]
}