mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-13 15:47:23 +00:00
nmap: patch CVE-2026-58058
Details: https://nvd.nist.gov/vuln/detail/cve-2026-58058 Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
This commit is contained in:
1 parent
7629323ae3
commit
e3266bede8
2 files changed
+35
No files matched your search
@@ -0,0 +1,34 @@
|
||||
From 63815f6a8865d8c99a1f3abb9d7383a2be0ea67e Mon Sep 17 00:00:00 2001
|
||||
From: dmiller <dmiller@e0a8ed71-7df4-0310-8962-fdc924857419>
|
||||
Date: Thu, 25 Jun 2026 21:58:49 +0000
|
||||
Subject: [PATCH] Fix extension header parsing. Credit: Himanshu Anand
|
||||
|
||||
(cherry picked from commit bb6754e76bb1686315008e1aa1c40202a513fb83)
|
||||
|
||||
CVE: CVE-2026-58058
|
||||
Upstream-Status: Backport [https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83]
|
||||
|
||||
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
|
||||
---
|
||||
libnetutil/netutil.cc | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc
|
||||
index 6e81f558c..0adf18b8e 100644
|
||||
--- a/libnetutil/netutil.cc
|
||||
+++ b/libnetutil/netutil.cc
|
||||
@@ -615,11 +615,13 @@ static const void *ipv6_get_data_primitive(const struct ip6_hdr *ip6,
|
||||
*nxt = ip6->ip6_nxt;
|
||||
p += sizeof(*ip6);
|
||||
while (p < end && ipv6_is_extension_header(*nxt)) {
|
||||
- if (p + 2 > end)
|
||||
+ if (p + 8 > end)
|
||||
return NULL;
|
||||
*nxt = *p;
|
||||
p += (*(p + 1) + 1) * 8;
|
||||
}
|
||||
+ if (p >= end)
|
||||
+ return NULL;
|
||||
|
||||
*len = end - p;
|
||||
if (upperlayer_only && !ipv6_is_upperlayer(*nxt))
|
||||
@@ -11,6 +11,7 @@ SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \
|
||||
file://0002-Fix-building-with-libc.patch \
|
||||
file://0001-fix-racing-between-build-ncat-and-build-lua.patch \
|
||||
file://0004-libdnet-fix-PF_PACKET-conftest-nested-function.patch \
|
||||
file://CVE-2026-58058.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "df512492ffd108e53a27a06f26d8635bbe89e0e569455dc8ffef058c035d51b2"
|
||||
|
||||
|
||||
Reference in new issue
Block a user