{"id":"CVE-2024-31081","summary":"Xorg-x11-server: heap buffer overread/data leakage in procxipassivegrabdevice","details":"A heap-based buffer over-read vulnerability was found in the X.org server's ProcXIPassiveGrabDevice() function. This issue occurs when byte-swapped length values are used in replies, potentially leading to memory leakage and segmentation faults, particularly when triggered by a client with a different endianness. This vulnerability could be exploited by an attacker to cause the X server to read heap memory values and then transmit them back to the client until encountering an unmapped page, resulting in a crash. Despite the attacker's inability to control the specific memory copied into the replies, the small length values typically stored in a 32-bit integer can result in significant attempted out-of-bounds reads.","modified":"2026-08-12T03:51:29.037253900Z","published":"2024-04-04T13:48:12.848Z","related":["ALSA-2024:2037","ALSA-2024:2616","ALSA-2024:3258","ALSA-2024:3261","ALSA-2024:3343","ALSA-2024:9093","ALSA-2024:9122","CGA-v7m7-2c4g-5vfx","RLSA-2024:2616","SUSE-SU-2024:1199-1","SUSE-SU-2024:1260-1","SUSE-SU-2024:1261-1","SUSE-SU-2024:1262-1","SUSE-SU-2024:1264-1","SUSE-SU-2024:1265-1","SUSE-SU-2024:2776-1","openSUSE-SU-2024:13828-1","openSUSE-SU-2024:13829-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-126"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31081.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/04/03/13"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/04/12/10"},{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/04/msg00009.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6TF7FZXOKHIKPZXYIMSQXKVH7WITKV3V/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EBLQJIAXEDMEGRGZMSH7CWUJHSVKUWLV/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P73U4DAAWLFZAPD75GLXTGMSTTQWW5AP/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1785"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2036"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2037"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2038"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2039"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2040"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2041"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2042"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2080"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2616"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3258"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3261"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3343"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:9093"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:9122"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:12751"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-31081"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31081.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31081"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2271998"},{"type":"PACKAGE","url":"https://gitlab.freedesktop.org/xorg/xserver"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.freedesktop.org/xorg/xserver","events":[{"introduced":"4257023c1e40387aff096d5f00d746d3f7a521b4"},{"last_affected":"4257023c1e40387aff096d5f00d746d3f7a521b4"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"1.7.0"},{"last_affected":"1.7.0"}]}}],"versions":["1.7.0","xorg-server-1.7.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31081.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H"}]}