Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2021-3491

Summary
Assigner-canonical
Assigner Org ID-cc1ad9ee-3454-478d-9317-d3e869d708bc
Published At-04 Jun, 2021 | 01:40
Updated At-16 Sep, 2024 | 22:09
Rejected At-
Credits

Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass

The io_uring subsystem in the Linux kernel allowed the MAX_RW_COUNT limit to be bypassed in the PROVIDE_BUFFERS operation, which led to negative values being usedin mem_rw when reading /proc/<PID>/mem. This could be used to create a heap overflow leading to arbitrary code execution in the kernel. It was addressed via commit d1f82808877b ("io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers") (v5.13-rc1) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced in ddf0322db79c ("io_uring: add IORING_OP_PROVIDE_BUFFERS") (v5.7-rc1).

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:canonical
Assigner Org ID:cc1ad9ee-3454-478d-9317-d3e869d708bc
Published At:04 Jun, 2021 | 01:40
Updated At:16 Sep, 2024 | 22:09
Rejected At:
▼CVE Numbering Authority (CNA)
Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass

The io_uring subsystem in the Linux kernel allowed the MAX_RW_COUNT limit to be bypassed in the PROVIDE_BUFFERS operation, which led to negative values being usedin mem_rw when reading /proc/<PID>/mem. This could be used to create a heap overflow leading to arbitrary code execution in the kernel. It was addressed via commit d1f82808877b ("io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers") (v5.13-rc1) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced in ddf0322db79c ("io_uring: add IORING_OP_PROVIDE_BUFFERS") (v5.7-rc1).

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux kernel
Versions
Affected
  • From trunk before v5.13-rc4 (custom)
  • From linux-5.12.y before v5.12.4 (custom)
  • From linux-5.11.y before v5.11.21 (custom)
  • From linux-5.10.y before v5.10.37 (custom)
  • From v5.7-rc1 before 5.7* (custom)
Problem Types
TypeCWE IDDescription
CWECWE-131CWE-131 Incorrect Calculation of Buffer Size
Type: CWE
CWE ID: CWE-131
Description: CWE-131 Incorrect Calculation of Buffer Size
Metrics
VersionBase scoreBase severityVector
3.17.8HIGH
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Version: 3.1
Base score: 7.8
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Billy Jheng Bing-Jhong (@st424204) of STAR Labs working with Trend Micro's Zero Day Initiative
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://ubuntu.com/security/notices/USN-4950-1
vendor-advisory
x_refsource_UBUNTU
https://ubuntu.com/security/notices/USN-4949-1
vendor-advisory
x_refsource_UBUNTU
https://www.openwall.com/lists/oss-security/2021/05/11/13
mailing-list
x_refsource_MLIST
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db
x_refsource_MISC
https://www.zerodayinitiative.com/advisories/ZDI-21-589/
x_refsource_MISC
https://security.netapp.com/advisory/ntap-20210716-0004/
x_refsource_CONFIRM
Hyperlink: https://ubuntu.com/security/notices/USN-4950-1
Resource:
vendor-advisory
x_refsource_UBUNTU
Hyperlink: https://ubuntu.com/security/notices/USN-4949-1
Resource:
vendor-advisory
x_refsource_UBUNTU
Hyperlink: https://www.openwall.com/lists/oss-security/2021/05/11/13
Resource:
mailing-list
x_refsource_MLIST
Hyperlink: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db
Resource:
x_refsource_MISC
Hyperlink: https://www.zerodayinitiative.com/advisories/ZDI-21-589/
Resource:
x_refsource_MISC
Hyperlink: https://security.netapp.com/advisory/ntap-20210716-0004/
Resource:
x_refsource_CONFIRM
▼Authorized Data Publishers (ADP)
CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://ubuntu.com/security/notices/USN-4950-1
vendor-advisory
x_refsource_UBUNTU
x_transferred
https://ubuntu.com/security/notices/USN-4949-1
vendor-advisory
x_refsource_UBUNTU
x_transferred
https://www.openwall.com/lists/oss-security/2021/05/11/13
mailing-list
x_refsource_MLIST
x_transferred
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db
x_refsource_MISC
x_transferred
https://www.zerodayinitiative.com/advisories/ZDI-21-589/
x_refsource_MISC
x_transferred
https://security.netapp.com/advisory/ntap-20210716-0004/
x_refsource_CONFIRM
x_transferred
Hyperlink: https://ubuntu.com/security/notices/USN-4950-1
Resource:
vendor-advisory
x_refsource_UBUNTU
x_transferred
Hyperlink: https://ubuntu.com/security/notices/USN-4949-1
Resource:
vendor-advisory
x_refsource_UBUNTU
x_transferred
Hyperlink: https://www.openwall.com/lists/oss-security/2021/05/11/13
Resource:
mailing-list
x_refsource_MLIST
x_transferred
Hyperlink: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://www.zerodayinitiative.com/advisories/ZDI-21-589/
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://security.netapp.com/advisory/ntap-20210716-0004/
Resource:
x_refsource_CONFIRM
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security@ubuntu.com
Published At:04 Jun, 2021 | 02:15
Updated At:14 Sep, 2021 | 14:31

