Net-SNMP's OID view parser can write past the heap with delegated SNMP write access
CVE-2026-138295 affects Net-SNMP snmpd through 5.9.5.2, and 5.10 pre-release versions before 5.10.pre3. A heap out-of-bounds write exists in view_parse_oid(). The attacker needs authenticated SNMP write access, which narrows the remote path but does not make the defect harmless. Monitoring systems often hold write credentials for counter resets, configuration changes, or trap administration.
The bug corrupts memory while parsing an OID used in a view. A successful trigger may crash the daemon or alter adjacent heap data. The CVE record does not claim reliable code execution, and operators should not assume that a crash is the only possible outcome. Reliability depends on allocator state, the crafted value, and the build.
Why SNMP write access needs its own review
SNMP is frequently treated as a read-only monitoring protocol. That assumption breaks when automation uses SET operations or when a community string inherited from an older deployment still has write authority. A compromised poller, an overprivileged monitoring account, or a mis-scoped view can become the starting point for memory corruption in the agent.
The parser also sits in a configuration path that may be exercised less often than GET and GETNEXT processing. Teams should identify every account that can submit a view-related OID, not only accounts used for interface polling. Disable SET where it is not required. Separate read-only and write credentials. Restrict management traffic to monitoring networks and explicit source addresses.
Upgrade and verification steps
Upgrade to 5.10.pre3 or later, or apply the vendor patch to a maintained release branch. Verify the actual snmpd binary on each host rather than relying on a package-family version.
Export the effective view and access configuration. Look for broad views, write-capable groups, and credentials copied between environments.
Test a nonproduction agent with the patched build while exercising both valid OID views and malformed view entries. Confirm that the daemon rejects the input and remains stable.
Collect daemon logs, core dumps, and package hashes from any unexplained restart. Treat repeated agent crashes after configuration changes as a security event until the trigger is known.
Limits of the finding
This is not an unauthenticated internet-wide exploit. The affected path requires valid SNMP authority and a view-parsing operation. The appropriate response is still a patch plus credential review, because write access is often granted broadly and long-lived monitoring accounts are rarely rotated.
Top comments (0)