{"id":"UBUNTU-CVE-2022-40284","details":"A buffer overflow was discovered in NTFS-3G before 2022.10.3. Crafted metadata in an NTFS image can cause code execution. A local attacker can exploit this if the ntfs-3g binary is setuid root. A physically proximate attacker can exploit this if NTFS-3G software is configured to execute upon attachment of an external storage device.","modified":"2026-04-22T13:27:59.455803Z","published":"2022-10-31T00:00:00Z","related":["USN-5711-1","USN-5711-2"],"upstream":["CVE-2022-40284"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-40284"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2022/10/31/2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5711-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5711-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-40284"}],"affected":[{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g@1:2013.1.13AR.1-2ubuntu2+esm4?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2013.1.13AR.1-2ubuntu2+esm4"}]}],"versions":["1:2013.1.13AR.1-2ubuntu1","1:2013.1.13AR.1-2ubuntu2","1:2013.1.13AR.1-2ubuntu2+esm1","1:2013.1.13AR.1-2ubuntu2+esm2","1:2013.1.13AR.1-2ubuntu2+esm3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"ntfs-3g","binary_version":"1:2013.1.13AR.1-2ubuntu2+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40284.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g@1:2015.3.14AR.1-1ubuntu0.3+esm4?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2015.3.14AR.1-1ubuntu0.3+esm4"}]}],"versions":["1:2014.2.15AR.3-3","1:2015.3.14AR.1-1","1:2015.3.14AR.1-1build1","1:2015.3.14AR.1-1ubuntu0.1","1:2015.3.14AR.1-1ubuntu0.2","1:2015.3.14AR.1-1ubuntu0.3","1:2015.3.14AR.1-1ubuntu0.3+esm1","1:2015.3.14AR.1-1ubuntu0.3+esm2","1:2015.3.14AR.1-1ubuntu0.3+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"ntfs-3g","binary_version":"1:2015.3.14AR.1-1ubuntu0.3+esm4"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40284.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g@1:2017.3.23-2ubuntu0.18.04.5?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2017.3.23-2ubuntu0.18.04.5"}]}],"versions":["1:2016.2.22AR.2-2","1:2017.3.23-2","1:2017.3.23-2ubuntu0.18.04.1","1:2017.3.23-2ubuntu0.18.04.2","1:2017.3.23-2ubuntu0.18.04.3","1:2017.3.23-2ubuntu0.18.04.4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libntfs-3g88","binary_version":"1:2017.3.23-2ubuntu0.18.04.5"},{"binary_name":"ntfs-3g","binary_version":"1:2017.3.23-2ubuntu0.18.04.5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40284.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g@1:2017.3.23AR.3-3ubuntu1.3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2017.3.23AR.3-3ubuntu1.3"}]}],"versions":["1:2017.3.23AR.3-3ubuntu1","1:2017.3.23AR.3-3ubuntu1.1","1:2017.3.23AR.3-3ubuntu1.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libntfs-3g883","binary_version":"1:2017.3.23AR.3-3ubuntu1.3"},{"binary_name":"ntfs-3g","binary_version":"1:2017.3.23AR.3-3ubuntu1.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40284.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g@1:2021.8.22-3ubuntu1.2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2021.8.22-3ubuntu1.2"}]}],"versions":["1:2017.3.23AR.3-3ubuntu5","1:2017.3.23AR.3-3ubuntu6","1:2021.8.22-3ubuntu1","1:2021.8.22-3ubuntu1.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libntfs-3g89","binary_version":"1:2021.8.22-3ubuntu1.2"},{"binary_name":"ntfs-3g","binary_version":"1:2021.8.22-3ubuntu1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-40284.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}