cve.bz

CVE-2021-39685 google android: Out-of-bounds Write

7.8 highEPSS 0.5%Fix available

High (7.8) in google android. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
In various setup methods of the USB gadget subsystem, there is a possible out of bounds write due to an incorrect flag check. 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-210292376References: Upstream kernel

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-39685 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-39685?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-39685?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-39685 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux4.9.303-1DLA-2940-1
Debian9linux-4.194.19.232-1~deb9u1DLA-2941-1
Debian10linux4.19.232-1DSA-5096-1
Debian11linux5.10.92-1DSA-5050-1
Debian12, 13, 14linux5.15.5-2DEBIAN-CVE-2021-39685
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-39685
Ubuntu18.04:LTSlinux4.15.0-169.177UBUNTU-CVE-2021-39685 USN-5298-1
Ubuntu18.04:LTSlinux-aws4.15.0-1121.129UBUNTU-CVE-2021-39685 USN-5298-1
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1066.69~18.04.1UBUNTU-CVE-2021-39685 USN-5294-2
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1131.144UBUNTU-CVE-2021-39685 USN-5298-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1070.73~18.04.1UBUNTU-CVE-2021-39685 USN-5294-2
Ubuntu18.04:LTSlinux-dell300x4.15.0-1035.40UBUNTU-CVE-2021-39685 USN-5298-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2021-39685
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1116.130UBUNTU-CVE-2021-39685 USN-5298-1
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1065.69~18.04.1UBUNTU-CVE-2021-39685 USN-5294-2
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1063.66~18.04.1UBUNTU-CVE-2021-39685 USN-5297-1
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1034.35~18.04.1UBUNTU-CVE-2021-39685 USN-5294-2
52 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.49.1SUSE-SU-2022:0370-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_141-150300.7.3.1SUSE-SU-2022:0370-1
SUSELinux Enterprise Micro 5.1kernel-rt5.3.18-150300.76.1SUSE-SU-2022:0543-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3kernel-default-base5.3.18-150300.59.49.1.150300.18.31.1SUSE-SU-2022:0370-1
SUSELinux Enterprise Module for Basesystem 15 SP3kernel-64kb, kernel-source, kernel-default and 2 more5.3.18-150300.59.49.1SUSE-SU-2022:0370-1
SUSELinux Enterprise Module for Development Tools 15 SP3kernel-docs, kernel-syms, kernel-source and 2 more5.3.18-150300.59.49.1SUSE-SU-2022:0370-1
SUSELinux Enterprise Module for Public Cloud 15 SP3kernel-azure, kernel-source-azure5.3.18-150300.38.40.4SUSE-SU-2022:0363-1
SUSELinux Enterprise Module for Public Cloud 15 SP3kernel-syms-azure5.3.18-150300.38.40.1SUSE-SU-2022:0363-1
SUSELinux Enterprise Workstation Extension 15 SP3kernel-default, kernel-preempt5.3.18-150300.59.49.1SUSE-SU-2022:0370-1
SUSEReal Time Module 15 SP3kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.3.18-150300.76.1SUSE-SU-2022:0543-1
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-150300.59.49.1openSUSE-SU-2022:0370-1
openSUSELeap 15.3kernel-azure, kernel-source-azure5.3.18-150300.38.40.4openSUSE-SU-2022:0363-1
openSUSELeap 15.3kernel-default-base5.3.18-150300.59.49.1.150300.18.31.1openSUSE-SU-2022:0370-1
openSUSELeap 15.3kernel-syms-azure5.3.18-150300.38.40.1openSUSE-SU-2022:0363-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-39685.

References

Check your stackJSON