{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-46935","id":"CVE-2021-46935","title":"binder: fix async_free_space accounting for empty parcels","description":"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 clie","descriptionLong":"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.","published":"2024-02-27T09:44:02.071Z","updated":"2026-06-17T04:15:54.380Z","reserved":"2024-02-25T13:45:52.720Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"74310e06be4d74dcf67cd108366710dee5c576d5","lessThan":"2d2df539d05205fd83c404d5f2dff48d36f9b495","status":"affected","versionType":"git"},{"version":"74310e06be4d74dcf67cd108366710dee5c576d5","lessThan":"7c7064402609aeb6fb11be1b4ec10673ff17b593","status":"affected","versionType":"git"},{"version":"74310e06be4d74dcf67cd108366710dee5c576d5","lessThan":"103b16a8c51f96d5fe063022869ea906c256e5da","status":"affected","versionType":"git"},{"version":"74310e06be4d74dcf67cd108366710dee5c576d5","lessThan":"1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4","status":"affected","versionType":"git"},{"version":"74310e06be4d74dcf67cd108366710dee5c576d5","lessThan":"17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff","status":"affected","versionType":"git"},{"version":"74310e06be4d74dcf67cd108366710dee5c576d5","lessThan":"cfd0d84ba28c18b531648c9d4a35ecca89ad9901","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"4.14.261","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.224","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.170","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.90","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.13","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-668"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/2d2df539d05205fd83c404d5f2dff48d36f9b495","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/7c7064402609aeb6fb11be1b4ec10673ff17b593","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/103b16a8c51f96d5fe063022869ea906c256e5da","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/1cb8444f3114f0bb2f6e3bcadcf09aa4a28425d4","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/17691bada6b2f1d5f1c0f6d28cd9d0727023b0ff","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/cfd0d84ba28c18b531648c9d4a35ecca89ad9901","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00229,"epssPercentile":0.13887,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-46935","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46935","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-46935","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-46935","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}