Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when if-feature is used in list key node, with a non existing feature #723

Closed
jvijtiuk opened this issue Mar 7, 2019 · 7 comments

Comments

@jvijtiuk
Copy link
Collaborator

jvijtiuk commented Mar 7, 2019

If an if-feature statement is used inside a list key node, and the feature used is not defined, yanglint and yangfuzz segfault in lys_parse_path.

Here is an example of a yang file that crashes the parser:

module links {
  namespace "urn:module2";
  prefix mod2;

  list list-for-augment {
    key "keyleaf";

    leaf keyleaf {
      if-feature foo;
      type string;
    }

    leaf test {
      type string;
    }
  }
}
@michalvasko
Copy link
Member

Hi,
should be fixed.

Regards,
Michal

@ret2libc
Copy link

CVE-2019-20392 was assigned to this issue.

@SuhwanSong
Copy link

@ret2libc
When did you request CVE assigning to this issue?

@ret2libc
Copy link

@SuhwanSong Yesterday. Is it ok?

@SuhwanSong
Copy link

@ret2libc Thanks!

I requested CVEs but I've not received any reply except confirm email.
Did it ever take you long to get CVEs?

@ret2libc
Copy link

No it generally takes one or two days at most. Did you request CVEs for any of these issues that already for a CVE? Did you request them to MITRE?

@SuhwanSong
Copy link

SuhwanSong commented Jan 23, 2020

@ret2libc
Hmm, I requested over 80 CVEs for FFmpeg, ImageMagick, GhostScript Issues to MITRE 4 months ago (not including libyang project). (e.g. request 1, request 2)

Besides these issues that I've reported are not assigned as CVE.

But I got no replies from them, so there are still many issues that I haven't reported yet such as
ghostscript issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants