{"id":"CVE-2019-15165","details":"sf-pcapng.c in libpcap before 1.9.1 does not properly validate the PHB header length before allocating memory.","modified":"2026-03-20T11:28:21.197335Z","published":"2019-10-03T19:15:09.473Z","related":["ALSA-2020:4547","MGASA-2019-0297","SUSE-SU-2019:2669-1","SUSE-SU-2019:2673-1","openSUSE-SU-2019:2343-1","openSUSE-SU-2019:2345-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5P5K3DQ4TFSZBDB3XN4CZNJNQ3UIF3D3/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZTIPUWABYUE5KQOLCKAW65AUUSB7QO6/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GBIEKWLNIR62KZ5GA7EDXZS52HU6OE5F/"},{"type":"ADVISORY","url":"https://www.oracle.com/security-alerts/cpuapr2020.html"},{"type":"ADVISORY","url":"https://github.com/the-tcpdump-group/libpcap/blob/libpcap-1.9/CHANGES"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2021/12/msg00014.html"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210789"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210790"},{"type":"ADVISORY","url":"https://www.tcpdump.org/public-cve-list.txt"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00052.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2019/10/msg00031.html"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210788"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00051.html"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Dec/23"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210785"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4221-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4221-2/"},{"type":"REPORT","url":"http://seclists.org/fulldisclosure/2019/Dec/26"},{"type":"FIX","url":"https://github.com/the-tcpdump-group/libpcap/commit/87d6bef033062f969e70fa40c43dfd945d5a20ab"},{"type":"FIX","url":"https://github.com/the-tcpdump-group/libpcap/commit/a5a36d9e82dde7265e38fe1f87b7f11c461c29f6"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/the-tcpdump-group/libpcap","events":[{"introduced":"0"},{"fixed":"d396f255cf7b96a09cf91d0e8cc94d23777d6986"},{"fixed":"87d6bef033062f969e70fa40c43dfd945d5a20ab"},{"fixed":"a5a36d9e82dde7265e38fe1f87b7f11c461c29f6"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"1.9.1"}]}}],"versions":["libpcap-0.6.1","libpcap-0.7.1","libpcap-0.8-bp","libpcap-1.3-bp","libpcap-1.5.0","libpcap-1.6.0-bp","libpcap-1.7.0-bp","libpcap-1.8.0-bp","libpcap-1.8.1","libpcap-1.9-bp","libpcap-1.9.0","libpcap-1.9.0-rc1","libpcap-1.9.0rc2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-15165.json","vanir_signatures":[{"signature_type":"Function","target":{"file":"sf-pcapng.c","function":"pcap_ng_check_header"},"source":"https://github.com/the-tcpdump-group/libpcap/commit/87d6bef033062f969e70fa40c43dfd945d5a20ab","deprecated":false,"id":"CVE-2019-15165-21c491be","signature_version":"v1","digest":{"function_hash":"273265343795771163597337149327247680660","length":4423}},{"signature_type":"Line","target":{"file":"sf-pcapng.c"},"source":"https://github.com/the-tcpdump-group/libpcap/commit/a5a36d9e82dde7265e38fe1f87b7f11c461c29f6","deprecated":false,"id":"CVE-2019-15165-3ab0d65b","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["33569344490841975826475357806513969975","176936773931677560023105738202080746077","82765497582357681474057124500102529886","47509769026809880545712837698025898234","114674106025352316584238681736756524425","225247956292447568972137037164393642926","44311349298669397529820140779301570018","265875743096863861146943255088634824721","248459255112037681823287854975290900003","203344547433097007151709177406498985917"]}},{"signature_type":"Line","target":{"file":"sf-pcapng.c"},"source":"https://github.com/the-tcpdump-group/libpcap/commit/87d6bef033062f969e70fa40c43dfd945d5a20ab","deprecated":false,"id":"CVE-2019-15165-b4790a52","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["33569344490841975826475357806513969975","176936773931677560023105738202080746077","82765497582357681474057124500102529886","3066346285081142572972898439175944496","207054172879942558775436565344398076245","202827879285952739181376259266032820217","182934794976808028147140004550245606147","295535185644563427780949767249897619274","53843891289086496234714335513567034141","213234844142231421134160054084745701111","204429355472345025953888871580766989717","146318862421346535880160986171396007463","38921675439697220774488857836170998837","180683718088558781989640523601469022063","339270694605418171184907104566787178320","279939791553444257426719115981711938391","149326201062023264910362971715879161097","187870402788100306015019375980595948660","334930619449404498430276733104830567186","197668102473191542278678260281096560269","34358175535383540312287891631978702264","49448256902558009889600050226351044896","156892085676711788323859943207119517089","16052876937386000751523253874141047924","260393753005259561847138914723125937048"]}},{"signature_type":"Function","target":{"file":"sf-pcapng.c","function":"read_bytes"},"source":"https://github.com/the-tcpdump-group/libpcap/commit/87d6bef033062f969e70fa40c43dfd945d5a20ab","deprecated":false,"id":"CVE-2019-15165-ed60c6c1","signature_version":"v1","digest":{"function_hash":"302943058939901861236031757384260746647","length":512}},{"signature_type":"Function","target":{"file":"sf-pcapng.c","function":"pcap_ng_check_header"},"source":"https://github.com/the-tcpdump-group/libpcap/commit/a5a36d9e82dde7265e38fe1f87b7f11c461c29f6","deprecated":false,"id":"CVE-2019-15165-ff7b19b7","signature_version":"v1","digest":{"function_hash":"74418383905190548705852926004747696182","length":4330}}],"unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"last_affected":"15.0"}]},{"events":[{"introduced":"0"},{"last_affected":"15.1"}]},{"events":[{"introduced":"0"},{"last_affected":"3.4"}]},{"events":[{"introduced":"0"},{"last_affected":"4.0"}]},{"events":[{"introduced":"0"},{"last_affected":"4.1"}]},{"events":[{"introduced":"0"},{"last_affected":"4.2"}]},{"events":[{"introduced":"0"},{"last_affected":"4.3"}]},{"events":[{"introduced":"0"},{"last_affected":"13.3"}]},{"events":[{"introduced":"0"},{"last_affected":"13.3"}]},{"events":[{"introduced":"10.13"},{"fixed":"10.13.6"}]},{"events":[{"introduced":"0"},{"last_affected":"10.13.6-security_update_2019\\-007"}]},{"events":[{"introduced":"0"},{"last_affected":"10.14.6-security_update_2019\\-002"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.2"}]},{"events":[{"introduced":"0"},{"last_affected":"13.3"}]},{"events":[{"introduced":"0"},{"last_affected":"6.1.1"}]},{"events":[{"introduced":"0"},{"last_affected":"12.04"}]},{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]},{"events":[{"introduced":"0"},{"last_affected":"19.04"}]},{"events":[{"introduced":"0"},{"last_affected":"29"}]},{"events":[{"introduced":"0"},{"last_affected":"30"}]},{"events":[{"introduced":"0"},{"last_affected":"31"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}