{"id":"UBUNTU-CVE-2026-40706","details":"In NTFS-3G 2022.10.3 before 2026.2.25, a heap buffer overflow exists in ntfs_build_permissions_posix() in acls.c that allows an attacker to corrupt heap memory in the SUID-root ntfs-3g binary by crafting a malicious NTFS image. The overflow is triggered on the READ path (stat, readdir, open) when processing a security descriptor with multiple ACCESS_DENIED ACEs containing WRITE_OWNER from distinct group SIDs.","modified":"2026-05-14T12:22:05.251708909Z","published":"2026-04-21T12:00:00Z","related":["USN-8192-1","USN-8192-2"],"upstream":["CVE-2026-40706"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-40706"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-40706"},{"type":"REPORT","url":"https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-4cwv-5285-63v9"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8192-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8192-2"}],"affected":[{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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","1:2013.1.13AR.1-2ubuntu2+esm4"],"ecosystem_specific":{"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/2026/UBUNTU-CVE-2026-40706.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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","1:2015.3.14AR.1-1ubuntu0.3+esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"ntfs-3g","binary_version":"1:2015.3.14AR.1-1ubuntu0.3+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40706.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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","1:2017.3.23-2ubuntu0.18.04.5"],"ecosystem_specific":{"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/2026/UBUNTU-CVE-2026-40706.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:2017.3.23AR.3-3ubuntu1","1:2017.3.23AR.3-3ubuntu1.1","1:2017.3.23AR.3-3ubuntu1.2","1:2017.3.23AR.3-3ubuntu1.3"],"ecosystem_specific":{"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/2026/UBUNTU-CVE-2026-40706.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2021.8.22-3ubuntu1.3"}]}],"versions":["1:2017.3.23AR.3-3ubuntu5","1:2017.3.23AR.3-3ubuntu6","1:2021.8.22-3ubuntu1","1:2021.8.22-3ubuntu1.1","1:2021.8.22-3ubuntu1.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libntfs-3g89","binary_version":"1:2021.8.22-3ubuntu1.3"},{"binary_name":"ntfs-3g","binary_version":"1:2021.8.22-3ubuntu1.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40706.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2022.10.3-1.2ubuntu3.1"}]}],"versions":["1:2022.10.3-1ubuntu1","1:2022.10.3-1.2ubuntu1","1:2022.10.3-1.2ubuntu2","1:2022.10.3-1.2ubuntu3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libntfs-3g89t64","binary_version":"1:2022.10.3-1.2ubuntu3.1"},{"binary_name":"ntfs-3g","binary_version":"1:2022.10.3-1.2ubuntu3.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40706.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2022.10.3-5ubuntu0.25.10.1"}]}],"versions":["1:2022.10.3-5"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libntfs-3g89t64","binary_version":"1:2022.10.3-5ubuntu0.25.10.1"},{"binary_name":"ntfs-3g","binary_version":"1:2022.10.3-5ubuntu0.25.10.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40706.json"}},{"package":{"name":"ntfs-3g","ecosystem":"Ubuntu:26.04","purl":"pkg:deb/ubuntu/ntfs-3g?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2022.10.3-5ubuntu1"}]}],"versions":["1:2022.10.3-5","1:2022.10.3-5build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libntfs-3g89t64","binary_version":"1:2022.10.3-5ubuntu1"},{"binary_name":"ntfs-3g","binary_version":"1:2022.10.3-5ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40706.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}