{"id":"UBUNTU-CVE-2026-120440","details":"QuickJS-NG before 0.16.0 contains a memory leak vulnerability in js_atomics_store() in quickjs.c that fails to free the converted value when returning a RangeError. Attackers running JavaScript can repeatedly call Atomics.store with a valueOf that detaches or shrinks the buffer to exhaust heap memory and cause denial of service.","modified":"2026-11-04T03:30:38.827145841Z","published":"2026-11-03T00:00:00Z","upstream":["CVE-2026-120440"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-120440"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-120440"},{"type":"REPORT","url":"https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L61154"},{"type":"REPORT","url":"https://github.com/quickjs-ng/quickjs/commit/62951e1bc68711d37aad986ff84ef0fe17038a7e"},{"type":"REPORT","url":"https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0"},{"type":"REPORT","url":"https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-wm7w-r6qf-3c9w"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-memory-leak-via-atomics-store"}],"affected":[{"package":{"name":"quickjs-ng","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/quickjs-ng?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.15.0-1","0.15.1-1","0.16.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libqjs0","binary_version":"0.16.2-2"},{"binary_name":"qjs","binary_version":"0.16.2-2"},{"binary_name":"qjs-src","binary_version":"0.16.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120440.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}