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-47613

published high CVSS 3.1 · 7.8

i2c: virtio: fix completion handling

Published
19 Jun 2024, 14:58:01 UTC
Updated
05 Aug 2026, 08:48:37 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux3cfc88380413d20f777dc6648a38f683962e52bf to < 9cbb957441ed8873577d7d313a3d79d69f1dad5c · 3cfc88380413d20f777dc6648a38f683962e52bf to < b503de239f62eca898cfb7e820d9a35499137d22 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.10 through 5.15.* (unaffected · semver) · 5.16 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 AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: i2c: virtio: fix completion handling The driver currently assumes that the notify callback is only received when the device is done with all the queued buffers. However, this is not true, since the notify callback could be called without any of the queued buffers being completed (for example, with virtio-pci and shared interrupts) or with only some of the buffers being completed (since the driver makes them available to the device in multiple separate virtqueue_add_sgs() calls). This can lead to incorrect data on the I2C bus or memory corruption in the guest if the device operates on buffers which are have been freed by the driver. (The WARN_ON in the driver is also triggered.) BUG kmalloc-128 (Tainted: G W ): Poison overwritten First byte 0x0 instead of 0x6b Allocated in i2cdev_ioctl_rdwr+0x9d/0x1de age=243 cpu=0 pid=28 memdup_user+0x2e/0xbd i2cdev_ioctl_rdwr+0x9d/0x1de i2cdev_ioctl+0x247/0x2ed vfs_ioctl+0x21/0x30 sys_ioctl+0xb18/0xb41 Freed in i2cdev_ioctl_rdwr+0x1bb/0x1de age=68 cpu=0 pid=28 kfree+0x1bd/0x1cc i2cdev_ioctl_rdwr+0x1bb/0x1de i2cdev_ioctl+0x247/0x2ed vfs_ioctl+0x21/0x30 sys_ioctl+0xb18/0xb41 Fix this by calling virtio_get_buf() from the notify handler like other virtio drivers and by actually waiting for all the buffers to be completed.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

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 vulnerable path is reached via local ioctl on /dev/i2c-* (i2cdev_ioctl_rdwr → i2c_transfer → virtio_i2c_xfer); it is not reachable from the network stack or remote protocols. AC:L - An attacker can reliably queue multiple messages in one I2C_RDWR call, each added via a separate virtqueue_add_sgs(), so a normal partial-completion notify causes the driver to free buffers while the device still uses them. PR:L - Triggering requires only the ability to open /dev/i2c-* and issue I2C_RDWR; i2cdev_open performs no capability checks, so group or similarly limited local access suffices. UI:N - The attacker triggers the bug with their own ioctl; no separate victim action is required. S:U - Impact is guest-kernel heap corruption within the same OS security authority; this is not a guest-to-host escape or other cross-boundary compromise. C:H - Premature free of virtqueue-backed buffers (reqs/out_hdr/in_hdr and I2C message data) while the device still writes them is a use-after-free that can be leveraged for arbitrary kernel memory disclosure. I:H - The same UAF/heap corruption (demonstrated by slab poison overwrite) enables arbitrary kernel memory modification and control-flow hijacking primitives. A:H - The bug causes kernel memory corruption and WARN_ON/oops paths, including the documented kmalloc poison-overwrite crash, so availability impact is high.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 3cfc88380413d20f777dc6648a38f683962e52bf to < 9cbb957441ed8873577d7d313a3d79d69f1dad5c (affected · git)3cfc88380413d20f777dc6648a38f683962e52bf to < b503de239f62eca898cfb7e820d9a35499137d22 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.10 through 5.15.* (unaffected · semver)5.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

3

Linux · cna

i2c: virtio: fix completion handling

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
837cd25d2e25a1c551bd692a33eda7a8f03ae59d039a9ed14c6ef04e20361eff
Ingested
23 Sep 2026, 07:57:11 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