SUSE SLES15 Security Update : libyang (SUSE-SU-2022:3245-1)

high Nessus Plugin ID 164976

Language:

Synopsis

The remote SUSE host is missing one or more security updates.

Description

The remote SUSE Linux SLES15 / SLES_SAP15 host has packages installed that are affected by multiple vulnerabilities as referenced in the SUSE-SU-2022:3245-1 advisory.

- In function read_yin_container() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval->ext[r]->flags that results in a crash. (CVE-2021-28902)

- A stack overflow in libyang <= v1.0.225 can cause a denial of service through function lyxml_parse_mem().
lyxml_parse_elem() function will be called recursively, which will consume stack space and lead to crash.
(CVE-2021-28903)

- In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL. If revision is NULL, the operation of strcmp(revision, ext_plugins[u].revision) will lead to a crash. (CVE-2021-28904)

- In function read_yin_leaf() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval->ext[r]->flags that results in a crash. (CVE-2021-28906)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected libyang-extentions and / or libyang1 packages.

See Also

https://bugzilla.suse.com/1186374

https://bugzilla.suse.com/1186375

https://bugzilla.suse.com/1186376

https://bugzilla.suse.com/1186378

https://www.suse.com/security/cve/CVE-2021-28902

https://www.suse.com/security/cve/CVE-2021-28903

https://www.suse.com/security/cve/CVE-2021-28904

https://www.suse.com/security/cve/CVE-2021-28906

http://www.nessus.org/u?8e8e8b0d

Plugin Details

Severity: High

ID: 164976

File Name: suse_SU-2022-3245-1.nasl

Version: 1.7

Type: local

Agent: unix

Published: 9/13/2022

Updated: 7/14/2023

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 4.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2021-28906

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 7.2

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:novell:suse_linux:libyang-extentions, p-cpe:/a:novell:suse_linux:libyang1, cpe:/o:novell:suse_linux:15

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/SuSE/release, Host/SuSE/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/12/2022

Vulnerability Publication Date: 5/20/2021

Reference Information

CVE: CVE-2021-28902, CVE-2021-28903, CVE-2021-28904, CVE-2021-28906

SuSE: SUSE-SU-2022:3245-1