# CVE-2021-39685: linux: In various setup methods of the USB gadget subsystem, there is a possible out of bounds write due to an incorrect fla...

CVE-2021-39685 is fixed in 12 products on 1 platform, first by DEBIAN-CVE-2021-39685, released March 16, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-39685
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.0046
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 16, 2022

## Description

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | kernel-uek ol 8 | 0:5.4.17-2136.305.5.3.el8uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | kernel-uek-container ol 8 | 0:5.4.17-2136.305.5.3.el8 | [ELSA-2022-9245](https://patchblox.com/security/data/fix/linux/elsa-2022-9245.md) | Mar 23, 2022 |
| Linux | kernel-uek-container-debug ol 8 | 0:5.4.17-2136.305.5.3.el8 | [ELSA-2022-9245](https://patchblox.com/security/data/fix/linux/elsa-2022-9245.md) | Mar 23, 2022 |
| Linux | kernel-uek-debug ol 8 | 0:5.4.17-2136.305.5.3.el8uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | kernel-uek-debug-devel ol 8 | 0:5.4.17-2136.305.5.3.el8uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | kernel-uek-devel ol 8 | 0:5.4.17-2136.305.5.3.el8uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | kernel-uek-doc ol 8 | 0:5.4.17-2136.305.5.3.el8uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | kernel-uek-tools ol 8 | 0:5.4.17-2136.305.5.3.el7uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | kernel-uek-tools-libs ol 8 | 0:5.4.17-2136.305.5.3.el7uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | linux Debian 12.15 (bookworm) | 5.15.5-2 | [DEBIAN-CVE-2021-39685](https://patchblox.com/security/data/fix/linux/debian-cve-2021-39685.md) | Mar 16, 2022 |
| Linux | linux Debian 13.5 (trixie) | 5.15.5-2 | [DEBIAN-CVE-2021-39685](https://patchblox.com/security/data/fix/linux/debian-cve-2021-39685.md) | Mar 16, 2022 |
| Linux | linux Debian 14 | 5.15.5-2 | [DEBIAN-CVE-2021-39685](https://patchblox.com/security/data/fix/linux/debian-cve-2021-39685.md) | Mar 16, 2022 |
| Linux | perf ol 8 | 0:5.4.17-2136.305.5.3.el7uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |
| Linux | python-perf ol 8 | 0:5.4.17-2136.305.5.3.el7uek | [ELSA-2022-9244](https://patchblox.com/security/data/fix/linux/elsa-2022-9244.md) | Mar 23, 2022 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
