Local kernel crash via unchecked error pointer
Published May 1, 2025 · Updated May 11, 2026
NULL pointer dereference in Linux kernel 5.6 through 6.1-rc5 allows local users to crash the kernel by unloading a kprobe test module. When trace_get_event_file() fails, kprobe_event_gen_test_exit() dereferences gen_kprobe_test or gen_kretprobe_test without first rejecting an error pointer or NULL. Low-privileged local access is required, and the demonstrated consequence is a kernel crash with no confidentiality or integrity impact.
Summary
What happened
NULL pointer dereference in Linux kernel 5.6 through 6.1-rc5 allows local users to crash the kernel by unloading a kprobe test module. When trace_get_event_file() fails, kprobe_event_gen_test_exit() dereferences gen_kprobe_test or gen_kretprobe_test without first rejecting an error pointer or NULL. Low-privileged local access is required, and the demonstrated consequence is a kernel crash with no confidentiality or integrity impact.
The record
- CVE
- CVE-2022-49797
- Published
- May 1, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-476, 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 <3a41c0f2a5c3bf72b4c4e9dd4b1025378201e332
- Affected versionversion=64836248dda20c8e7427b493f7e06d9bf8f58850 <bb70fcae4115d24b7e8cee17a6da8b1943f546bb
- Affected versionversion=64836248dda20c8e7427b493f7e06d9bf8f58850 <e0d75267f59d7084e0468bd68beeb1bf9c71d7c0
- Affected versionversion=64836248dda20c8e7427b493f7e06d9bf8f58850 <fd0efd4f7bfe611a8339ba01bc2ac3c33e79159d
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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.
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