{"id":"CVE-2026-115505","summary":"libsmb2 before 6.3 Integer Overflow in DCE/RPC NDR Decoder via NetrShareEnum","details":"libsmb2 before 6.3 contains integer overflow vulnerabilities in the DCE/RPC NDR decoder in lib/dcerpc.c that allow heap out-of-bounds reads and writes. A malicious SMB server or machine-in-the-middle on unsigned connections can send crafted NetrShareEnum replies with wrapping actual_count or max_count values when clients call smb2_share_enum_async(), corrupting heap memory.","modified":"2026-10-31T07:14:21.913547224Z","published":"2026-10-22T19:14:05.297Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115505.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115505.json"},{"type":"ADVISORY","url":"https://github.com/sahlberg/libsmb2/releases/tag/libsmb2-6.3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115505"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libsmb2-before-6.3-integer-overflow-in-dce-rpc-ndr-decoder-via-netrshareenum"},{"type":"REPORT","url":"https://github.com/sahlberg/libsmb2/issues/496"},{"type":"FIX","url":"https://github.com/sahlberg/libsmb2/commit/a79f6914cb5ed3f74293d15cdea901261ce179ff"},{"type":"PACKAGE","url":"https://github.com/sahlberg/libsmb2"},{"type":"EVIDENCE","url":"https://hackmd.io/@haindpwn/libsmb2-dcerpc-ndr-count-overflow-oob"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sahlberg/libsmb2","events":[{"introduced":"916d039e798cd6a6a60dff97e5441853b653d5f9"},{"fixed":"2bcb014b23a8c8cccf534eea8bda2fe5df453cfd"},{"fixed":"a79f6914cb5ed3f74293d15cdea901261ce179ff"}],"database_specific":{"extracted_events":[{"source":"DESCRIPTION","range":[{"introduced":"2"},{"fixed":"6.3"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"a79f6914cb5ed3f74293d15cdea901261ce179ff"}]}]}}],"versions":["v4.0.0","libsmb2-6.2","libsmb2-6.1","v6.0.0","libsmb2-6.0","v5.0.0","v3.0.0","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115505.json","vanir_signatures":[{"source":"https://github.com/sahlberg/libsmb2/commit/a79f6914cb5ed3f74293d15cdea901261ce179ff","target":{"file":"lib/dcerpc.c"},"deprecated":false,"digest":{"line_hashes":["24453160054753565830394999529811690103","196255967362816603934745101034157760426","79323916696948006734443640058758571882","338479566419955353942199647210490236089","17567939471411756492080201568840062654","120917691446166607514993708310952124827","32839931994712820329849178625021421396","166955841770309602707899871987736788273","213033943889142923131328099988227391692","35934479121769755232854601782217269876","84206490922969335135108530135788558256","24218729326048897931984866777791393351","64684106634810886064127349547969658279","310357741604454732633057059516657275183","330788214812409629016575522764911667885","88617988050440035951257387332141220639","11603817823367588883217254387532079756"],"threshold":0.9},"id":"CVE-2026-115505-25b9b7e4","signature_type":"Line","signature_version":"v1"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/sahlberg/libsmb2/commit/a79f6914cb5ed3f74293d15cdea901261ce179ff","target":{"file":"lib/dcerpc.c","function":"dcerpc_carray_coder"},"deprecated":false,"digest":{"length":691,"function_hash":"255083139788966510894666621215428286249"},"id":"CVE-2026-115505-362f1b24"},{"id":"CVE-2026-115505-b0719d15","signature_type":"Function","signature_version":"v1","source":"https://github.com/sahlberg/libsmb2/commit/a79f6914cb5ed3f74293d15cdea901261ce179ff","target":{"function":"dcerpc_decode_utf16","file":"lib/dcerpc.c"},"deprecated":false,"digest":{"function_hash":"32585787954076560017341506075581162198","length":1407}}],"vanir_signatures_modified":"2026-10-31T07:14:21Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"}]}