{"id":"UBUNTU-CVE-2021-28906","details":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","modified":"2025-10-24T04:50:15Z","published":"2021-05-20T19:15:00Z","upstream":["CVE-2021-28906"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-28906"},{"type":"REPORT","url":"https://github.com/CESNET/libyang/issues/1455"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-28906"}],"affected":[{"package":{"name":"libyang","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libyang@0.16.105-3build1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.16.105-1","0.16.105-2","0.16.105-3","0.16.105-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyang-cpp-dev","binary_version":"0.16.105-3build1"},{"binary_name":"libyang-cpp0.16","binary_version":"0.16.105-3build1"},{"binary_name":"libyang-dev","binary_version":"0.16.105-3build1"},{"binary_name":"libyang0.16","binary_version":"0.16.105-3build1"},{"binary_name":"python3-yang","binary_version":"0.16.105-3build1"},{"binary_name":"yang-tools","binary_version":"0.16.105-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-28906.json"}},{"package":{"name":"libyang","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libyang@1.0.225-1.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.225-1.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libyang-cpp-dev","binary_version":"1.0.225-1.1"},{"binary_name":"libyang-cpp1","binary_version":"1.0.225-1.1"},{"binary_name":"libyang-dev","binary_version":"1.0.225-1.1"},{"binary_name":"libyang-tools","binary_version":"1.0.225-1.1"},{"binary_name":"libyang1","binary_version":"1.0.225-1.1"},{"binary_name":"yang-tools","binary_version":"1.0.225-1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-28906.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}