{"id":"CVE-2021-0587","aliases":["A-185259758","ASB-A-185259758","EUVD-2021-3206","GHSA-82vv-whww-jc76"],"status":"published","title":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to...","description":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11Android ID: A-185259758","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.0014,"percentile":0.03394,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416","CWE-787"],"published":"2021-07-01T00:00:00Z","modified":"2026-11-05T16:32:28Z","fixes":[{"ecosystem":"Android","package":"platform/hardware/interfaces","fixed_in":["8.1:2021-07-01","9:2021-07-01","10:2021-07-01","11:2021-07-01"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Android","package":"platform/hardware/interfaces","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.1:0"},{"fixed":"8.1:2021-07-01"}]}],"versions":["8.1"]},{"source":"osv","ecosystem":"Android","package":"platform/hardware/interfaces","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9:0"},{"fixed":"9:2021-07-01"}]}],"versions":["9"]},{"source":"osv","ecosystem":"Android","package":"platform/hardware/interfaces","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10:0"},{"fixed":"10:2021-07-01"}]}],"versions":["10"]},{"source":"osv","ecosystem":"Android","package":"platform/hardware/interfaces","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11:0"},{"fixed":"11:2021-07-01"}]}],"versions":["11"]}],"products":[{"vendor":"google","product":"android"}],"references":[{"url":"https://source.android.com/security/bulletin/2021-07-01","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-0587"},{"url":"https://github.com/advisories/GHSA-82vv-whww-jc76"},{"url":"https://android.googlesource.com/platform/hardware/interfaces/+/2f0fe27a2bfef0b5b4621009865ed6a8bae64447","tags":["fix"]}],"sources":{"cve":[{"id":"CVE-2021-0587","description":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11Android ID: A-185259758","status":"published","published":"2021-07-14T13:46:42Z","modified":"2024-08-03T15:47:28.03Z","updated_at":"2026-11-02T14:33:10.887946Z"}],"euvd":[{"id":"EUVD-2021-3206","description":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11Android ID: A-185259758","status":"published","published":"2021-07-14T13:46:42Z","modified":"2024-08-03T15:47:28Z","updated_at":"2026-11-03T03:25:16.546422Z"}],"ghsa":[{"id":"GHSA-82vv-whww-jc76","title":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to...","description":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11Android ID: A-185259758","status":"published","published":"2022-05-24T19:08:00Z","modified":"2023-01-30T05:00:44Z","cwes":["CWE-787"],"updated_at":"2026-11-02T14:46:15.885384Z"}],"nvd":[{"id":"CVE-2021-0587","description":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11Android ID: A-185259758","status":"published","published":"2021-07-14T14:15:08.377Z","modified":"2026-06-17T03:30:22.3Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-416","CWE-787"],"updated_at":"2026-11-02T14:06:55.747384Z"}],"osv":[{"id":"ASB-A-185259758","description":"In StreamOut::prepareForWriting of StreamOut.cpp, there is a possible out of bounds write due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.","status":"published","published":"2021-07-01T00:00:00Z","modified":"2026-11-10T17:02:23.040266809Z","updated_at":"2026-11-10T17:35:05.376141Z"}]}}
