Memory Leak Affecting bpftool package, versions <0:7.3.0-427.62.1.el9_4


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.05% (13th 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 Learn

Learn about Memory Leak vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL9-BPFTOOL-9600922
  • published2 Apr 2025
  • disclosed1 May 2024

Introduced: 1 May 2024

CVE-2023-52653  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade RHEL:9 bpftool to version 0:7.3.0-427.62.1.el9_4 or higher.
This issue was patched in RHSA-2025:3510.

NVD Description

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

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

SUNRPC: fix a memleak in gss_import_v2_context

The ctx->mech_used.data allocated by kmemdup is not freed in neither gss_import_v2_context nor it only caller gss_krb5_import_sec_context, which frees ctx on error.

Thus, this patch reform the last call of gss_import_v2_context to the gss_krb5_import_ctx_v2, preventing the memleak while keepping the return formation.

CVSS Base Scores

version 3.1