{"schemaVersion":3,"id":"CVE-2026-77658","aliases":["UBUNTU-CVE-2026-77658","DEBIAN-CVE-2026-77658"],"status":"published","duplicateOf":null,"title":null,"description":"A stack-based buffer overflow vulnerability exists in the Dia diagram editor when processing Network Bus objects from Dia XML project files.\n\nIn objects/network/bus.c, bus_load() reads the number of bus handles from the file attribute \"bus_handles\" using attribute_num_data() without validating an upper bound:\n\n    bus->num_handles = attribute_num_data(attr);\n\nWhen a bus handle is subsequently moved, bus_handle_moved() allocates two temporary arrays on the stack:\n\n    parallel = (real *)g_alloca(num_handles * sizeof(real));\n    perp = (real *)g_alloca(num_handles * sizeof(real));\n\nBecause num_handles is fully attacker-controlled via the project file, sufficiently large values (for example 262144 or higher) cause g_alloca() to consume more stack space than the default thread stack limit (typically 8 MB on Linux), resulting in stack overflow, SIGSEGV, and potential stack frame / return-address corruption.\n\nAn attacker can embed a Bus object with an excessive bus_handles count in a malicious .dia file. Exploitation requires the victim to open the file in Dia (file dialog, command line, or file association) and trigger handle manipulation (moving a bus handle), which exercises the vulnerable code path.\n\nThe identical g_alloca pattern is present in objects/Misc/tree.c (copied from bus.c) and is likely vulnerable to the same class of attack via Tree objects.\n\nAffected versions: Dia 0.98.0 and earlier versions containing this code; issue confirmed on upstream master as of 2026-08-21.\nUpstream report: https://gitlab.gnome.org/GNOME/dia/-/issues/581","dates":{"published":"2026-08-26T12:10:07.556Z","modified":"2026-08-26T13:11:12.732Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00202,"percentile":0.09458,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.058,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00144},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00202,"percentile":0.09458}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00144,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00202,"percentile":0.09458}]},"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-121","name":"Stack-based Buffer Overflow","description":"A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/121.html"}],"affected":[{"vendor":"debian","product":"dia","name":"dia","label":"dia","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/dia","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"dia","name":"dia","label":"dia","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/dia","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnome","product":"dia","name":"dia","label":"dia","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.98.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.98.0","eol":null,"hubHref":"/vendor/gnome/dia"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-77658","label":"access.redhat.com/security/cve/CVE-2026-77658","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2520890","label":"bugzilla.redhat.com/show_bug.cgi?id=2520890","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://gitlab.gnome.org/GNOME/dia/-/blob/master/objects/network/bus.c","label":"gitlab.gnome.org/GNOME/dia/-/blob/master/objects/network/bus.c","hostname":"gitlab.gnome.org","tags":[]},{"url":"https://gitlab.gnome.org/GNOME/dia/-/issues/581","label":"gitlab.gnome.org/GNOME/dia/-/issues/581","hostname":"gitlab.gnome.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-77658","label":"ubuntu.com/security/CVE-2026-77658","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-77658","label":"www.cve.org/CVERecord?id=CVE-2026-77658","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-77658","label":"security-tracker.debian.org/tracker/CVE-2026-77658","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-26T12:10:07.556Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-26T13:11:12.732Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:26:41.577Z","stale":false,"partial":false}}