Local privilege escalation via virtio-I2C use-after-free
Published May 24, 2024 · Updated Aug 5, 2026
Use-after-free in the virtio-I2C driver in Linux 5.15 through 5.15.5 allows local users to corrupt guest kernel memory via I2C ioctls. The virtio_i2c_xfer timeout path frees request buffers while the backend can still access them, allowing later device writes into reused memory. Access to a virtio-I2C /dev/i2c-* device is required; successful exploitation can disclose or modify kernel memory, escalate privileges, or crash the guest.
Summary
What happened
Use-after-free in the virtio-I2C driver in Linux 5.15 through 5.15.5 allows local users to corrupt guest kernel memory via I2C ioctls. The virtio_i2c_xfer timeout path frees request buffers while the backend can still access them, allowing later device writes into reused memory. Access to a virtio-I2C /dev/i2c-* device is required; successful exploitation can disclose or modify kernel memory, escalate privileges, or crash the guest.
The record
- CVE
- CVE-2021-47561
- Published
- May 24, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 24, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3cfc88380413d20f777dc6648a38f683962e52bf <84e1d0bf1d7121759622dabf8fbef4c99ad597c5
- Affected versionversion=3cfc88380413d20f777dc6648a38f683962e52bf <cc432b0727ce404cc13e8f6b5ce29f412c3f9f1f
- Affected versionversion=5.15
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo