Bug 1186376 (CVE-2021-28904) - VUL-0: CVE-2021-28904: libyang: In function ext_get_plugin() in libyang <= v1.0.225, it doesn't check whether the value of revision is NULL, which could lead to a DoS
Summary: VUL-0: CVE-2021-28904: libyang: In function ext_get_plugin() in libyang <= v1...
Status: RESOLVED FIXED
Alias: CVE-2021-28904
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P2 - High : Major
Target Milestone: ---
Assignee: Martin Hauke
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/298853/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-28904:7.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-24 08:59 UTC by Gianluca Gabrielli
Modified: 2024-05-23 09:45 UTC (History)
5 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Gabrielli 2021-05-24 08:59:25 UTC
CVE-2021-28904

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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-28904
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28904
https://github.com/CESNET/libyang/issues/1451
Comment 1 Gianluca Gabrielli 2021-05-24 08:59:44 UTC
Affected packages:

 - SUSE:SLE-15-SP3:Update/libyang  1.0.184
 - openSUSE:Factory/libyang        1.0.184

Upstream patch [0].

[0] https://github.com/CESNET/libyang/commit/59a0bff1a5a2f0a0eac07e4bf94d4aea9dd3708d.patch
Comment 5 Petr Gajdos 2022-09-08 13:03:10 UTC
Thanks to Danilo Spinella, done for 15sp3/libyang. Reassigning to openSUSE maintainer.

When done, please reassign to security-team@suse.de.

Might be that libyang in Factory is not affected at all. Could you please help us by stating this fact in *.changes file?
Comment 6 Swamp Workflow Management 2022-09-12 10:23:36 UTC
SUSE-SU-2022:3245-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1186374,1186375,1186376,1186378
CVE References: CVE-2021-28902,CVE-2021-28903,CVE-2021-28904,CVE-2021-28906
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    libyang-1.0.184-150300.3.6.1
openSUSE Leap 15.3 (src):    libyang-1.0.184-150300.3.6.1
SUSE Linux Enterprise Module for Server Applications 15-SP4 (src):    libyang-1.0.184-150300.3.6.1
SUSE Linux Enterprise Module for Server Applications 15-SP3 (src):    libyang-1.0.184-150300.3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Alexander Bergmann 2024-05-23 09:45:11 UTC
Closing bug as resolved.