A double-free is present in libyang before v1.0-r1 in the function yyparse() when an empty description is used. Applications that use libyang to parse untrusted input yang files may be vulnerable to this flaw, which would cause a crash or potentially code execution.
| Software | From | Fixed in |
|---|---|---|
| cesnet / libyang | 0.16-r1 | 0.16-r1.x |
| cesnet / libyang | 0.16-r2 | 0.16-r2.x |
| cesnet / libyang | 0.16-r3 | 0.16-r3.x |
| cesnet / libyang | 0.13-r1 | 0.13-r1.x |
| cesnet / libyang | 0.13-r2 | 0.13-r2.x |
| cesnet / libyang | 0.12-r1 | 0.12-r1.x |
| cesnet / libyang | 0.12-r2 | 0.12-r2.x |
| cesnet / libyang | 0.11-r1 | 0.11-r1.x |
| cesnet / libyang | 0.11-r2 | 0.11-r2.x |
| cesnet / libyang | 0.14-r1 | 0.14-r1.x |
| cesnet / libyang | 0.15-r1 | 0.15-r1.x |