cbcvebase.
CVE-2022-49837
published 2025-05-01

CVE-2022-49837: In the Linux kernel, the following vulnerability has been resolved: bpf: Fix memory leaks in __check_func_call kmemleak reports this issue: unreferenced object…

PriorityP419medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.19%
8.4th percentile
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix memory leaks in __check_func_call kmemleak reports this issue: unreferenced object 0xffff88817139d000 (size 2048): comm "test_progs", pid 33246, jiffies 4307381979 (age 45851.820s) hex dump (first 32 bytes): 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_trace+0x27/0xa0 [] __check_func_call+0x316/0x1230 [] check_helper_call+0x172e/0x4700 [] do_check+0x21d8/0x45e0 [] do_check_common+0x767/0xaf0 [] bpf_check+0x43e3/0x5bc0 [] bpf_prog_load+0xf26/0x1940 [] __sys_bpf+0xd2c/0x3650 [] __x64_sys_bpf+0x75/0xc0 [] do_syscall_64+0x3b/0x90 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd The root case here is: In function prepare_func_exit(), the callee is not released in the abnormal scenario after "state->curframe--;". To fix, move "state->curframe--;" to the very bottom of the function, right when we free callee and reset frame[] pointer to NULL, as Andrii suggested. In addition, function __check_func_call() has a similar problem. In the abnormal scenario before "state->curframe++;", the callee also should be released by free_func_state().

Affected

11 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.0.10-1 (bookworm)linux 6.0.10-1 (bookworm)
linuxlinux
linuxlinux>= fd978bf7fd312581a7ca454a991f0ffb34c4204b < d4944497827a3d14bc5a26dbcfb7433eb5a956c0d4944497827a3d14bc5a26dbcfb7433eb5a956c0
linuxlinux>= fd978bf7fd312581a7ca454a991f0ffb34c4204b < 83946d772e756734a900ef99dbe0aeda506adf3783946d772e756734a900ef99dbe0aeda506adf37
linuxlinux>= fd978bf7fd312581a7ca454a991f0ffb34c4204b < eb86559a691cea5fa63e57a03ec3dc9c31e97955eb86559a691cea5fa63e57a03ec3dc9c31e97955
linuxlinux_kernel
linuxlinux_kernel>= 0 < 6.0.10-16.0.10-1
linuxlinux_kernel>= 0 < 6.0.10-16.0.10-1
linuxlinux_kernel>= 0 < 6.0.10-16.0.10-1
linuxlinux_kernel>= 4.20 < 5.15.805.15.80
linuxlinux_kernel>= 5.16 < 6.0.106.0.10

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.