Skip to content
OpenAdvisories
Medium · 5.5 CVE-2022-3534 EUVD-2022-42900GHSA-gfpq-px23-jj9f

Linux Kernel libbpf btf_dump.c btf_dump_name_dups use after free

Published Oct 17, 2022 · Updated Oct 14, 2026 · Assigned by VulDB

Description

A vulnerability has been found in Linux Kernel up to 5.10.162/5.15.85/6.0.15/6.1.1. The impacted element is the function btf_dump_name_dups of the file tools/lib/bpf/btf_dump.c of the component libbpf. The manipulation leads to use after free. Upgrading to version 5.10.163, 5.15.86, 6.0.16, 6.1.2 and 6.2 is sufficient to resolve this issue. The identifier of the patch is c61650b869e0b6fb0c0a28ed42d928eea969afc8/fbe08093fb2334549859829ef81d42570812597d/8c64a8e76eb85d422af5ec60ccbf26e3ead8c333/a733bf10198eb5bb927890940de8ab457491ed3b/93c660ca40b5d2f7c1b1626e955a8e9fa30e0749. You should upgrade the affected component.

Affected products

VendorProductAffectedFixed
Linux Kernel 5.10.162, 5.15.0, 5.15.1, 5.15.2, 5.15.3, 5.15.4, 5.15.5, 5.15.6, 5.15.7, 5.15.8, 5.15.9, 5.15.10, 5.15.11, 5.15.12, 5.15.13, 5.15.14, 5.15.15, 5.15.16, 5.15.17, 5.15.18, 5.15.19, 5.15.20, 5.15.21, 5.15.22, 5.15.23, 5.15.24, 5.15.25, 5.15.26, 5.15.27, 5.15.28, 5.15.29, 5.15.30, 5.15.31, 5.15.32, 5.… 5.10.163

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libbpf 1.1.0-1 —
Debian 13 libbpf 1.1.0-1 —
Debian 12 libbpf 1.1.0-1 —
Debian 11 libbpf 0.3-2+deb11u1 DLA-4137-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libbpf 0.5.0-1ubuntu22.04.1 USN-5759-1
Ubuntu 20.04 LTS dwarves-dfsg 1.21-0ubuntu1~20.04.1 USN-6215-1
Ubuntu 16.04 LTS dwarves-dfsg No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libbpf 0.5.0-1~ubuntu20.04.1+esm1 USN-5759-2
Ubuntu Pro 18.04 LTS dwarves-dfsg 1.21-0ubuntu1~18.04.1+esm1 USN-6215-1
ReleasePackageFixed inAdvisory
SLES 15 SP4 libbpf 0.5.0-150400.3.3.1 SUSE-SU-2023:0405-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 libbpf 0.5.0-150400.3.3.1 SUSE-SU-2023:0405-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.1.10-15.42 1.0-0.amzn2023 ALAS2023-2023-070
Amazon Linux 2023 perf +12 6.1.10-15.42.amzn2023 ALAS2023-2023-070
Amazon Linux 2 libbpf +2 0.5.0-2.amzn2.0.3 ALAS2-2022-1889

Advisories 11

References