Skip to content

Conversation

@CBL-Mariner-Bot
Copy link
Collaborator

[AUTOPATCHER-CORE] Upgrade net-snmp to 5.9.5 for CVE-2025-68615
Upgrade pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1011146&view=results

@CBL-Mariner-Bot CBL-Mariner-Bot requested a review from a team as a code owner December 23, 2025 14:02
@Kanishk-Bansal Kanishk-Bansal changed the title [AUTOPATCHER-CORE] Upgrade net-snmp to 5.9.5 for CVE-2025-68615 [AUTOPATCHER-CORE] Upgrade net-snmp to 5.9.5 for CVE-2025-68615 [Critical] Dec 23, 2025
@Kanishk-Bansal
Copy link
Contributor

Buddy Build

Copy link
Collaborator

@jslobodzian jslobodzian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build failed:

time="2025-12-23T14:29:27Z" level=debug msg="Net-SNMP installed version: 5.9.4 => 5.0904"
time="2025-12-23T14:29:27Z" level=debug msg="Perl Module Version: 5.0905"
time="2025-12-23T14:29:27Z" level=debug
time="2025-12-23T14:29:27Z" level=debug msg="These versions must match for perfect support of the module. It is possible"
time="2025-12-23T14:29:27Z" level=debug msg="that different versions may work together, but it is strongly recommended"
time="2025-12-23T14:29:27Z" level=debug msg="that you make these two versions identical. You can get the Net-SNMP"
time="2025-12-23T14:29:27Z" level=debug msg="source code and the associated perl modules directly from"
time="2025-12-23T14:29:27Z" level=debug
time="2025-12-23T14:29:27Z" level=debug msg=" http://www.net-snmp.org/"
time="2025-12-23T14:29:27Z" level=debug
time="2025-12-23T14:29:27Z" level=debug msg="If you want to continue anyway please set the NETSNMP_DONT_CHECK_VERSION"
time="2025-12-23T14:29:27Z" level=debug msg="environmental variable to 1 and re-run the Makefile.PL script."
time="2025-12-23T14:29:27Z" level=debug msg="make: *** [Makefile:308: perl/Makefile] Error 1"
time="2025-12-23T14:29:27Z" level=debug msg="error: Bad exit status from /var/tmp/rpm-tmp.ZxMdIK (%build)"
time="2025-12-23T14:29:27Z" level=debug
time="2025-12-23T14:29:27Z" level=debug msg="RPM build warnings:"
time="2025-12-23T14:29:27Z" level=debug msg=" bogus date in %changelog: Fri Apr 07 2022 Minghe Ren mingheren@microsoft.com - 5.9.1-2"
time="2025-12-23T14:29:27Z" level=debug
time="2025-12-23T14:29:27Z" level=debug msg="RPM build errors:"
time="2025-12-23T14:29:27Z" level=debug msg=" Bad exit status from /var/tmp/rpm-tmp.ZxMdIK (%build)"

@Kanishk-Bansal
Copy link
Contributor

Buddy Build

@Kanishk-Bansal Kanishk-Bansal force-pushed the cblmargh/net-snmp-upgrade-to-5.9.5-fasttrack/3.0 branch from cb4ca0f to b2aeee8 Compare December 23, 2025 18:06

%build
MIBS="ucd-snmp/diskio"
export NETSNMP_DONT_CHECK_VERSION=1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think we want to do this. This is to check that the Perl module version matches this version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jslobodzian & @Kanishk-Bansal I believe the real issue is with the configure file under https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9.5/net-snmp-5.9.5.tar.gz. In the configure file the version value is still set to 5.9.4

Identity of this package.

PACKAGE_NAME='Net-SNMP'
PACKAGE_TARNAME='net-snmp'
PACKAGE_VERSION='5.9.4'
PACKAGE_STRING='Net-SNMP 5.9.4'

PACKAGE_BUGREPORT='net-snmp-coders@lists.sourceforge.net'
PACKAGE_URL=''

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Kanishk Bansal <kanbansal@microsoft.com>
@Kanishk-Bansal
Copy link
Contributor

Buddy Build

Exclude the COPYING license file from the package.
@Kanishk-Bansal
Copy link
Contributor

Buddy Build
License Check has been fixed along with the build

@Kanishk-Bansal Kanishk-Bansal added the CVEFixReadyForMaintainerReview When a CVE fix has been reviewed by release manager and is ready for stable maintainer review label Dec 26, 2025
@jslobodzian
Copy link
Collaborator

@Kanishk-Bansal it looks like the build break for net-snmp is fixed now, but frr, which is and n+1 dependency, fails to build with that upgrade.

time="2025-12-25T07:03:56Z" level=debug msg="make[1]: Leaving directory '/usr/src/azl/BUILD/frr-frr-9.1.1'"
time="2025-12-25T07:03:56Z" level=debug msg="isisd/isis_snmp.c: In function 'isis_snmp_area_addr_lookup_exact':"
time="2025-12-25T07:03:56Z" level=debug msg="isisd/isis_snmp.c:855:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]"
time="2025-12-25T07:03:56Z" level=debug msg=" 855 | int res = isis_snmp_conv_exact(cmp_buf, sizeof(cmp_buf), &addr_len,"
time="2025-12-25T07:03:56Z" level=debug msg=" | ^"
time="2025-12-25T07:03:56Z" level=debug msg="isisd/isis_snmp.c: In function 'isis_snmp_area_addr_lookup_next':"
time="2025-12-25T07:03:56Z" level=debug msg="isisd/isis_snmp.c:905:9: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]"
time="2025-12-25T07:03:56Z" level=debug msg=" 905 | int res = isis_snmp_conv_next(cmp_buf, sizeof(cmp_buf), &addr_len,"
time="2025-12-25T07:03:56Z" level=debug msg=" | ^
"
time="2025-12-25T07:03:56Z" level=debug msg="cc1: some warnings being treated as errors"
time="2025-12-25T07:03:56Z" level=debug msg="make[1]: *** [Makefile:10771: isisd/isisd_snmp_la-isis_snmp.lo] Error 1"
time="2025-12-25T07:03:56Z" level=debug msg="make[1]: *** Waiting for unfinished jobs...."
time="2025-12-25T07:03:56Z" level=debug msg="make[1]: Entering directory '/usr/src/azl/BUILD/frr-frr-9.1.1'"

Copy link
Collaborator

@jslobodzian jslobodzian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build for frr now breaks.

@Kanishk-Bansal
Copy link
Contributor

closing in favour of #15408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automatic PR AutoUpgrade Core CVEFixReadyForMaintainerReview When a CVE fix has been reviewed by release manager and is ready for stable maintainer review fasttrack/3.0 PRs Destined for Azure Linux 3.0 Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants