Advisory

UBUNTU-CVE-2021-3491

Also known as: CVE-2021-3491

Summary

The record has no summary.

Details

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).

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Dates

Published
2021-05-11 17:00 UTC
Modified
2026-02-04 03:18 UTC

Affected packages and fixes

17 affected packages
PackageSystemAffectedFix
linux-hwe-edgeDebian packages (deb) · Ubuntu 16.04introduced 0No fixed version is listed.
linux-aws-5.0Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-aws-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azureDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azure-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azure-edgeDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gcpDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gcp-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gcp-edgeDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-hweDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-hwe-edgeDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oracle-5.0Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oracle-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-hwe-5.8Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-oem-5.10Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-riscv-5.8Debian packages (deb) · Ubuntu 20.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-raspi2Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.

Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences