{
  "threat_severity" : "Moderate",
  "public_date" : "2022-07-30T16:05:00Z",
  "bugzilla" : {
    "description" : "wayland: libwayland-server wl_shm reference-count overflow",
    "id" : "2002627",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2002627"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.6",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H",
    "status" : "verified"
  },
  "cwe" : "(CWE-190|CWE-911)->CWE-416",
  "details" : [ "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." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2023-05-16T00:00:00Z",
    "advisory" : "RHSA-2023:2786",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "wayland-0:1.21.0-1.el8"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Will not fix",
    "package_name" : "wayland",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Will not fix",
    "package_name" : "wayland",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2021-3782\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-3782" ],
  "name" : "CVE-2021-3782",
  "csaw" : false
}