{"id":"UBUNTU-CVE-2026-120451","details":"libgphoto2 through 2.5.34 contains stack-based and heap-based buffer overflow vulnerabilities in jl2005c_init() that allow malicious USB devices to corrupt memory by supplying an unbounded allocation table entry count. Attackers can connect a spoofed Jeilin JL2005B/C/D camera reporting 1022 or more entries to overwrite the saved return address and heap data, potentially achieving code execution.","modified":"2026-11-04T03:30:39.680246846Z","published":"2026-11-03T00:00:00Z","upstream":["CVE-2026-120451"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-120451"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-120451"},{"type":"REPORT","url":"https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154"},{"type":"REPORT","url":"https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e"},{"type":"REPORT","url":"https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"},{"type":"REPORT","url":"https://github.com/gphoto/libgphoto2/issues/1326"},{"type":"REPORT","url":"https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-buffer-overflow-via-jl2005c-camera-driver"}],"affected":[{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.2-0ubuntu5","2.5.2-0ubuntu6","2.5.3.1-0ubuntu1","2.5.3.1-1ubuntu2","2.5.3.1-1ubuntu2.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6","binary_version":"2.5.3.1-1ubuntu2.2"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.3.1-1ubuntu2.2"},{"binary_name":"libgphoto2-port10","binary_version":"2.5.3.1-1ubuntu2.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.8-1","2.5.8-2","2.5.8-3","2.5.9-2","2.5.9-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6","binary_version":"2.5.9-3"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.9-3"},{"binary_name":"libgphoto2-port12","binary_version":"2.5.9-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.14-1","2.5.16-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6","binary_version":"2.5.16-2"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.16-2"},{"binary_version":"2.5.16-2","binary_name":"libgphoto2-port12"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.23-2","2.5.24-1","2.5.25-0ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6","binary_version":"2.5.25-0ubuntu0.1"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.25-0ubuntu0.1"},{"binary_version":"2.5.25-0ubuntu0.1","binary_name":"libgphoto2-port12"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.27-1","2.5.27-1build1","2.5.27-1build2","2.5.27-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6","binary_version":"2.5.27-1ubuntu0.1"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.27-1ubuntu0.1"},{"binary_name":"libgphoto2-port12","binary_version":"2.5.27-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.30-1","2.5.31-1","2.5.31-2","2.5.31-2.1build1","2.5.31-2.1build2","2.5.31-2.1ubuntu1","2.5.31-2.1ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6t64","binary_version":"2.5.31-2.1ubuntu1.1"},{"binary_version":"2.5.31-2.1ubuntu1.1","binary_name":"libgphoto2-l10n"},{"binary_name":"libgphoto2-port12t64","binary_version":"2.5.31-2.1ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.33-1ubuntu1","2.5.33-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6t64","binary_version":"2.5.33-1ubuntu2"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.33-1ubuntu2"},{"binary_name":"libgphoto2-port12t64","binary_version":"2.5.33-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.31-4build1","2.5.32-1","2.5.33-1","2.5.33-1ubuntu1","2.5.33-1ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.33-1ubuntu1.1","binary_name":"libgphoto2-6t64"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.33-1ubuntu1.1"},{"binary_name":"libgphoto2-port12t64","binary_version":"2.5.33-1ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120451.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}