Werk #18345: net-snmp: Prevent segfault due to null pointer

Component Checks & agents
Title net-snmp: Prevent segfault due to null pointer
Date Nov 11, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p16
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Under certain conditions, a function in the net-snmp library could return a null pointer instead of a valid one.

When such a null pointer was accessed a segmentation fault occurred. This caused Checkmk helper processes to crash and produce core dumps.

This werk patches the library to add validation in order to prevent it from accessing null pointers.

To the list of all Werks