CVE-2021-0512 json
In __hidinput_change_resolution_multipliers of hid-input.c, there is a possible out of bounds write due to a heap buffer overflow.
published 2021-06-21 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-3131
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
In __hidinput_change_resolution_multipliers of hid-input.c, there is a possible out of bounds write due to a heap buffer overflow. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android kernelAndroid ID: A-173843328References: Upstream kernel
Patch / fix
- linux Debian 14, Debian 13, Debian 12 5.10.19-1
debian advisories DEBIAN-CVE-2021-0512
- linux Ubuntu 16.04 LTS 4.4.0-208.240
- linux Ubuntu 18.04 LTS 4.15.0-143.147
- linux Ubuntu 20.04 LTS 5.4.0-71.79
- linux-aws Ubuntu 16.04 LTS 4.4.0-1126.140
- linux-aws Ubuntu 18.04 LTS 4.15.0-1102.109
- linux-aws Ubuntu 20.04 LTS 5.4.0-1043.45
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1041.44
- linux-gke Ubuntu 20.04 LTS 5.4.0-1041.43
ubuntu advisories UBUNTU-CVE-2021-0512
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- redhat-virtualization-host rhev hypervisor 4.4 4.4.9-202111172338_8.5
- redhat-virtualization-host-image-update rhev hypervisor 4.4 4.4.9-202111172338_8.5
- kpatch-patch-4_18_0-305 RHEL 8 1-6.el8
- kpatch-patch-4_18_0-305_3_1 RHEL 8 1-5.el8_4
- kpatch-patch-4_18_0-305_7_1 RHEL 8 1-4.el8_4
- kpatch-patch-4_18_0-305_10_2 RHEL 8 1-3.el8_4
- kpatch-patch-4_18_0-305_12_1 RHEL 8 1-2.el8_4
- kpatch-patch-4_18_0-305_17_1 RHEL 8 1-1.el8_4
red hat advisories RHSA-2021:4750RHSA-2021:3443RHSA-2021:3446RHSA-2021:4122RHSA-2021:4056RHSA-2021:4088
- kernel-syms SLES for SAP 12 SP3, SLES 12 SP3-LTSS, SLES 12 SP3-BCL +3 more 4.4.180-94.147.1
- kernel-source SLES for SAP 12 SP3, SLES 12 SP3-LTSS, SLES 12 SP3-BCL +3 more 4.4.180-94.147.1
- kernel-default SLES for SAP 12 SP3, SLES 12 SP3-LTSS, SLES 12 SP3-BCL +4 more 4.4.180-94.147.1
- kgraft-patch-SLE12-SP3_Update_40 SLES for SAP 12 SP3, SLES 12 SP3-LTSS, OpenStack Cloud Crowbar 8 +2 more 1-4.3.1
- kernel-syms SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +6 more 4.12.14-197.99.1
- kernel-source SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +6 more 4.12.14-197.99.1
- kernel-default SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +8 more 4.12.14-197.99.1
- kernel-zfcpdump SLES 15 SP1-LTSS, Manager Server 4.0 4.12.14-197.99.1
suse advisories SUSE-SU-2021:2453-1SUSE-SU-2021:2451-1SUSE-SU-2021:2433-1SUSE-SU-2021:2427-1SUSE-SU-2021:2426-1SUSE-SU-2021:2422-1
- kernel-default openSUSE Leap 15.3 4.12.14-197.99.1
- kernel-vanilla openSUSE Leap 15.3 4.12.14-197.99.1
- kernel-kvmsmall openSUSE Leap 15.3 4.12.14-197.99.1
- kernel-zfcpdump openSUSE Leap 15.3 4.12.14-197.99.1
- kernel-64kb openSUSE Leap 15.3 5.3.18-59.13.1
- kernel-syms openSUSE Leap 15.3 5.3.18-59.13.1
- kernel-obs-qa openSUSE Leap 15.3 5.3.18-59.13.1
- kernel-source openSUSE Leap 15.3 5.3.18-59.13.1
opensuse advisories openSUSE-SU-2021:2427-1openSUSE-SU-2021:2352-1openSUSE-SU-2021:2305-1
- kernel-rt Rocky Linux 8 4.18.0-305.25.1.rt7.97.el8_4
- kernel Rocky Linux 8 4.18.0-305.25.1.el8_4
rocky linux advisories RLSA-2021:4088RLSA-2021:4056
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-0512 updated cvss 7.8
kernel: out-of-bounds write due to a heap buffer overflow in __hidinput_change_resolution_multipliers() of hid-input.c
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, kernel-alt, python-perf, +9 moreaffected: workaround, no fix planned “Will not fix”
-
Red Hat CodeReady Linux Builder (v. 8) kernel-debuginfo-common-x86_64 4.18.0-305.25.1.el8_4, kernel-debuginfo-common-aarch64 4.18.0-305.25.1.el8_4, kernel-debuginfo-common-ppc64le 4.18.0-305.25.1.el8_4fixed: vendor fix RHSA-2021:4056
-
Red Hat CodeReady Linux Builder EUS (v. 8.2) kernel-debuginfo-common-x86_64 4.18.0-193.65.2.el8_2, kernel-debuginfo-common-aarch64 4.18.0-193.65.2.el8_2, kernel-debuginfo-common-ppc64le 4.18.0-193.65.2.el8_2fixed: vendor fix RHSA-2021:3446
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-305.25.1.el8_4, kernel 4.18.0-305.25.1.el8_4, bpftool 4.18.0-305.25.1.el8_4, kpatch-patch-4_18_0-305 1-6.el8, kernel-core 4.18.0-305.25.1.el8_4, kernel-tools 4.18.0-305.25.1.el8_4, +22 morefixed: vendor fix RHSA-2021:4056
-
Red Hat Enterprise Linux BaseOS EUS (v. 8.2) perf 4.18.0-193.65.2.el8_2, kernel 4.18.0-193.65.2.el8_2, bpftool 4.18.0-193.65.2.el8_2, kernel-core 4.18.0-193.65.2.el8_2, kernel-tools 4.18.0-193.65.2.el8_2, python3-perf 4.18.0-193.65.2.el8_2, +27 morefixed: vendor fix RHSA-2021:3446
-
Red Hat Enterprise Linux Real Time (v. 8) kernel-rt 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-core 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-modules 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-debug-core 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-debug-modules 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-modules-extra 4.18.0-305.25.1.rt7.97.el8_4, +2 morefixed: vendor fix RHSA-2021:4088
-
Red Hat Enterprise Linux Real Time EUS (v. 8.2) kernel-rt 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-core 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-modules 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-debug-core 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-debug-modules 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-modules-extra 4.18.0-193.65.2.rt13.117.el8_2, +2 morefixed: vendor fix RHSA-2021:3445
-
Red Hat Enterprise Linux Real Time for NFV (v. 8) kernel-rt 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-kvm 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-core 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-modules 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-debug-kvm 4.18.0-305.25.1.rt7.97.el8_4, kernel-rt-debug-core 4.18.0-305.25.1.rt7.97.el8_4, +4 morefixed: vendor fix RHSA-2021:4088
show 3 moreshow fewer
-
Red Hat Enterprise Linux Real Time for NFV EUS (v. 8.2) kernel-rt 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-kvm 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-core 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-modules 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-debug-kvm 4.18.0-193.65.2.rt13.117.el8_2, kernel-rt-debug-core 4.18.0-193.65.2.rt13.117.el8_2, +4 morefixed: vendor fix RHSA-2021:3445
-
Red Hat Virtualization 4 Hypervisor for RHEL 8 redhat-virtualization-host 4.4.9-202111172338_8.5, redhat-virtualization-host-image-update 4.4.9-202111172338_8.5fixed: vendor fix RHSA-2021:4750
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 more Red Hat RHEL 8-based RHEV-H for RHEV 4 (build requirements) redhat-release-virtualization-host 4.4.9-2.el8ev, redhat-release-virtualization-host-content 4.4.9-2.el8ev, redhat-virtualization-host-image-update-placeholder 4.4.9-2.el8evnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-24-074-07 updated cvss 7.8
Siemens SIMATIC
-
Siemens SIMATIC RF160B (6GT2003-0FA00) <V2.2affected: mitigation “Siemens has released a new version (V2.2) for SIMATIC RF160B and recommends to update to the latest version.” siemens.com
From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Affected products
- n/a Android
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
source.android.com
/security/bulletin/2021-06-01
patch, vendor-advisory
Sources
- CVE List CVE-2021-0512
- NVD CVE-2021-0512
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.