{"id":"USN-9476-1","summary":"libgphoto2 vulnerability","details":"It was discovered that libgphoto2 incorrectly handled certain Sierra\nprotocol responses. A malicious camera or USB device could use this issue to\ncause a stack buffer overflow, resulting in a denial of service or\npossibly arbitrary code execution.","modified":"2026-12-04T04:58:42.005631481Z","published":"2026-12-03T20:47:30Z","upstream":["CVE-2026-138158","UBUNTU-CVE-2026-138158"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9476-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-138158"}],"affected":[{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.3.1-1ubuntu2.2+esm2"}]}],"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","2.5.3.1-1ubuntu2.2+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6","binary_version":"2.5.3.1-1ubuntu2.2+esm2"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.3.1-1ubuntu2.2+esm2"},{"binary_version":"2.5.3.1-1ubuntu2.2+esm2","binary_name":"libgphoto2-port10"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:14.04:LTS","cves":[]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=esm-infra-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.9-3ubuntu0.1~esm2"}]}],"versions":["2.5.8-1","2.5.8-2","2.5.8-3","2.5.9-2","2.5.9-3","2.5.9-3ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.9-3ubuntu0.1~esm2","binary_name":"libgphoto2-6"},{"binary_version":"2.5.9-3ubuntu0.1~esm2","binary_name":"libgphoto2-l10n"},{"binary_name":"libgphoto2-port12","binary_version":"2.5.9-3ubuntu0.1~esm2"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json","cves_map":{"cves":[],"ecosystem":"Ubuntu:Pro:16.04:LTS"}}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.16-2ubuntu0.1~esm2"}]}],"versions":["2.5.14-1","2.5.16-2","2.5.16-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6","binary_version":"2.5.16-2ubuntu0.1~esm2"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.16-2ubuntu0.1~esm2"},{"binary_name":"libgphoto2-port12","binary_version":"2.5.16-2ubuntu0.1~esm2"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.25-0ubuntu0.1+esm2"}]}],"versions":["2.5.23-2","2.5.24-1","2.5.25-0ubuntu0.1","2.5.25-0ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.25-0ubuntu0.1+esm2","binary_name":"libgphoto2-6"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.25-0ubuntu0.1+esm2"},{"binary_name":"libgphoto2-port12","binary_version":"2.5.25-0ubuntu0.1+esm2"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","cves":[]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.27-1ubuntu0.3"}]}],"versions":["2.5.27-1","2.5.27-1build1","2.5.27-1build2","2.5.27-1ubuntu0.1","2.5.27-1ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.27-1ubuntu0.3","binary_name":"libgphoto2-6"},{"binary_version":"2.5.27-1ubuntu0.3","binary_name":"libgphoto2-l10n"},{"binary_version":"2.5.27-1ubuntu0.3","binary_name":"libgphoto2-port12"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json","cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[]}}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.31-2.1ubuntu1.3"}]}],"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","2.5.31-2.1ubuntu1.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6t64","binary_version":"2.5.31-2.1ubuntu1.3"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.31-2.1ubuntu1.3"},{"binary_version":"2.5.31-2.1ubuntu1.3","binary_name":"libgphoto2-port12t64"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json","cves_map":{"ecosystem":"Ubuntu:24.04:LTS","cves":[]}}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.33-1ubuntu2.2"}]}],"versions":["2.5.33-1ubuntu1","2.5.33-1ubuntu2","2.5.33-1ubuntu2.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.33-1ubuntu2.2","binary_name":"libgphoto2-6t64"},{"binary_version":"2.5.33-1ubuntu2.2","binary_name":"libgphoto2-l10n"},{"binary_name":"libgphoto2-port12t64","binary_version":"2.5.33-1ubuntu2.2"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:26.10","cves":[]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json"}},{"package":{"name":"libgphoto2","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libgphoto2?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.33-1ubuntu1.3"}]}],"versions":["2.5.31-4build1","2.5.32-1","2.5.33-1","2.5.33-1ubuntu1","2.5.33-1ubuntu1.1","2.5.33-1ubuntu1.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libgphoto2-6t64","binary_version":"2.5.33-1ubuntu1.3"},{"binary_name":"libgphoto2-l10n","binary_version":"2.5.33-1ubuntu1.3"},{"binary_name":"libgphoto2-port12t64","binary_version":"2.5.33-1ubuntu1.3"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:26.04:LTS","cves":[]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9476-1.json"}}],"schema_version":"1.9.2"}