CVE-2021-3782 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 re...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/wayland(Debian 12) | < 1.21.0-1 | 1.21.0-1 | Fixed |
| debian/wayland(Debian 13) | < 1.21.0-1 | 1.21.0-1 | Fixed |
| debian/wayland(Debian 14) | < 1.21.0-1 | 1.21.0-1 | Fixed |
| ubuntu/wayland(Ubuntu 18.04) | < 1.16.0-1ubuntu1.1~18.04.4; = 1.14.0-1; = 1.14.0-2; = 1.16.0-1ubuntu1.1~18.04.1 +1 more | 1.16.0-1ubuntu1.1~18.04.4 | Fixed |
| ubuntu/wayland(Ubuntu 20.04) | < 1.18.0-1ubuntu0.1; = 1.17.0-1; = 1.17.0-1build1; = 1.17.0-1build2 +1 more | 1.18.0-1ubuntu0.1 | Fixed |
| ubuntu/wayland(Ubuntu 22.04) | < 1.20.0-1ubuntu0.1; = 1.19.0-2build1; = 1.20.0-1 | 1.20.0-1ubuntu0.1 | Fixed |
| ubuntu/wayland(Ubuntu Pro 16.04) | < 1.12.0-1~ubuntu16.04.3+esm1; = 1.8.1-1; = 1.9.0-1; = 1.12.0-1~ubuntu16.04.1 +2 more | 1.12.0-1~ubuntu16.04.3+esm1 | Fixed |
| wayland | < 1.20.91 | 1.20.91 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/wayland(Ubuntu:22.04) | < 1.20.0-1ubuntu0.1 | 1.20.0-1ubuntu0.1 |
| debian/wayland(Debian:12) | < 1.21.0-1 | 1.21.0-1 |
| debian/wayland(Debian:13) | < 1.21.0-1 | 1.21.0-1 |
| debian/wayland(Debian:14) | < 1.21.0-1 | 1.21.0-1 |
| wayland | < 1.20.91 | 1.20.91 |
| ubuntu/wayland(Ubuntu:Pro:16.04) | < 1.12.0-1~ubuntu16.04.3+esm1 | 1.12.0-1~ubuntu16.04.3+esm1 |
| ubuntu/wayland(Ubuntu:Pro:16.04) | = 1.8.1-1 | No fix listed |
| ubuntu/wayland(Ubuntu:Pro:16.04) | = 1.9.0-1 | No fix listed |
| ubuntu/wayland(Ubuntu:Pro:16.04) | = 1.12.0-1~ubuntu16.04.1 | No fix listed |
| ubuntu/wayland(Ubuntu:Pro:16.04) | = 1.12.0-1~ubuntu16.04.2 | No fix listed |
| ubuntu/wayland(Ubuntu:Pro:16.04) | = 1.12.0-1~ubuntu16.04.3 | No fix listed |
| ubuntu/wayland(Ubuntu:18.04) | < 1.16.0-1ubuntu1.1~18.04.4 | 1.16.0-1ubuntu1.1~18.04.4 |
| ubuntu/wayland(Ubuntu:18.04) | = 1.14.0-1 | No fix listed |
| ubuntu/wayland(Ubuntu:18.04) | = 1.14.0-2 | No fix listed |
| ubuntu/wayland(Ubuntu:18.04) | = 1.16.0-1ubuntu1.1~18.04.1 | No fix listed |
| ubuntu/wayland(Ubuntu:18.04) | = 1.16.0-1ubuntu1.1~18.04.3 | No fix listed |
| ubuntu/wayland(Ubuntu:20.04) | < 1.18.0-1ubuntu0.1 | 1.18.0-1ubuntu0.1 |
| ubuntu/wayland(Ubuntu:20.04) | = 1.17.0-1 | No fix listed |
| ubuntu/wayland(Ubuntu:20.04) | = 1.17.0-1build1 | No fix listed |
| ubuntu/wayland(Ubuntu:20.04) | = 1.17.0-1build2 | No fix listed |
| ubuntu/wayland(Ubuntu:20.04) | = 1.18.0-1 | No fix listed |
| ubuntu/wayland(Ubuntu:22.04) | = 1.19.0-2build1 | No fix listed |
| ubuntu/wayland(Ubuntu:22.04) | = 1.20.0-1 | No fix listed |
References
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5614-1 vendor-advisory
- USN-5614-2 vendor-advisory
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2021-3782 vendor-advisory
- gitlab.freedesktop.org exploit issue-tracking patch third-party-advisory
- access.redhat.com issue-tracking