{"id":"CVE-2021-46935","aliases":["CVE-2021-46935"],"related":[],"kind":"vulnerability","state":"published","title":"binder: fix async_free_space accounting for empty parcels","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbinder: fix async_free_space accounting for empty parcels\n\nIn 4.13, commit 74310e06be4d (\"android: binder: Move buffer out of area shared with user space\")\nfixed a kernel structure visibility issue. As part of that patch,\nsizeof(void *) was used as the buffer size for 0-length data payloads so\nthe driver could detect abusive clients sending 0-length asynchronous\ntransactions to a server by enforcing limits on async_free_size.\n\nUnfortunately, on the \"free\" side, the accounting of async_free_space\ndid not add the sizeof(void *) back. The result was that up to 8-bytes of\nasync_free_space were leaked on every async transaction of 8-bytes or\nless.  These small transactions are uncommon, so this accounting issue\nhas gone undetected for several years.\n\nThe fix is to use \"buffer_size\" (the allocated buffer size) instead of\n\"size\" (the logical buffer size) when updating the async_free_space\nduring the free operation. These are the same except for this\ncorner case of asynchronous transactions with payloads < 8 bytes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbinder: fix async_free_space accounting for empty parcels\n\nIn 4.13, commit 74310e06be4d (\"android: binder: Move buffer out of area shared with user space\")\nfixed a kernel structure visibility issue. As part of that patch,\nsizeof(void *) was used as the buffer size for 0-length data payloads so\nthe driver could detect abusive clients sending 0-length asynchronous\ntransactions to a server by enforcing limits on async_free_size.\n\nUnfortunately, on the \"free\" side, the accounting of async_free_space\ndid not add the sizeof(void *) back. The result was that up to 8-bytes of\nasync_free_space were leaked on every async transaction of 8-bytes or\nless.  These small transactions are uncommon, so this accounting issue\nhas gone undetected for several years.\n\nThe fix is to use \"buffer_size\" (the allocated buffer size) instead of\n\"size\" (the logical buffer size) when updating the async_free_space\nduring the free operation. These are the same except for this\ncorner case of asynchronous transactions with payloads < 8 bytes.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: binder: corrige la contabilidad async_free_space para paquetes vacíos En 4.13, el commit 74310e06be4d (\"android: binder: mover el búfer fuera del área compartida con el espacio del usuario\") solucionó un problema de visibilidad de la estructura del kernel. Como parte de ese parche, se usó sizeof(void *) como tamaño de búfer para cargas de datos de longitud 0, de modo que el controlador pudiera detectar clientes abusivos que enviaran transacciones asincrónicas de longitud 0 a un servidor imponiendo límites en async_free_size. Desafortunadamente, en el lado \"libre\", la contabilidad de async_free_space no volvió a agregar el tamaño de (void *). El resultado fue que se filtraron hasta 8 bytes de async_free_space en cada transacción asíncrona de 8 bytes o menos. Estas pequeñas transacciones son poco comunes, por lo que este problema contable ha pasado desapercibido durante varios años. La solución es utilizar \"buffer_size\" (el tamaño del búfer asignado) en lugar de \"size\" (el tamaño del búfer lógico) al actualizar async_free_space durante la operación libre. Son iguales excepto por este caso de esquina de transacciones asincrónicas con payloads &lt;8 bytes.","source":"nvd"}],"published":"2024-02-27T09:44:02.071Z","modified":"2026-06-17T04:15:54.380Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-668"],"affected":[{"ranges":[{"type":"git","introduced":"74310e06be4d74dcf67cd108366710dee5c576d5","fixed":"2d2df539d05205fd83c404d5f2dff48d36f9b495","status":"affected"},{"type":"git","introduced":"74310e06be4d74dcf67cd108366710dee5c576d5","fixed":"7c7064402609aeb6fb11be1b4ec10673ff17b593","status":"affected"},{"type":"git","introduced":"74310e06be4d74dcf67cd108366710dee5c576d5","fixed":"103b16a8c51f96d5fe063022869ea906c256e5da","status":"affected"},{"type":"git","introduced":"74310e06be4d74dcf67cd108366710dee5c576d5","fixed":"1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4","status":"affected"},{"type":"git","introduced":"74310e06be4d74dcf67cd108366710dee5c576d5","fixed":"17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff","status":"affected"},{"type":"git","introduced":"74310e06be4d74dcf67cd108366710dee5c576d5","fixed":"cfd0d84ba28c18b531648c9d4a35ecca89ad9901","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.14","status":"unaffected"},{"type":"semver","introduced":"4.14.261","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.224","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.170","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.90","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.13","lastAffected":"5.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.14.0","fixed":"4.14.261"},{"status":"affected","introduced":"4.15.0","fixed":"4.19.224"},{"status":"affected","introduced":"4.20.0","fixed":"5.4.170"},{"status":"affected","introduced":"5.5.0","fixed":"5.10.90"},{"status":"affected","introduced":"5.11.0","fixed":"5.15.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2d2df539d05205fd83c404d5f2dff48d36f9b495","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c7064402609aeb6fb11be1b4ec10673ff17b593","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/103b16a8c51f96d5fe063022869ea906c256e5da","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfd0d84ba28c18b531648c9d4a35ecca89ad9901","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-02-27T20:52:57.585Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46935","url":"https://www.cve.org/CVERecord?id=CVE-2021-46935","licence":"CVE Terms of Use","modified":"2026-05-11T13:44:45.123Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46935","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46935","licence":"Public domain","modified":"2026-06-17T04:15:54.380Z"}],"updatedAt":"2026-11-25T22:58:08.575Z","epss":{"score":0.00229,"percentile":0.14681,"date":"2026-12-01T12:00:22.000Z"}}