Local code execution via signed length underflow
Published Jan 5, 2023 · Updated Apr 10, 2025
Stack-based buffer overflow in Linux Kernel SYSCTL allows local users to crash the system or execute code via an oversized parameter write. The __do_proc_dointvec path lets proc_skip_spaces scan beyond its one-page limit, producing a negative length that proc_get_long passes to a kernel-stack memcpy. Triggering the flaw requires writable sysctl access and a network namespace, which unprivileged users can obtain where user namespaces are enabled.
Summary
What happened
Stack-based buffer overflow in Linux Kernel SYSCTL allows local users to crash the system or execute code via an oversized parameter write. The __do_proc_dointvec path lets proc_skip_spaces scan beyond its one-page limit, producing a negative length that proc_get_long passes to a kernel-stack memcpy. Triggering the flaw requires writable sysctl access and a network namespace, which unprivileged users can obtain where user namespaces are enabled.
The record
- CVE
- CVE-2022-4378
- Published
- Jan 5, 2023
- Updated
- Apr 10, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-131, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jan 5, 2023CVE publishedPublication date reported by the CVE source.
- Apr 10, 2025Record 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=kernel 6.0.12
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
- SYSCTL tcp_rmem kernel-panic reproducerproof of concept · demonstrated
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