{"id":"CVE-2002-2439","aliases":["EUVD-2002-2417","GHSA-mm8j-7g3h-x2mj","UBUNTU-CVE-2002-2439"],"status":"published","title":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified...","description":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00548,"percentile":0.46131,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-190"],"published":"2019-10-23T17:47:38Z","modified":"2026-10-17T12:52:33Z","affected":[{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"gcc-4.7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.3-7ubuntu3","4.7.3-8ubuntu1","4.7.3-9ubuntu1","4.7.3-9ubuntu2","4.7.3-10ubuntu1","4.7.3-11ubuntu1","4.7.3-12ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8","9","11","12"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-4.7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.4-3ubuntu3","4.7.4-3ubuntu7","4.7.4-3ubuntu9","4.7.4-3ubuntu10","4.7.4-3ubuntu11","4.7.4-3ubuntu12"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-4.7-armel-cross","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.86","1.90","3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-4.7-armhf-cross","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.86","1.87","3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-arm-linux-androideabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.20130705.1-0ubuntu8","0.20130705.1-0ubuntu9"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:4.9.3+svn227297-1","15:4.9.3+svn227297-1build1","15:4.9.3+svn231177-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-4ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-i686-linux-android","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7","9"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15.4","15.7","15.7build1","16build1","17"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gcc-msp430","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.6.3~mspgcc-20120406-7ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:5.4.1+svn241155-1","15:6.3.1+svn253039-1","15:6.3.1+svn253039-1build1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-4ubuntu1","1:3.4.6+dfsg2-4ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["19.3","20","20.1","20.2","20.2build1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"gcc-msp430","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.6.3~mspgcc-20120406-7ubuntu4","4.6.3~mspgcc-20120406-7ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:7-2018-q2-6","15:8-2019-q3-1","15:9-2019-q4-0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-4ubuntu3","1:3.4.6+dfsg2-4.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["22~exp1ubuntu2","22~exp1ubuntu3","22~exp1ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"gcc-msp430","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.6.3~mspgcc-20120406-7.1ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:9-2019-q4-0ubuntu2","15:10.3-2021.07-1","15:10.3-2021.07-2","15:10.3-2021.07-3","15:10.3-2021.07-4"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-4.1","1:3.4.6+dfsg2-4.2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["24.2","24.3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"gcc-msp430","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.6.3~mspgcc-20120406-7.1ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:12.2.rel1-1","15:13.2.rel1-1","15:13.2.rel1-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-4.2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["25.3","26.1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:14.2.rel1-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-4.2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["26.1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:14.2.rel1-1","15:15.3.rel1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-12"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["26.1","29ubuntu3"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"gcc-arm-none-eabi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["15:14.2.rel1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"gcc-h8300-hms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:3.4.6+dfsg2-4.2","1:3.4.6+dfsg2-9","1:3.4.6+dfsg2-10","1:3.4.6+dfsg2-11","1:3.4.6+dfsg2-12"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"gcc-mingw-w64","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["26.1"]}],"products":[{"vendor":"gnu","product":"gcc"}],"references":[{"url":"https://security-tracker.debian.org/tracker/CVE-2002-2439","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2002-2439","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://access.redhat.com/security/cve/cve-2002-2439","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19351","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2002-2439"},{"url":"https://github.com/advisories/GHSA-mm8j-7g3h-x2mj"},{"url":"https://ubuntu.com/security/CVE-2002-2439","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2002-2439","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2002-2439","description":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.","status":"published","published":"2019-10-23T17:47:38Z","modified":"2024-08-08T04:06:54.588Z","updated_at":"2026-11-02T14:33:54.29664Z"}],"euvd":[{"id":"EUVD-2002-2417","description":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.","status":"published","published":"2019-10-23T17:47:38Z","modified":"2024-08-08T04:06:54Z","updated_at":"2026-11-03T01:14:53.392551Z"}],"ghsa":[{"id":"GHSA-mm8j-7g3h-x2mj","title":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified...","description":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.","status":"published","published":"2022-04-21T01:42:52Z","modified":"2024-03-07T05:09:53Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:55:38.886845Z"}],"nvd":[{"id":"CVE-2002-2439","description":"Integer overflow in the new[] operator in gcc before 4.8.0 allows attackers to have unspecified impacts.","status":"published","published":"2019-10-23T18:15:11.007Z","modified":"2026-06-16T22:01:18.377Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:00:44.251133Z"}],"osv":[{"id":"UBUNTU-CVE-2002-2439","description":"operator new[] sometimes returns pointers to heap blocks which are too small.  When a new array is allocated, the C++ run-time has to calculate its size.  The product may exceed the maximum value which can be stored in a machine register.  This error is ignored, and the truncated value is used for the heap allocation. This may lead to heap overflows and therefore security bugs. (See http://cert.uni-stuttgart.de/advisories/calloc.php for further references.)","status":"published","published":"2019-10-23T18:15:00Z","modified":"2026-10-17T12:52:33.954282514Z","updated_at":"2026-11-02T15:54:05.838224Z"}]}}
