PT-2025-18554 · Linux+4 · Linux Kernel+4

Published

2023-11-07

·

Updated

2026-03-14

·

CVE-2022-49837

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to memory leaks in the check func call function of the Linux kernel's bpf module. The problem occurs when the callee is not released in abnormal scenarios, leading to memory leaks. The root cause is identified in the prepare func exit function, where the callee is not released after state->curframe--. To fix this, it is suggested to move state->curframe-- to the end of the function, where the callee is freed and the frame[] pointer is reset to NULL. A similar problem is also found in the check func call function, where the callee should be released by free func state() in abnormal scenarios before state->curframe++.
Recommendations To resolve the issue, move state->curframe-- to the very bottom of the prepare func exit function, right when the callee is freed and the frame[] pointer is reset to NULL. Additionally, in the check func call function, release the callee by calling free func state() in the abnormal scenario before state->curframe++. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Memory Leak

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-49837
RHSA-2023:6583
RHSA-2023_6583
SUSE-SU-2025:01966-1
SUSE-SU-2025:02173-1
SUSE-SU-2025:2173-1
SUSE-SU-2025_02173-1

Affected Products

Astra Linux
Debian
Linux Kernel
Red Hat
Suse