{"id":"CVE-2021-3782","published":"2022-09-23T15:26:59Z","modified":"2025-05-22T18:21:26Z","title":"An internal reference count is held on the buffer pool, incremented every time a new buffer is created from the pool","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00318,"percentile":0.17184,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://gitlab.freedesktop.org/wayland/wayland/-/issues/224","tags":["x_refsource_MISC"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":3.44},{"name":"CVSS severity","points":4.62}]},"affectedVersions":[{"vendor":"n/a","product":"wayland","versions":["wayland 1.20.91"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-22T18:20:59.707899Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-27046","exploited":false,"provenance":"source"}}