Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47040

published high CVSS 3.1 · 7.8

io_uring: fix overflows checks in provide buffers

Published
28 Feb 2024, 08:13:46 UTC
Updated
05 Aug 2026, 08:45:40 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxefe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < cbbc13b115b8f18e0a714d89f87fbdc499acfe2d · efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < 51bf90901952aaac564bbdb36b2b503050c53dd9 · efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < 84b8c266c4bfe9ed5128e13253c388deb74b1b03 · efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < 38134ada0ceea3e848fe993263c0ff6207fd46e7 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.37 through 5.10.* (unaffected · semver) · 5.11.21 through 5.11.* (unaffected · semver) · 5.12.4 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2022-002 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2022-002

Description

In the Linux kernel, the following vulnerability has been resolved: io_uring: fix overflows checks in provide buffers Colin reported before possible overflow and sign extension problems in io_provide_buffers_prep(). As Linus pointed out previous attempt did nothing useful, see d81269fecb8ce ("io_uring: fix provide_buffers sign extension"). Do that with help of check_<op>_overflow helpers. And fix struct io_provide_buf::len type, as it doesn't make much sense to keep it signed.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is reached only through local io_uring syscalls (io_uring_setup/io_uring_enter) submitting IORING_OP_PROVIDE_BUFFERS; it is not reachable from network packet processing. AC:L - The attacker fully controls sqe addr/len/nbufs and can reliably choose values that overflow len*nbufs (especially on 32-bit, e.g. size wrapping to 0) so the access_ok check validates far less than the registered range. PR:L - An unprivileged local user can create an io_uring instance and submit PROVIDE_BUFFERS with no capability requirement; the later io_uring_disabled sysctl did not exist in the affected versions. UI:N - Exploitation requires no victim action; the attacker triggers the bug entirely with their own io_uring submissions and subsequent BUFFER_SELECT I/O. S:U - Impact is limited to the local kernel's authority (local privilege escalation / memory safety), with no VM, IOMMU, or other security-authority boundary crossed. C:H - Overflow bypasses the sole access_ok validation for provided buffers that BUFFER_SELECT paths later trust, enabling registration of ranges that can include kernel addresses and yield arbitrary kernel memory disclosure when used for reads. I:H - The same access_ok bypass lets attacker-controlled provided-buffer addresses/lengths be used for kernel writes via BUFFER_SELECT recv/read paths, which is memory corruption exploitable for integrity compromise and code execution. A:H - Invalid provided-buffer ranges and signed-length mishandling can cause kernel faults, oopses, or otherwise crash/hang the system when the corrupted buffers are selected for I/O.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < cbbc13b115b8f18e0a714d89f87fbdc499acfe2d (affected · git)efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < 51bf90901952aaac564bbdb36b2b503050c53dd9 (affected · git)efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < 84b8c266c4bfe9ed5128e13253c388deb74b1b03 (affected · git)efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff to < 38134ada0ceea3e848fe993263c0ff6207fd46e7 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.37 through 5.10.* (unaffected · semver)5.11.21 through 5.11.* (unaffected · semver)5.12.4 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

3

Linux · cna

io_uring: fix overflows checks in provide buffers

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
2e4a46c77b0194f1ffa4badb862ff7c75055a44668b1e6ec0fe643da45ecc434
Ingested
23 Sep 2026, 07:57:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected