summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches
AgeCommit message (Collapse)AuthorFilesLines
2022-10-18net-snmp: remove unused patchadam1-16/+0
2022-10-18net-snmp py-netsnmp: updated to 5.9.3adam23-206/+61
*5.9.3*: security: - These two CVEs can be exploited by a user with read-only credentials: - CVE-2022-24805 A buffer overflow in the handling of the INDEX of NET-SNMP-VACM-MIB can cause an out-of-bounds memory access. - CVE-2022-24809 A malformed OID in a GET-NEXT to the nsVacmAccessTable can cause a NULL pointer dereference. - These CVEs can be exploited by a user with read-write credentials: - CVE-2022-24806 Improper Input Validation when SETing malformed OIDs in master agent and subagent simultaneously - CVE-2022-24807 A malformed OID in a SET request to SNMP-VIEW-BASED-ACM-MIB::vacmAccessTable can cause an out-of-bounds memory access. - CVE-2022-24808 A malformed OID in a SET request to NET-SNMP-AGENT-MIB::nsLogTable can cause a NULL pointer dereference - CVE-2022-24810 A malformed OID in a SET to the nsVacmAccessTable can cause a NULL pointer dereference. - To avoid these flaws, use strong SNMPv3 credentials and do not share them. If you must use SNMPv1 or SNMPv2c, use a complex community string and enhance the protection by restricting access to a given IP address range. - Thanks are due to Yu Zhang of VARAS@IIE and Nanyu Zhong of VARAS@IIE for reporting the following CVEs that have been fixed in this release, and to Arista Networks for providing fixes. misc: - Snmp-create-v3-user: Fix the snmpd.conf path @datadir@ is expanded in ${datarootdir} so datarootdir must be set before @datadir@ is used. general: Many bug fixes *5.9.2*: skipped due to a last minute library versioning found bug -- use 5.9.3 instead *5.9.1*: General: Many bug fixes *5.9* snmplib: - Add IPv6 support to DTLSUDP transport CHANGES: snmplib: use new netsnmp_sockaddr_storage in netsnmp_addr_pair CHANGES: snmplib: add base_transport ptr for tunneled transports snmpd: - Security vulnerabilty in the ping MIB reported by Christopher Ertl from Microsoft fixed - Changing to a different uid/gid can only be done once - The extend mib is now read-only by default snmptrap: - BUG: 2899: Patch from Drew Roedersheimer to set library engineboots/time values before sending unspecified: - Add pkg-config support for building applications and sub-agents Use the netsnmp package when building Net-SNMP applications. Use the netsnmp-agent package when building Net-SNMP subagents.
2022-08-05net-snmp: do not store configure options; remove Perl module entries from PLISTadam1-19/+22
2020-06-12Update to net-snmp 5.8sevan30-983/+77
*5.8* snmplib: - TLS/DTLS fixes - fix usm keychanges for new algorithms and longer keylengths - IP address formatting fixes - BUG: 2592: from Stuart Kendrick - increase MAXTC to 16384 - add new sha2 auth protocols - Restore AES-192 and AES-256 privacy protocols - from draft-blumenthal-aes-usm-04 (precursor to RFC 3826) - Use OIDs from http://www.snmp.com/eso/esoConsortiumMIB.txt - Some code borrowed from PATCH 1346, thanks to Alexander Ivanov and Vladimir Sukhorukov. - BUG: 2622: Fix excessive indents in log file - new config tokens: - sendMessageMaxSize - disableSNMPv1 / disableSNMPv2c - new api for dynamic debug log level (netsnmp_set_debug_log_level) snmpd: - SNMP-TARGET-MIB: Fix snmpTargetAddrTAddress - Com2sec and com2sec6 SOURCE values may deny sources as well as permit. - allow trap sinks to set Target-MIB characteristics (name, tag, profile) - add source addr/port option to trapsink/trap2sink/informsink - packet filtering by source ip (enableSourceFiltering/filtersource) - several getbulk handling improvements - several new APIs introduced for run-time configuration of agent: - netsnmp_vacm_simple_usm_add/del - usm_create_usmUser_* - netsnmp_udp_com2SecEntry_create/netsnmp_udp_com2SecList_remove - netsnmp_agent_listen_on to open agent port Win32: - Add support for the DTLS-UDP and TLS-TCP transports scripts: - A new 'checkbandwidth' script to check host min/max bandwidth snmptranslate: - Introduce bulk translation mode The special argument "-" causes snmptranslate to enter bulk translation mode, in which it expects one OID per line. Whitespace is treated as the end of the OID, and only that portion of the line is replaced, meaning that this can be used to translate, e.g., "snmpwalk" output without the proper MIBs loaded: snmptranslate -m all -OX < numeric.txt > symbolic.txt building: - Add Travis and Appveyor CI support - IPv6 support is now compiled by default. If you need an IPv4-only agent, use --disable-ipv6. - Fixed/improved support for several non-Linux platforms - Many fixes found by Coverity anf Fortify scans
2019-08-21net-snmp: Fix compilation on Solaris 11 and SmartOS.otis1-11/+8
2019-06-30net-snmp: Fix build on NetBSD 8.99.49kamil1-1/+11
Make usage of LSDEAD conditional.
2018-02-28net-snmp: PR kern/52945: snmpd does not work under current 8.0_BETAmaya1-0/+27
it seems that configure cannot detect IP_PKTINFO correctly because of using SOL_IP. SOL_IP is not defined on *BSD. And on netbsd, struct ip_pktinfo has no ipi_spec_dst. From Ryo Shimizu. PKGREVISION++
2018-02-25net-snmp: fix build with openssl-1.1.wiz4-0/+254
Bump PKGREVISION.
2017-10-06net-snmp: Prevent crash on NetBSD/i386gavan1-1/+10
A compiler bug causes incorrect compilation of the NetBSD-specific code in cpu_sysctl.c. This results in a crash shortly after startup if the machine has 2 or more CPUs. Disable optimisation in netsnmp_cpu_arch_load() only. This works around the problem reported in PR pkg/50939.
2017-02-09Fix compilation on Solaris 11.2.maya1-0/+18
Patch by Joern Clausen in PR pkg/49984, also committed upstream: https://sourceforge.net/p/net-snmp/code/ci/e2ce8bb37819c9ae24d482ac4108772f7b2c9b8c/
2016-06-06Adopt FreeBSD's patches to make this build with perl 5.24, ref.he17-49/+238
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270 https://bugs.gentoo.org/show_bug.cgi?id=582368 Bump PKGREVISION.
2016-04-29Fix for systems with RTF_LLDATA in place of RTF_LLINFO.adam3-0/+75
2015-08-20Support Crossbow VNICs. Patch by Ben Rockwood, previously of Joyent.jperkin2-0/+197
Bump PKGREVISION.
2015-06-08patch fromspz1-0/+124
http://sourceforge.net/p/net-snmp/code/ci/f23bcd3ac6ddee5d0a48f9703007ccc738914791/ taking care of (among others) the vulnerability described in http://www.openwall.com/lists/oss-security/2015/04/13/1
2014-12-31Changes 5.7.3:adam5-490/+61
Many many bug fixes and minor improvements snmpd, snmptrapd and apps: - Patch 2525: from Ryan Steinmetz: Fix argument length parsing of the host resources mib - Make ENV_SEPARATOR_CHAR configurable - SECURITY: a denial of service attack vector was discovered on the linux implementation of the ICMP-MIB. This release fixes this bug and all users are encouraged to update their SNMP agent if they make use of the ICMP-MIB table objects. perl: - BUG: 2402: Add support for SNMPv3 traps Windows: - Port batch build infrastructure to Visual Studio 2010 and later From Visual Studio 2010 on it is no longer possible to specify include or library directories globally - these have to be specified per project. Hence two additional menu entries in build.bat that allow to specify these directories. - Patch from Bart Van Assche to improve cygwin building
2014-11-26Fixed building on OS X 10.10; fixed CVE-2014-3565adam1-0/+437
2014-08-22Fix building on OS X 10.9 Mavericksadam1-5/+8
2014-01-26patch (in 4 parts) for CVE-2012-6151 fromspz4-0/+230
http://sourceforge.net/p/net-snmp/patches/_discuss/thread/36675011/e98b/attachment/alt-cancel-next-walk-v2.patch
2013-11-29Fix build on -current, functionality is untested.joerg3-0/+143
2013-11-05Link agent.so correctly against libperl.so.joerg1-0/+16
2013-04-14Always return a value from a non-void function (hi christos!).joerg1-2/+2
2013-04-05welcome to pl2.christos1-0/+13
- support for multi-cpu state reporting - fix bug with storage calculation (use frsize instead bsize)
2013-04-05Correct filename in new patch file to fix the build.tron1-3/+3
2013-04-05add per cpu loadschristos1-4/+33
2013-04-04memory stats -> wrong type in getting some sysctlschristos4-26/+205
cpu stats -> wrong sysctl getting cpu model process stats -> netbsd5 was not defined leading to wrong process stats
2013-03-23Include uvm/uvm_extern.h if it exists. Required for NetBSD/current.joerg1-0/+14
2013-03-17Remove zombie patch.gdt1-44/+0
2013-03-17Add forgotten patchfile.gdt1-0/+13
2013-03-17Fix nit in patch; ride previous bumpgdt1-2/+2
2013-03-17Update to 5.7.2.gdt50-2538/+92
This is a major update in terms of pkgsrc patches, of which there are far far too many. Analysis of patches was done by Karen Sirois of BBN, and I have remvoed patches that have been applied upstream. This builds fine and passes tests on NetBSD 6 i386. If you look after some other platform (Dragonfly, Darwin, FreeBSD, etc.), please make sure any problems are filed as upstream tickets; pkgsrc is not appropriate to carry patches long-term that should be fixed upstream, and this package has gotten out of hand. (OK by adam@ to do the update, but he has not reviewed the changes, so errors are my fault. It's quite likely there are issues on other platforms.) Upstream NEWS: *5.7.2* snmp: - BUG: 3526549: CVE-2012-2141 Array index error leading to crash snmpd: - BUG: 3532090: Fix high ifIndex values crashing hrDeviceDescr building: - PATCH: 2091156: correctly declare dependencies in Makefile. 'make -j <N>' should work now. Backport this to V5-4 as it is needed for correct operation in the single threaded case of make miblib as well. Many other miscellaneous minor bug fixes *5.7.1* libnetsnmp: - Fixed the mib-parsing-bug introduced shortly before 5.7 agent: - fixed rounding errors for disk percentage calculations openbsd: - better support for recent openbsd releases features: - bug fixes with minimalist support after additional user feedback Many other miscellaneous minor bug fixes *5.7* snmpd: - Delivery of data via regularily scheduled notifications. (see "Data Delivery via Notfications" in snmpd.conf) - Many time-based config options can take (m)ins, (h)ours, ... arguments (see the snmpd.conf manual page) - The PING and TRACEROUTE MIBs now compile and work-ish on linux http://www.net-snmp.org/wiki/index.php/DISMAN - Mib handlers can now implement a data_clone function for cloning the myvoid structure variable to avoid dangling pointers - Fixed persistent storage of VACM MIB configuration - Multi-homed agents send UDP responses from the proper IP address - The hrStorageTable implementation now supports large filesystems better - optimizations for large route tables - Added a deliveryByNotify config token for regular data delivery (see the snmpd.conf manual page and the NET-SNMP-PERIODIC-NOTIFY-MIB) - [PATCH 3141462]: fix agentx subagent issues with multiple-object requests - [PATCH 3057093]: linux uses libpci for creating useful ifDescr strings - [PATCH 3131397]: huge speedups of the TCP/UDP Tables libnetsnmp: - Removed the older CMU compatibility support - The SSH transport is now configurable TLS/DTLS support: - The SNMP over DTLS transport now properly supports IPv6 - Introduced new configuration tokens: localCert/peerCert (deprecating serverCert, clientCert, defX509ServerPub, defX509ClientPub) - Various fixes for the TLS/DTLS transports apps: - Added a per-variable timed output support to snmpwalk using -CT - snmpinform now correctly uses the local engineID for informs - A number of mib2c bug fixes - New snmp.conf tokens for timeouts and retries building: - New flags to reduce the amount of compiled code to bare minimums. This is provided by a new generic feature marking/selection mechanism. http://www.net-snmp.org/wiki/index.php/Feature_Marking_and_Selection - It's now possible to build without SNMPv3/USM (e.g., if you only want TLS/DTLS with SNMPv3/TSM) - It's possible to build the suite with no SET support configure using --enable-read-only - It's possible to build the agent as a notify-only agent configure using --enable-notify-only - Added a script to test memory usage with various config options (see the local/minimalist/sizetests script) - Net-SNMP can now be built to perform local DNSSEC validation (install DNSSEC-Tools' libval and use --with-local-dnssec-validation) testing: - a number of new API unit-tests have been added to the suite (to run the tests: cd testing && ./RUNFULLTESTS -g unit-tests) - The unit tests can be more easily run under valgrind (See http://bit.ly/jsgRnv for details) openbsd: - Support for updating the routing table via SNMP win32: - The testing suite works better under win32 environments - Many building fixes for the win32 environment(s) solaris: - Net-SNMP now supports the SCTP-MIB DragonFlyBSD, FreeBSD8: - Net-SNMP should now work on DragonFlyBSD and FreeBSD8 And of course: - Many other bug fixes. See the CHANGES and ChangeLog for details.
2013-03-12Make this compile on historical NetBSD.kim1-0/+15
2013-03-12Fix build of embedded perl if options perl is selected.garbled1-5/+5
2013-01-11Requires _KMEMUSER and uvm/uvm_extern.h on NetBSD/current.joerg2-6/+31
2012-05-17net/net-snmp: Fix IPv6 option on DragonFlymarino1-21/+35
Another victim of _KERNEL STRUCTURES...
2012-05-17add a patch by Jan Safranek <jsafranek@users.sourceforge.net> for CVE-2012-2141spz1-0/+20
from https://bugzilla.redhat.com/attachment.cgi?id=580443 : Check out-of-index conditions in ExtendOutput2Table.
2011-10-17PR/44479 -- disable use of nlist() if we're using sysctl() to get IP stats.shattered1-2/+6
2011-10-16Fixes build on DragonFly BSD (missing IFM_TOKEN).obache1-3/+19
Based on PR pkg/45474 by Samuel J. Greear.
2011-05-31patch-aq has been evil; exorcism performedadam1-3/+2
2011-05-30Fix building on NetBSD-i386adam1-2/+2
2011-05-27Changes 5.6.1.1:adam40-609/+540
* OID Typedef Bug Fix: The oid typedef was changed in 5.6.1 to an u_int32 from a u_long. This broke binary compatibility and likely 3rd-party code. 5.6.1.1 reverts this change and fixes an underlying OID printing problem in two agent modules that caused someone to change the typedef in the first place. Changes 5.6.1: * General: - The DTLS and TLS transports and the TSM security model are no longer "beta" (they've undergone rigorous interoperability testing). - Many Bug Fixes (see the CHANGES and ChangeLog files for full details) * snmpd: - 0 Patch 3141462: from fenner: fix agentx subagent issues with multiple-object requests - Patch from Niels to fix VACM persistant storage. Changes 5.6: * all: - Implemented the SNMP over TLS and SNMP over DTLS protocols [RFC-to-be] - Implemented the "Transport Security Model" [RFC5591] - Generic host-specific configuration .conf files are now read. - Include statements can now be used in .conf files. * snmpd: - Fix handling of multiple matching VACM entries. (Use the "best" match, rather than the first one). Reported by Adam Lewis. Note that this could potentially affect the behaviour of existing access control configurations. - Agent will no longer call table handlers if a set request for the handler has invalid indexes - table_data/tdata next handler will not be called during get processing if no valid rows are found for the handler - [PATCH 2952708]: Added Perl implementation of BRIDGE-MIB - moved all functions defined in libnetsnmphelpers to libnetsnmpagent. libnetsnmphelpers is now an empty library. - Implemented the TSM-MIB and the TLSTM-MIB - new API for indicating that persistent store needs to be saved after the current request finishes processing - [PATCH 2931446]: make the load averages writable. * apps: - A new tool 'net-snmp-cert' that easily creates and manages X.509 certificates for use with the SNMP over (D)TLS protocols. - Added an 'agentxtrap' command to send notifications via AgentX - -T command line flag can be used to pass configuration directly to transports that can accept configuration tokens - A new 'snmptls' command for manipulating the agent's TLS configuration * snmplib: - A more modular transport subsystem that allows third party extensions and dependencies for code reuse. - New transport functions: f_config, f_open, f_copy and f_setup_session - Transports can now specify session defaults - [PATCH 2942940]: Add a new function, netsnmp_parse_args, that is like snmp_parse_args but takes an additional bitmask, flags, to affect the behaviour. Also remove the magic handling of some application names. - A new X.509 certificate API for indexing and reading certificates - new experimental row creation API which uses a state machine to try really hard to create a row from a given varbind list - netsnmp_container enhancements: - added a free_item function - added a CONTAINER_FREE_ALL macro/function - added an interface for duplicating a container (CONTAINER_DUP) - added a remove function to container_iterators - added an ability to set options on binary_array containers - new snmp token logOption allows specifying log destinations via configuration conf files - A very significant reduction in compiler warning output - new experimental simple state machine handling API
2010-12-26Pull memory statistics properly, and fix an overflow in the CPU statistics.sekiya2-25/+165
("netbsdelf3", indeed ... )
2010-12-22Fix divide-by-zero error in CPU performance statistics.sekiya1-0/+40
Inspired by Red Hat Bugzilla Bug #501210.
2010-11-17Fix build problem on NetBSD 4.taca8-44/+48
Previous patch for NetBSD wasn't really for netbsd4 but 4.99.58 and later. So, I changed "#ifdef netbsd4" to "#ifdef NETBSD_STATS_VIA_SYSCTL" and clean up patches. Should be fix PR pkg/43288. It is fix of build problem only, so no PKG_REVISION bump.
2010-07-20Changes 5.4.3:adam10-76/+76
snmpd: - Change default AgentX target from 0.0.0.0:705 to localhost:705 - Fix CVE-2008-4309 (GETBULK issue reported by Oscar Mira-Sanchez) - Fix handling of multiple matching VACM entries (Use the "best" match, rather than the first one). Note that this could potentially affect the behaviour of existing access control configurations. - Latch large-disk statistics at 2Tb (rather than wrapping) Linux: - Fix build on modern distributions (using rpm-4.6) Windows: - Fix various builds (recent MSVC, MinGW, IPv6, winExtDLL)
2010-05-11Added patches, courtesy of Mike Bowie:adam10-4/+518
* Address changes in sysctl() storage, which has yielded values such as IP-MIB::ipForwarding.0 invalid. * RAM reporting on 64-bit systems.
2009-03-10Some systems define ifnet.if_lastchange as struct timespec (withapb5-7/+217
a tv_nsec field measured in nanoseconds), while other systems define it as struct timeval (with a tv_usec field measured in microseconds). Add a configure test and conditional code in agent/mibgroup/mibII/interfaces.c.orig. This should fix PR 40990. Bump PKGREVISION to 2.
2009-02-15Add a patch from the "net-snmp" repository to close the vulnerabilitytron1-0/+20
reported in SA33884/CVE-2008-6123.
2008-09-18Fix build on DragonFly. From PR 39566.joerg1-0/+20
2008-09-08Changes 5.4.2:adam14-276/+119
snmplib: - [PATCH 1921861]: Avoid endless loop after truncating 64bit int - Better handling of CONTAINER_INSERT failures with multiple indices snmpd: - [PATCH 2023633]: add SCTP-MIB implementation (Linux only) - suppress annoying "registration != duplicate" warning for root oids build: - [BUG 2023803]: Compilation problems on HP-UX 11.31 - Update to libtool 1.5.26 AIX: - Add support for AIX 6.x.
2008-07-15Changes 5.4.1.2:adam3-8/+12
* An increment only in the version number that was failing to be reported properly by the tools. Changes 5.4.1.1: * SECURITY BUG: A portion of SNMPv3 code had significantly weakened authentication cryptography and unauthenticated access to a system is a possibility. * It is critical that all users update their installations bases IMMEDIATELY. * If you were only using SNMPv1 or SNMPv2c you were already insecure beyond a level that this vulnerability affects.