The io_uring subsystem in the Linux kernel allowed the MAX_RW_COUNT limit to be bypassed in the PROVIDE_BUFFERS operation, which led to negative values being usedin mem_rw when reading /proc/<PID>/mem. This could be used to create a heap overflow leading to arbitrary code execution in the kernel. It was addressed via commit d1f82808877b ("io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers") (v5.13-rc1) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced in ddf0322db79c ("io_uring: add IORING_OP_PROVIDE_BUFFERS") (v5.7-rc1).

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.18.8HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Secondary3.17.8HIGH
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Primary2.07.2HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C
Type: Primary
Version: 3.1
Base score: 8.8
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 7.8
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Type: Primary
Version: 2.0
Base score: 7.2
Base severity: HIGH
Vector:
AV:L/AC:L/Au:N/C:C/I:C/A:C
CPE Matches

Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.7(inclusive) to 5.10.37(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.11(inclusive) to 5.11.21(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.12(inclusive) to 5.12.4(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Canonical Ltd.
canonical
>>ubuntu_linux>>20.04
cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*
Canonical Ltd.
canonical
>>ubuntu_linux>>20.10
cpe:2.3:o:canonical:ubuntu_linux:20.10:*:*:*:*:*:*:*
Canonical Ltd.
canonical
>>ubuntu_linux>>21.04
cpe:2.3:o:canonical:ubuntu_linux:21.04:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-787Primarynvd@nist.gov
CWE-131Secondarysecurity@ubuntu.com
CWE ID: CWE-787
Type: Primary
Source: nvd@nist.gov
CWE ID: CWE-131
Type: Secondary
Source: security@ubuntu.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582dbsecurity@ubuntu.com
Patch
Vendor Advisory
https://security.netapp.com/advisory/ntap-20210716-0004/security@ubuntu.com
Third Party Advisory
https://ubuntu.com/security/notices/USN-4949-1security@ubuntu.com
Third Party Advisory
https://ubuntu.com/security/notices/USN-4950-1security@ubuntu.com
Third Party Advisory
https://www.openwall.com/lists/oss-security/2021/05/11/13security@ubuntu.com
Mailing List
Patch
Third Party Advisory
https://www.zerodayinitiative.com/advisories/ZDI-21-589/security@ubuntu.com
Third Party Advisory
VDB Entry
Hyperlink: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db
Source: security@ubuntu.com
Resource:
Patch
Vendor Advisory
Hyperlink: https://security.netapp.com/advisory/ntap-20210716-0004/
Source: security@ubuntu.com
Resource:
Third Party Advisory
Hyperlink: https://ubuntu.com/security/notices/USN-4949-1
Source: security@ubuntu.com
Resource:
Third Party Advisory
Hyperlink: https://ubuntu.com/security/notices/USN-4950-1
Source: security@ubuntu.com
Resource:
Third Party Advisory
Hyperlink: https://www.openwall.com/lists/oss-security/2021/05/11/13
Source: security@ubuntu.com
Resource:
Mailing List
Patch
Third Party Advisory
Hyperlink: https://www.zerodayinitiative.com/advisories/ZDI-21-589/
Source: security@ubuntu.com
Resource:
Third Party Advisory
VDB Entry

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found