{"api_version":"1","generated_at":"2026-07-23T19:19:24+00:00","cve":"CVE-2021-3782","urls":{"html":"https://cve.report/CVE-2021-3782","api":"https://cve.report/api/cve/CVE-2021-3782.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3782","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3782"},"summary":{"title":"CVE-2021-3782","description":"An internal reference count is held on the buffer pool, incremented every time a new buffer is created from the pool. The reference count is maintained as an int; on LP64 systems this can cause the reference count to overflow if the client creates a large number of wl_shm buffer objects, or if it can coerce the server to create a large number of external references to the buffer storage. With the reference count overflowing, a use-after-free can be constructed on the wl_shm_pool tracking structure, where values may be incremented or decremented; it may also be possible to construct a limited oracle to leak 4 bytes of server-side memory to the attacking client at a time.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-09-23 16:15:00","updated_at":"2023-11-07 03:38:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://gitlab.freedesktop.org/wayland/wayland/-/issues/224","name":"https://gitlab.freedesktop.org/wayland/wayland/-/issues/224","refsource":"MISC","tags":[],"title":"Reference count overflow in shm leads to use-after-free (#224) · Issues · wayland / wayland · GitLab","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3782","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3782","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3782","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"wayland","cpe5":"wayland","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3782","qid":"160653","title":"Oracle Enterprise Linux Security Update for wayland (ELSA-2023-2786)"},{"cve":"CVE-2021-3782","qid":"182934","title":"Debian Security Update for wayland (CVE-2021-3782)"},{"cve":"CVE-2021-3782","qid":"198941","title":"Ubuntu Security Notification for Wayland Vulnerability (USN-5614-1)"},{"cve":"CVE-2021-3782","qid":"241495","title":"Red Hat Update for wayland security (RHSA-2023:2786)"},{"cve":"CVE-2021-3782","qid":"355417","title":"Amazon Linux Security Advisory for wayland : ALAS2023-2023-203"},{"cve":"CVE-2021-3782","qid":"355541","title":"Amazon Linux Security Advisory for wayland : ALAS2-2023-2103"},{"cve":"CVE-2021-3782","qid":"378640","title":"Alibaba Cloud Linux Security Update for wayland (ALINUX3-SA-2023:0060)"},{"cve":"CVE-2021-3782","qid":"672373","title":"EulerOS Security Update for wayland (EulerOS-SA-2022-2749)"},{"cve":"CVE-2021-3782","qid":"672382","title":"EulerOS Security Update for wayland (EulerOS-SA-2022-2784)"},{"cve":"CVE-2021-3782","qid":"672431","title":"EulerOS Security Update for wayland (EulerOS-SA-2022-2862)"},{"cve":"CVE-2021-3782","qid":"672450","title":"EulerOS Security Update for wayland (EulerOS-SA-2022-2836)"},{"cve":"CVE-2021-3782","qid":"672575","title":"EulerOS Security Update for wayland (EulerOS-SA-2023-1343)"},{"cve":"CVE-2021-3782","qid":"672749","title":"EulerOS Security Update for wayland (EulerOS-SA-2023-1519)"},{"cve":"CVE-2021-3782","qid":"753921","title":"SUSE Enterprise Linux Security Update for wayland (SUSE-SU-2023:1874-1)"},{"cve":"CVE-2021-3782","qid":"753922","title":"SUSE Enterprise Linux Security Update for wayland (SUSE-SU-2023:1873-1)"},{"cve":"CVE-2021-3782","qid":"755882","title":"SUSE Enterprise Linux Security Update for wayland (SUSE-SU-2023:1864-1)"},{"cve":"CVE-2021-3782","qid":"904051","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for wayland (11019)"},{"cve":"CVE-2021-3782","qid":"904054","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for wayland (11024)"},{"cve":"CVE-2021-3782","qid":"904249","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for wayland (11019-1)"},{"cve":"CVE-2021-3782","qid":"904509","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for wayland (11024-1)"},{"cve":"CVE-2021-3782","qid":"941086","title":"AlmaLinux Security Update for wayland (ALSA-2023:2786)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-3782","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"wayland","version":{"version_data":[{"version_value":"wayland 1.20.91"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"(CWE-190|CWE-911)->CWE-416"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://gitlab.freedesktop.org/wayland/wayland/-/issues/224","url":"https://gitlab.freedesktop.org/wayland/wayland/-/issues/224"}]},"description":{"description_data":[{"lang":"eng","value":"An internal reference count is held on the buffer pool, incremented every time a new buffer is created from the pool. The reference count is maintained as an int; on LP64 systems this can cause the reference count to overflow if the client creates a large number of wl_shm buffer objects, or if it can coerce the server to create a large number of external references to the buffer storage. With the reference count overflowing, a use-after-free can be constructed on the wl_shm_pool tracking structure, where values may be incremented or decremented; it may also be possible to construct a limited oracle to leak 4 bytes of server-side memory to the attacking client at a time."}]}},"nvd":{"publishedDate":"2022-09-23 16:15:00","lastModifiedDate":"2023-11-07 03:38:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"HIGH","baseScore":6.6,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":4.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:wayland:wayland:*:*:*:*:*:*:*:*","versionEndExcluding":"1.20.91","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3782","Ordinal":"216573","Title":"CVE-2021-3782","CVE":"CVE-2021-3782","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3782","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}