Service interruption via unreleased kprobe test buffers
Published May 1, 2025 · Updated May 11, 2026
Memory leak in the Linux kernel allows local users loading the kprobe test module to consume kernel memory through module initialization. In kernel/trace/kprobe_event_gen_test.c, test_gen_kprobe_cmd() and test_gen_kretprobe_cmd() allocate command buffers but release them only on failure, leaving each buffer allocated after successful initialization. Reaching the flaw requires local module-loading privileges, and repeated loads can exhaust kernel memory and interrupt service without disclosing or altering data.
Summary
What happened
Memory leak in the Linux kernel allows local users loading the kprobe test module to consume kernel memory through module initialization. In kernel/trace/kprobe_event_gen_test.c, test_gen_kprobe_cmd() and test_gen_kretprobe_cmd() allocate command buffers but release them only on failure, leaving each buffer allocated after successful initialization. Reaching the flaw requires local module-loading privileges, and repeated loads can exhaust kernel memory and interrupt service without disclosing or altering data.
The record
- CVE
- CVE-2022-49891
- Published
- May 1, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-401, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 1, 2025CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.6
- Affected versionversion=64836248dda20c8e7427b493f7e06d9bf8f58850 <66f0919c953ef7b55e5ab94389a013da2ce80a2c
- Affected versionversion=64836248dda20c8e7427b493f7e06d9bf8f58850 <71aeb8d01a8c7ab5cf7da3f81b35206f56ce6bca
- Affected versionversion=64836248dda20c8e7427b493f7e06d9bf8f58850 <bef08acbe560a926b4cee9cc46404cc98ae5703b
- Affected versionversion=64836248dda20c8e7427b493f7e06d9bf8f58850 <d1b6a8e3414aeaa0985139180c145d2d0fbd2a49
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo