Kernel code execution via provided-buffer size overflow
Published Feb 28, 2024 · Updated Aug 5, 2026
Buffer overflow in the Linux kernel starting with 5.8 allows local users to execute code in the kernel via crafted io_uring buffers. In io_provide_buffers_prep(), unchecked multiplication of attacker-controlled buffer length and count can wrap, causing access_ok to validate less memory than later buffer-selection I/O trusts. An unprivileged local account can trigger kernel memory disclosure, corruption, or a crash without user interaction.
Summary
What happened
Buffer overflow in the Linux kernel starting with 5.8 allows local users to execute code in the kernel via crafted io_uring buffers. In io_provide_buffers_prep(), unchecked multiplication of attacker-controlled buffer length and count can wrap, causing access_ok to validate less memory than later buffer-selection I/O trusts. An unprivileged local account can trigger kernel memory disclosure, corruption, or a crash without user interaction.
The record
- CVE
- CVE-2021-47040
- Published
- Feb 28, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-120, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 28, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 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.8
- Affected versionversion=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <38134ada0ceea3e848fe993263c0ff6207fd46e7
- Affected versionversion=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <51bf90901952aaac564bbdb36b2b503050c53dd9
- Affected versionversion=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <84b8c266c4bfe9ed5128e13253c388deb74b1b03
- Affected versionversion=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <cbbc13b115b8f18e0a714d89f87fbdc499acfe2d
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.
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