Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
/open-lldp/lldp_8021qaz.c:526 - Function "find_module_user_data_by_id" without NULL check (checked 4 out of 5 times).
/open-lldp/lldp_rtnl.c:335, 336 - Macro RTA_DATA expands to the pointer at the end of structure rta.
/open-lldp/lldp_mand_cmds.c:496 - Function mand_clif_cmd returns without freeing variables args and argvals.
Version-Release number of selected component (if applicable):
0.9.43
Additional info:
These defects were added between RHEL-6.1 and RHEL-6.2 version of package.
(In reply to comment #0)
> Description of problem:
>
> /open-lldp/lldp_8021qaz.c:526 - Function "find_module_user_data_by_id" without
> NULL check (checked 4 out of 5 times).
>
> /open-lldp/lldp_rtnl.c:335, 336 - Macro RTA_DATA expands to the pointer at the
> end of structure rta.
Could you provide more info on this one?
>
> /open-lldp/lldp_mand_cmds.c:496 - Function mand_clif_cmd returns without
> freeing variables args and argvals.
This seems to be bogus. both **args and **argvals are free()'d in every case.
>
> Version-Release number of selected component (if applicable):
> 0.9.43
>
> Additional info:
> These defects were added between RHEL-6.1 and RHEL-6.2 version of package.
I can't understand the nltest.c:get_bcn() perfectly, but I suspect the `nlh' structure is not freed at the end of the function.
Apparently a pointer to nlh space is saved as `d' that turns into `rta_parent' and this into `rta_child'. Then the rta_child iterates over rta_parent and data are copied from there into `bcn_data' structure in rest of the function. Finally the function returns 0, nlh data are carried out as copy by bcn_data argument, but the nlh itself is not not freed.
Coverity cannot analyze functions that walk dynamically linked data structures precisely enough to reveal non-trivial memory leaks introduced during the traversal. The only thing that Coverity is trying to tell you here is that you leak the memory in case an error happens -- see the lines 784 and 790 (return -EIO). Anyway this bug is about defects introduced in RHEL-6.2 while the defect you are talking about was in lldpad-0.9.41-4.el6 already.
(In reply to comment #11)
> Anyway this bug is about defects introduced in RHEL-6.2 while the
> defect you are talking about was in lldpad-0.9.41-4.el6 already.
Ok. Copying as bug #730989.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2011-1604.html