{"schemaVersion":3,"id":"CVE-2024-31081","aliases":["UBUNTU-CVE-2024-31081","DEBIAN-CVE-2024-31081","CGA-f4qf-vgh8-r3pf","CGA-r3c4-frvj-5vqx"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-04-04T13:48:12.848Z","modified":"2025-11-20T07:19:00.688Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","exploitability":4.6,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","exploitability":4.6,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","exploitability":4.6,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","exploitability":4.6,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00517,"percentile":0.428,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00517},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00517,"percentile":0.428}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00517,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00517,"percentile":0.428}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-126","name":"Buffer Over-read","description":"The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/126.html"}],"affected":[{"vendor":"chainguard","product":"xorg-server","name":"xorg-server","label":"xorg-server","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/xorg-server","purlType":"apk","versions":[{"text":"< 21.1.12-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.12-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"xorg-server","name":"xorg-server","label":"xorg-server","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/xorg-server","purlType":"apk","versions":[{"text":"< 21.1.12-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.1.12-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"xorg-server","name":"xorg-server","label":"xorg-server","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/xorg-server","purlType":"deb","versions":[{"text":"< 2:21.1.7-3+deb12u7","noFixRecorded":false,"fixedIn":null},{"text":"< 2:21.1.11-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:21.1.7-3+deb12u7 | < 2:21.1.11-3","eol":null,"hubHref":null},{"vendor":"debian","product":"xwayland","name":"xwayland","label":"xwayland","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/xwayland","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2:23.2.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2:23.2.6-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"xorg-server","name":"xorg-server","label":"xorg-server","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/xorg-server","purlType":"deb","versions":[{"text":"< 2:1.15.1-0ubuntu2.11+esm11","noFixRecorded":false,"fixedIn":null},{"text":"< 2:1.18.4-0ubuntu0.12+esm12","noFixRecorded":false,"fixedIn":null},{"text":"< 2:1.19.6-1ubuntu4.15+esm7","noFixRecorded":false,"fixedIn":null},{"text":"< 2:1.20.13-1ubuntu1~20.04.16","noFixRecorded":false,"fixedIn":null},{"text":"< 2:21.1.4-2ubuntu1.7~22.04.9","noFixRecorded":false,"fixedIn":null},{"text":"< 2:21.1.12-1ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:1.15.1-0ubuntu2.11+esm11 | < 2:1.18.4-0ubuntu0.12+esm12 | < 2:1.19.6-1ubuntu4.15+esm7 | < 2:1.20.13-1ubuntu1~20.04.16 | < 2:21.1.4-2ubuntu1.7~22.04.9 | < 2:21.1.12-1ubuntu1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"xorg-server-hwe-16.04","name":"xorg-server-hwe-16.04","label":"xorg-server-hwe-16.04","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/xorg-server-hwe-16.04","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"xorg-server-hwe-18.04","name":"xorg-server-hwe-18.04","label":"xorg-server-hwe-18.04","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/xorg-server-hwe-18.04","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"xwayland","name":"xwayland","label":"xwayland","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/xwayland","purlType":"deb","versions":[{"text":"< 2:22.1.1-1ubuntu0.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:22.1.1-1ubuntu0.12","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:1785","label":"access.redhat.com/errata/RHSA-2024:1785","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2036","label":"access.redhat.com/errata/RHSA-2024:2036","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2037","label":"access.redhat.com/errata/RHSA-2024:2037","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2038","label":"access.redhat.com/errata/RHSA-2024:2038","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2039","label":"access.redhat.com/errata/RHSA-2024:2039","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2040","label":"access.redhat.com/errata/RHSA-2024:2040","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2041","label":"access.redhat.com/errata/RHSA-2024:2041","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2042","label":"access.redhat.com/errata/RHSA-2024:2042","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2080","label":"access.redhat.com/errata/RHSA-2024:2080","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2616","label":"access.redhat.com/errata/RHSA-2024:2616","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:3258","label":"access.redhat.com/errata/RHSA-2024:3258","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:3261","label":"access.redhat.com/errata/RHSA-2024:3261","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:3343","label":"access.redhat.com/errata/RHSA-2024:3343","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9093","label":"access.redhat.com/errata/RHSA-2024:9093","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:9122","label":"access.redhat.com/errata/RHSA-2024:9122","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2025:12751","label":"access.redhat.com/errata/RHSA-2025:12751","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-31081","label":"access.redhat.com/security/cve/CVE-2024-31081","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2271998","label":"bugzilla.redhat.com/show_bug.cgi?id=2271998","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/03/13","label":"www.openwall.com/lists/oss-security/2024/04/03/13","hostname":"www.openwall.com","tags":["X Transferred","WEB"]},{"url":"http://www.openwall.com/lists/oss-security/2024/04/12/10","label":"www.openwall.com/lists/oss-security/2024/04/12/10","hostname":"www.openwall.com","tags":["X Transferred","WEB"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/04/msg00009.html","label":"lists.debian.org/debian-lts-announce/2024/04/msg00009.html","hostname":"lists.debian.org","tags":["X Transferred","WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6TF7FZXOKHIKPZXYIMSQXKVH7WITKV3V/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["X Transferred","WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EBLQJIAXEDMEGRGZMSH7CWUJHSVKUWLV/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["X Transferred","WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P73U4DAAWLFZAPD75GLXTGMSTTQWW5AP/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["X Transferred","WEB"]},{"url":"https://ubuntu.com/security/CVE-2024-31081","label":"ubuntu.com/security/CVE-2024-31081","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6721-1","label":"ubuntu.com/security/notices/USN-6721-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-31081","label":"www.cve.org/CVERecord?id=CVE-2024-31081","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-31081","label":"security-tracker.debian.org/tracker/CVE-2024-31081","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","label":"access.redhat.com/downloads/content/package-browser/","hostname":"access.redhat.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31081.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31081.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31081","label":"nvd.nist.gov/vuln/detail/CVE-2024-31081","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://gitlab.freedesktop.org/xorg/xserver","label":"gitlab.freedesktop.org/xorg/xserver","hostname":"gitlab.freedesktop.org","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["DLA-3787-1","DSA-5657-1","MGASA-2024-0121","OPENSUSE-SU-2024:13828-1","OPENSUSE-SU-2024:13829-1","RHSA-2024:1785","RHSA-2024:2036","RHSA-2024:2037","RHSA-2024:2038","RHSA-2024:2039","RHSA-2024:2040","RHSA-2024:2041","RHSA-2024:2042","RHSA-2024:2080","RHSA-2024:2616","RHSA-2024:3258","RHSA-2024:3261","RHSA-2024:3343","RHSA-2024:9093","RHSA-2024:9122","RHSA-2025:12751","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:2776-1","USN-6721-1"],"duplicates":[],"related":["CGA-43F4-43GG-7R3G","CGA-V7M7-2C4G-5VFX","OPENSUSE-SU-2024:13828-1","OPENSUSE-SU-2024:13829-1","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:2776-1","USN-6721-1"]},"timeline":[{"kind":"published","date":"2024-04-04T13:48:12.848Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-20T07:19:00.688Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:27:20.183Z","stale":false,"partial":false}}