libnl: add initial OSS-Fuzz integration#15282
Open
bybel wants to merge 2 commits into
Open
Conversation
Add fuzzing integration for libnl, a C library for the Linux Netlink protocol used by NetworkManager, systemd, and iproute2. Includes 7 fuzz targets covering all major sub-libraries: - fuzz_msg/fuzz_attr/fuzz_addr: core netlink message and attribute parsing - fuzz_route/fuzz_neigh: libnl-route (routes and neighbours) - fuzz_ct: libnl-nf netfilter conntrack parsing - fuzz_idiag: libnl-idiag inet socket diagnostics parsing Tested locally with check_build (libfuzzer + asan).
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
bybel is integrating a new project: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
libnl is a C library for working with the Linux Netlink protocol. It is widely used by NetworkManager, systemd, iproute2, and other core Linux networking components, making it a high-value fuzzing target for memory safety and parsing correctness issues.
This PR adds an initial OSS-Fuzz integration with 7 fuzz targets covering all major sub-libraries:
fuzz_msgnlmsg_parse,nlmsg_validate,nlmsg_find_attrfuzz_attrnla_parse,nla_validate,nla_findfuzz_addrnl_addr_parseacross all address familiesfuzz_routertnl_route_parse(RTM_NEWROUTE)fuzz_neighrtnl_neigh_parse(RTM_NEWNEIGH)fuzz_ctnfnlmsg_ct_parse(netfilter conntrack)fuzz_idiagidiagnl_msg_parse(inet socket diagnostics)Testing
Verified locally with
python3 infra/helper.py check_build libnl: