Use After Free Affecting bpftool package, versions <0:7.4.0-503.19.1.el9_5


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.24% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CENTOS9-BPFTOOL-8807123
  • published28 Feb 2025
  • disclosed21 Oct 2024

Introduced: 21 Oct 2024

CVE-2024-47675  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Centos:9 bpftool to version 0:7.4.0-503.19.1.el9_5 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream bpftool package and not the bpftool package as distributed by Centos. See How to fix? for Centos:9 relevant fixed versions and status.

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()

If bpf_link_prime() fails, bpf_uprobe_multi_link_attach() goes to the error_free label and frees the array of bpf_uprobe's without calling bpf_uprobe_unregister().

This leaks bpf_uprobe->uprobe and worse, this frees bpf_uprobe->consumer without removing it from the uprobe->consumers list.

CVSS Base Scores

version 3.1