CVE-2021-47561
published high CVSS 3.1 · 7.8i2c: virtio: disable timeout handling
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux3cfc88380413d20f777dc6648a38f683962e52bf to < cc432b0727ce404cc13e8f6b5ce29f412c3f9f1f · 3cfc88380413d20f777dc6648a38f683962e52bf to < 84e1d0bf1d7121759622dabf8fbef4c99ad597c5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.6 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: disable timeout handling If a timeout is hit, it can result is incorrect data on the I2C bus and/or memory corruptions in the guest since the device can still be operating on the buffers it was given while the guest has freed them. Here is, for example, the start of a slub_debug splat which was triggered on the next transfer after one transfer was forced to timeout by setting a breakpoint in the backend (rust-vmm/vhost-device): BUG kmalloc-1k (Not tainted): Poison overwritten First byte 0x1 instead of 0x6b Allocated in virtio_i2c_xfer+0x65/0x35c age=350 cpu=0 pid=29 __kmalloc+0xc2/0x1c9 virtio_i2c_xfer+0x65/0x35c __i2c_transfer+0x429/0x57d i2c_transfer+0x115/0x134 i2cdev_ioctl_rdwr+0x16a/0x1de i2cdev_ioctl+0x247/0x2ed vfs_ioctl+0x21/0x30 sys_ioctl+0xb18/0xb41 Freed in virtio_i2c_xfer+0x32e/0x35c age=244 cpu=0 pid=29 kfree+0x1bd/0x1cc virtio_i2c_xfer+0x32e/0x35c __i2c_transfer+0x429/0x57d i2c_transfer+0x115/0x134 i2cdev_ioctl_rdwr+0x16a/0x1de i2cdev_ioctl+0x247/0x2ed vfs_ioctl+0x21/0x30 sys_ioctl+0xb18/0xb41 There is no simple fix for this (the driver would have to always create bounce buffers and hold on to them until the device eventually returns the buffers), so just disable the timeout support for now.
Related advisories
Vendor advisories explicitly linked to this CVE.
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 i2c-dev ioctls (I2C_TIMEOUT/I2C_RDWR) on /dev/i2c-*, as shown in the commit splat through i2cdev_ioctl → virtio_i2c_xfer; it is not reachable from network packet processing. AC:L - An attacker who can open the i2c device can set I2C_TIMEOUT to 0 (or a tiny value) and then issue a transfer, forcing wait_for_completion_timeout to expire and free in-flight virtqueue buffers while the backend still owns them, so the UAF is reliably triggerable. PR:L - i2cdev_open/ioctl perform no capability checks; access is only DAC on /dev/i2c-*, which is commonly group-accessible (i2c) or more broadly exposed on embedded/Android virtio-i2c deployments, so an unprivileged local user can reach the bug. UI:N - The attacker opens the device and issues the ioctls themselves; no separate victim action is required. S:U - Corruption and impact remain inside the guest kernel running the virtio-i2c frontend (standard local privilege escalation), not a guest-to-host or other cross-authority escape. C:H - On timeout the driver frees DMA bounce buffers and virtio_i2c_req objects still referenced by the virtqueue, enabling host write-after-free into reused guest slab objects and thus arbitrary kernel memory disclosure primitives. I:H - The same use-after-free/write-after-free of freed kmalloc objects (demonstrated by the poison-overwrite splat) yields heap corruption exploitable for arbitrary kernel writes and control-flow hijacking, plus incorrect I2C bus data. A:H - The memory corruption can oops/panic the guest kernel (and even when not fully exploited, UAF of in-flight virtio buffers is an availability-breaking kernel memory safety failure).
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 3cfc88380413d20f777dc6648a38f683962e52bf to < cc432b0727ce404cc13e8f6b5ce29f412c3f9f1f (affected · git)3cfc88380413d20f777dc6648a38f683962e52bf to < 84e1d0bf1d7121759622dabf8fbef4c99ad597c5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.6 through 5.15.* (unaffected · semver)5.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
i2c: virtio: disable timeout handling
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 75a2ad9fc4edf64274f598b97ab0d951762b4808962ab1584fd58a73d49e79bd
- Ingested
- 23 Sep 2026, 07:57:11 UTC
- Source record
- Official CVE record