Skip to content

libyang NETCONF rpc parser: a crafted action envelope frees an uninitialized pointer in lydxml_env_netconf_rpc #2595

Open

Description

@Haind03

Hello, and thank you for maintaining this project.

I found a likely memory-safety issue by static source review (no runtime exploit was developed). Sharing it here so it can be fixed.

The write-up gives the exact file and line of the sink, the reachability chain from the public entry point, an honest impact assessment, and a suggested fix. I am happy to send a patch or any further detail.

Reported by HaiND (Nguyen Dinh Hai), Post and Telecommunication Institute of Technology, github.com/Haind03.

Activity

  1. michalvasko commented on Oct 21, 2026

    @michalvasko
    Member

    Since there is a fix in the devel branch, there is nothing else to do but wait for the next release. If you want to always have the latest fixes, you should be using the devel branch.

  2. added
    is:bug
    status:completed
    on Oct 21, 2026
  3. Haind03 commented on Nov 5, 2026

    @Haind03
    Author

    Thank you, I will watch for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugstatus:completed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions