Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-49837

MEDIUM 5.5EPSS 13%

bpf: Fix memory leaks in __check_func_call

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < d4944497827a3d14bc5a26dbcfb7433eb5a956c0; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < 83946d772e756734a900ef99dbe0aeda506adf37; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < eb86559a691cea5fa63e57a03ec3dc9c31e97955
  • Anyone running Linux 4.20

Vulnerability facts

Affected
Linux >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < d4944497827a3d14bc5a26dbcfb7433eb5a956c0; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < 83946d772e756734a900ef99dbe0aeda506adf37; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < eb86559a691cea5fa63e57a03ec3dc9c31e97955; Linux 4.20
Fixed in
Linux 83946d772e756734a900ef99dbe0aeda506adf37
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
CWE
CWE-401
Published
Modified

Description

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: [<0000000045f075f0>] kmalloc_trace+0x27/0xa0 [<0000000098b7c90a>] __check_func_call+0x316/0x1230 [<00000000b4c3c403>] check_helper_call+0x172e/0x4700 [<00000000aa3875b7>] do_check+0x21d8/0x45e0 [<000000001147357b>] do_check_common+0x767/0xaf0 [<00000000b5a595b4>] bpf_check+0x43e3/0x5bc0 [<0000000011e391b1>] bpf_prog_load+0xf26/0x1940 [<0000000007f765c0>] __sys_bpf+0xd2c/0x3650 [<00000000839815d6>] __x64_sys_bpf+0x75/0xc0 [<00000000946ee250>] do_syscall_64+0x3b/0x90 [<0000000000506b7f>] 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 and fixed versions

Package / productAffectedFixedSource
Linux>= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < d4944497827a3d14bc5a26dbcfb7433eb5a956c0; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < 83946d772e756734a900ef99dbe0aeda506adf37; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < eb86559a691cea5fa63e57a03ec3dc9c31e97955—cvelist
Linux4.20—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-49837. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49837.md
Affected: Linux >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < d4944497827a3d14bc5a26dbcfb7433eb5a956c0; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < 83946d772e756734a900ef99dbe0aeda506adf37; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < eb86559a691cea5fa63e57a03ec3dc9c31e97955; Linux 4.20
Fixed in: Linux 83946d772e756734a900ef99dbe0aeda506adf37

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-49837 being exploited?

There is no confirmed exploitation: CVE-2022-49837 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-49837?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2022-49837?

Linux >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < d4944497827a3d14bc5a26dbcfb7433eb5a956c0; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < 83946d772e756734a900ef99dbe0aeda506adf37; >= fd978bf7fd312581a7ca454a991f0ffb34c4204b, < eb86559a691cea5fa63e57a03ec3dc9c31e97955; Linux 4.20.

Is there a fix for CVE-2022-49837?

Yes. Fixed in Linux 83946d772e756734a900ef99dbe0aeda506adf37. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2022-49837?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors