diff options
| author | Vijay Anusuri <vanusuri@mvista.com> | 2026-01-07 21:01:25 +0530 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-01-08 22:03:03 +0100 |
| commit | 42e868a46870293a86a3aca30f71437d2399818b (patch) | |
| tree | f0bcbf5d3c79e1194fd67e072807f6c2414c0346 /meta-networking | |
| parent | 53abba638b08b5efb36f3a763d86a0a1fa085eec (diff) | |
| download | meta-openembedded-42e868a46870293a86a3aca30f71437d2399818b.tar.gz | |
net-snmp: Fix for CVE-2025-68615
Upstream-Status: Backport from https://github.com/net-snmp/net-snmp/commit/b4e6f826d9ddcc2d72eac432746807e1234266db
Reference: https://github.com/net-snmp/net-snmp/security/advisories/GHSA-4389-rwqf-q9gq
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2025-68615.patch | 33 | ||||
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2025-68615.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2025-68615.patch new file mode 100644 index 0000000000..1e6c65f0e5 --- /dev/null +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/CVE-2025-68615.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From b4e6f826d9ddcc2d72eac432746807e1234266db Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bart Van Assche <bvanassche@acm.org> | ||
| 3 | Date: Sun, 2 Nov 2025 14:48:55 -0800 | ||
| 4 | Subject: [PATCH] snmptrapd: Fix out-of-bounds trapOid[] accesses | ||
| 5 | |||
| 6 | Fixes: https://issues.oss-fuzz.com/issues/457106694 | ||
| 7 | Fixes: https://issues.oss-fuzz.com/issues/458668421 | ||
| 8 | Fixes: https://issues.oss-fuzz.com/issues/458876071 | ||
| 9 | |||
| 10 | Upstream-Status: Backport [https://github.com/net-snmp/net-snmp/commit/b4e6f826d9ddcc2d72eac432746807e1234266db] | ||
| 11 | CVE: CVE-2025-68615 | ||
| 12 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 13 | --- | ||
| 14 | apps/snmptrapd_handlers.c | 6 ++++++ | ||
| 15 | 1 file changed, 6 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/apps/snmptrapd_handlers.c b/apps/snmptrapd_handlers.c | ||
| 18 | index 6cd126f266..afd93ed0fb 100644 | ||
| 19 | --- a/apps/snmptrapd_handlers.c | ||
| 20 | +++ b/apps/snmptrapd_handlers.c | ||
| 21 | @@ -1112,6 +1112,12 @@ snmp_input(int op, netsnmp_session *session, | ||
| 22 | */ | ||
| 23 | if (pdu->trap_type == SNMP_TRAP_ENTERPRISESPECIFIC) { | ||
| 24 | trapOidLen = pdu->enterprise_length; | ||
| 25 | + /* | ||
| 26 | + * Drop packets that would trigger an out-of-bounds trapOid[] | ||
| 27 | + * access. | ||
| 28 | + */ | ||
| 29 | + if (trapOidLen < 1 || trapOidLen > OID_LENGTH(trapOid) - 2) | ||
| 30 | + return 1; | ||
| 31 | memcpy(trapOid, pdu->enterprise, sizeof(oid) * trapOidLen); | ||
| 32 | if (trapOid[trapOidLen - 1] != 0) { | ||
| 33 | trapOid[trapOidLen++] = 0; | ||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb index 13dc603bfa..7b7f2be633 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb | |||
| @@ -28,6 +28,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \ | |||
| 28 | file://0001-ac_add_search_path.m4-keep-consistent-between-32bit.patch \ | 28 | file://0001-ac_add_search_path.m4-keep-consistent-between-32bit.patch \ |
| 29 | file://CVE-2022-44792-CVE-2022-44793.patch \ | 29 | file://CVE-2022-44792-CVE-2022-44793.patch \ |
| 30 | file://0001-unload_all_mibs-fix-memory-leak-by-freeing-tclist.patch \ | 30 | file://0001-unload_all_mibs-fix-memory-leak-by-freeing-tclist.patch \ |
| 31 | file://CVE-2025-68615.patch \ | ||
| 31 | " | 32 | " |
| 32 | SRC_URI[sha256sum] = "2097f29b7e1bf3f1300b4bae52fa2308d0bb8d5d3998dbe02f9462a413a2ef0a" | 33 | SRC_URI[sha256sum] = "2097f29b7e1bf3f1300b4bae52fa2308d0bb8d5d3998dbe02f9462a413a2ef0a" |
| 33 | 34 | ||
