CVE-2024-8006

Publication date 31 August 2024

Last updated 26 August 2025


Ubuntu priority

Cvss 3 Severity Score

4.4 · Medium

Score breakdown

Description

Remote packet capture support is disabled by default in libpcap. When a user builds libpcap with remote packet capture support enabled, one of the functions that become available is pcap_findalldevs_ex(). One of the function arguments can be a filesystem path, which normally means a directory with input data files. When the specified path cannot be used as a directory, the function receives NULL from opendir(), but does not check the return value and passes the NULL value to readdir(), which causes a NULL pointer derefence.

Read the notes from the security team

Status

Package Ubuntu Release Status
libpcap 24.04 LTS noble
Not affected
22.04 LTS jammy
Not affected
20.04 LTS focal
Not affected
18.04 LTS bionic
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected

Notes


mdeslaur

remote packet capture is not enabled in Ubuntu builds, so this vulnerability is not present in Ubuntu packages.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
libpcap

Severity score breakdown

CVSS version: CVSS v3.0

Base score 4.4 · Medium

Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H


Access our resources on patching vulnerabilities