# CVE-2021-46935: binder: fix async\_free\_space accounting for empty parcels

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-668
- **Published:** 2024-02-27T09:44:02.071Z
- **Modified:** 2026-06-17T04:15:54.380Z

## Who should check

- Anyone running Linux \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 2d2df539d05205fd83c404d5f2dff48d36f9b495; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 7c7064402609aeb6fb11be1b4ec10673ff17b593; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 103b16a8c51f96d5fe063022869ea906c256e5da; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< cfd0d84ba28c18b531648c9d4a35ecca89ad9901
- Anyone running Linux 4.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

binder: fix async\_free\_space accounting for empty parcels

In 4.13, commit 74310e06be4d ("android: binder: Move buffer out of area shared with user space")
fixed a kernel structure visibility issue. As part of that patch,
sizeof(void \*) was used as the buffer size for 0-length data payloads so
the driver could detect abusive clients sending 0-length asynchronous
transactions to a server by enforcing limits on async\_free\_size.

Unfortunately, on the "free" side, the accounting of async\_free\_space
did not add the sizeof(void \*) back. The result was that up to 8-bytes of
async\_free\_space were leaked on every async transaction of 8-bytes or
less.  These small transactions are uncommon, so this accounting issue
has gone undetected for several years.

The fix is to use "buffer\_size" (the allocated buffer size) instead of
"size" (the logical buffer size) when updating the async\_free\_space
during the free operation. These are the same except for this
corner case of asynchronous transactions with payloads \< 8 bytes.

## Affected and fixed versions

- Linux: \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 2d2df539d05205fd83c404d5f2dff48d36f9b495; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 7c7064402609aeb6fb11be1b4ec10673ff17b593; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 103b16a8c51f96d5fe063022869ea906c256e5da; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< cfd0d84ba28c18b531648c9d4a35ecca89ad9901 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-46935. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46935.md
Affected: Linux >= 74310e06be4d74dcf67cd108366710dee5c576d5, < 2d2df539d05205fd83c404d5f2dff48d36f9b495; >= 74310e06be4d74dcf67cd108366710dee5c576d5, < 7c7064402609aeb6fb11be1b4ec10673ff17b593; >= 74310e06be4d74dcf67cd108366710dee5c576d5, < 103b16a8c51f96d5fe063022869ea906c256e5da; >= 74310e06be4d74dcf67cd10…
Fixed in: Linux 2d2df539d05205fd83c404d5f2dff48d36f9b495, Linux 7c7064402609aeb6fb11be1b4ec10673ff17b593, Linux 103b16a8c51f96d5fe063022869ea906c256e5da, Linux 1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4, Linux 17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-46935 being exploited?

There is no confirmed exploitation: CVE-2021-46935 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-46935?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-46935?

Linux \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 2d2df539d05205fd83c404d5f2dff48d36f9b495; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 7c7064402609aeb6fb11be1b4ec10673ff17b593; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 103b16a8c51f96d5fe063022869ea906c256e5da; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< 17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff; \>= 74310e06be4d74dcf67cd108366710dee5c576d5, \< cfd0d84ba28c18b531648c9d4a35ecca89ad9901; Linux 4.14.

### Is there a fix for CVE-2021-46935?

Yes. Fixed in Linux 2d2df539d05205fd83c404d5f2dff48d36f9b495, Linux 7c7064402609aeb6fb11be1b4ec10673ff17b593, Linux 103b16a8c51f96d5fe063022869ea906c256e5da, Linux 1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4, Linux 17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-46935?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2d2df539d05205fd83c404d5f2dff48d36f9b495>
- patch: <https://git.kernel.org/stable/c/7c7064402609aeb6fb11be1b4ec10673ff17b593>
- patch: <https://git.kernel.org/stable/c/103b16a8c51f96d5fe063022869ea906c256e5da>
- patch: <https://git.kernel.org/stable/c/1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4>
- patch: <https://git.kernel.org/stable/c/17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff>
- patch: <https://git.kernel.org/stable/c/cfd0d84ba28c18b531648c9d4a35ecca89ad9901>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46935>

HTML: <https://flawdb.com/CVE-2021-46935> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46935>
