Bug 2165706 (CVE-2022-3534) - CVE-2022-3534 Kernel: use-after-free in btf_dump_name_dups in tools/lib/bpf/btf_dump.c
Summary: CVE-2022-3534 Kernel: use-after-free in btf_dump_name_dups in tools/lib/bpf/b...
Keywords:
Status: NEW
Alias: CVE-2022-3534
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2165709 2165710 2165711 2165712
Blocks: 2135596
TreeView+ depends on / blocked
 
Reported: 2023-01-30 19:48 UTC by Rohit Keshri
Modified: 2023-11-16 07:53 UTC (History)
36 users (show)

Fixed In Version: Kernel 6.2 RC1
Doc Type: ---
Doc Text:
A use-after-free flaw was found in btf_dump_name_dups in tools/lib/bpf/btf_dump.c in libbpf in the Linux Kernel. This issue occurs because the key stored in the hash table name_map is a string address, and the string memory is allocated by realloc() function. When the memory is resized by realloc() later, the old memory may be freed.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Rohit Keshri 2023-01-30 19:48:40 UTC
A use-after-free vulnerability was found in btf_dump_name_dups in tools/lib/bpf/btf_dump.c in libbpf in the Linux Kernel.

Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=93c660ca40b5d2f7c1b1626e955a8e9fa30e0749


Note You need to log in before you can comment on or make changes to this bug.