{"id":"UBUNTU-CVE-2023-49298","details":"OpenZFS through 2.1.13 and 2.2.x through 2.2.1, in certain scenarios involving applications that try to rely on efficient copying of file data, can replace file contents with zero-valued bytes and thus potentially disable security mechanisms. NOTE: this issue is not always security related, but can be security related in realistic situations. A possible example is cp, from a recent GNU Core Utilities (coreutils) version, when attempting to preserve a rule set for denying unauthorized access. (One might use cp when configuring access control, such as with the /etc/hosts.deny file specified in the IBM Support reference.) NOTE: this issue occurs less often in version 2.2.1, and in versions before 2.1.4, because of the default configuration in those versions.","modified":"2026-08-31T22:15:07.913140686Z","published":"2023-11-24T19:15:00Z","upstream":["CVE-2023-49298"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-49298"},{"type":"REPORT","url":"https://news.ycombinator.com/item?id=38405731"},{"type":"REPORT","url":"https://web.archive.org/web/20231124172959/https://www.ibm.com/support/pages/how-remove-missing%C2%A0newline%C2%A0or%C2%A0line%C2%A0too%C2%A0long-error-etchostsallow%C2%A0and%C2%A0etchostsdeny-files"},{"type":"REPORT","url":"https://github.com/openzfs/zfs/releases/tag/zfs-2.2.2"},{"type":"REPORT","url":"https://gist.github.com/rincebrain/e23b4a39aba3fadc04db18574d30dc73"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-49298"}],"affected":[{"package":{"name":"zfs-linux","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/zfs-linux?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.4.2-0ubuntu1","0.6.5.3-0ubuntu2","0.6.5.3-0ubuntu3","0.6.5.3-0ubuntu4","0.6.5.3-0ubuntu5","0.6.5.3-0ubuntu6","0.6.5.4-0ubuntu1","0.6.5.4-0ubuntu2","0.6.5.4-0ubuntu3","0.6.5.4-0ubuntu4","0.6.5.4-0ubuntu5","0.6.5.4-0ubuntu6","0.6.5.6-0ubuntu5","0.6.5.6-0ubuntu6","0.6.5.6-0ubuntu7","0.6.5.6-0ubuntu8","0.6.5.6-0ubuntu9","0.6.5.6-0ubuntu10","0.6.5.6-0ubuntu12","0.6.5.6-0ubuntu13","0.6.5.6-0ubuntu14","0.6.5.6-0ubuntu15","0.6.5.6-0ubuntu16","0.6.5.6-0ubuntu17","0.6.5.6-0ubuntu18","0.6.5.6-0ubuntu19","0.6.5.6-0ubuntu20","0.6.5.6-0ubuntu21","0.6.5.6-0ubuntu23","0.6.5.6-0ubuntu24","0.6.5.6-0ubuntu25","0.6.5.6-0ubuntu26","0.6.5.6-0ubuntu27","0.6.5.6-0ubuntu28","0.6.5.6-0ubuntu29","0.6.5.6-0ubuntu30"],"ecosystem_specific":{"binaries":[{"binary_name":"libnvpair1linux","binary_version":"0.6.5.6-0ubuntu30"},{"binary_name":"libuutil1linux","binary_version":"0.6.5.6-0ubuntu30"},{"binary_name":"libzfs2linux","binary_version":"0.6.5.6-0ubuntu30"},{"binary_name":"libzpool2linux","binary_version":"0.6.5.6-0ubuntu30"},{"binary_version":"0.6.5.6-0ubuntu30","binary_name":"zfs-dkms"},{"binary_version":"0.6.5.6-0ubuntu30","binary_name":"zfs-initramfs"},{"binary_name":"zfs-zed","binary_version":"0.6.5.6-0ubuntu30"},{"binary_name":"zfsutils-linux","binary_version":"0.6.5.6-0ubuntu30"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49298.json"}},{"package":{"name":"zfs-linux","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/zfs-linux?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.5.11-1ubuntu3","0.6.5.11-1ubuntu4","0.6.5.11-1ubuntu5","0.6.5.11-1ubuntu6","0.7.5-1ubuntu2","0.7.5-1ubuntu3","0.7.5-1ubuntu4","0.7.5-1ubuntu5","0.7.5-1ubuntu6","0.7.5-1ubuntu7","0.7.5-1ubuntu8","0.7.5-1ubuntu9","0.7.5-1ubuntu10","0.7.5-1ubuntu11","0.7.5-1ubuntu12","0.7.5-1ubuntu13","0.7.5-1ubuntu14","0.7.5-1ubuntu15","0.7.5-1ubuntu16","0.7.5-1ubuntu16.2","0.7.5-1ubuntu16.3","0.7.5-1ubuntu16.4","0.7.5-1ubuntu16.6","0.7.5-1ubuntu16.7","0.7.5-1ubuntu16.8","0.7.5-1ubuntu16.9","0.7.5-1ubuntu16.10","0.7.5-1ubuntu16.11","0.7.5-1ubuntu16.12","0.7.5-1ubuntu16.12+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnvpair1linux","binary_version":"0.7.5-1ubuntu16.12+esm1"},{"binary_name":"libuutil1linux","binary_version":"0.7.5-1ubuntu16.12+esm1"},{"binary_name":"libzfs2linux","binary_version":"0.7.5-1ubuntu16.12+esm1"},{"binary_version":"0.7.5-1ubuntu16.12+esm1","binary_name":"libzpool2linux"},{"binary_version":"0.7.5-1ubuntu16.12+esm1","binary_name":"zfs-dkms"},{"binary_version":"0.7.5-1ubuntu16.12+esm1","binary_name":"zfs-dracut"},{"binary_name":"zfs-initramfs","binary_version":"0.7.5-1ubuntu16.12+esm1"},{"binary_name":"zfs-test","binary_version":"0.7.5-1ubuntu16.12+esm1"},{"binary_name":"zfs-zed","binary_version":"0.7.5-1ubuntu16.12+esm1"},{"binary_name":"zfsutils-linux","binary_version":"0.7.5-1ubuntu16.12+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49298.json"}},{"package":{"name":"zfs-linux","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/zfs-linux?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.3-1ubuntu12.17"}]}],"versions":["0.8.1-1ubuntu14","0.8.1-1ubuntu15","0.8.1-1ubuntu16","0.8.1-1ubuntu17","0.8.2-3ubuntu1","0.8.2-3ubuntu2","0.8.2-3ubuntu3","0.8.2-3ubuntu4","0.8.2-3ubuntu5","0.8.3-1ubuntu2","0.8.3-1ubuntu3","0.8.3-1ubuntu4","0.8.3-1ubuntu5","0.8.3-1ubuntu6","0.8.3-1ubuntu7","0.8.3-1ubuntu8","0.8.3-1ubuntu9","0.8.3-1ubuntu10","0.8.3-1ubuntu11","0.8.3-1ubuntu12","0.8.3-1ubuntu12.1","0.8.3-1ubuntu12.2","0.8.3-1ubuntu12.3","0.8.3-1ubuntu12.4","0.8.3-1ubuntu12.5","0.8.3-1ubuntu12.6","0.8.3-1ubuntu12.7","0.8.3-1ubuntu12.8","0.8.3-1ubuntu12.9","0.8.3-1ubuntu12.10","0.8.3-1ubuntu12.11","0.8.3-1ubuntu12.12","0.8.3-1ubuntu12.13","0.8.3-1ubuntu12.14","0.8.3-1ubuntu12.15","0.8.3-1ubuntu12.16"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.3-1ubuntu12.17","binary_name":"libnvpair1linux"},{"binary_name":"libuutil1linux","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"libzfs2linux","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"libzpool2linux","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"python3-pyzfs","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"spl","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"spl-dkms","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"zfs-dkms","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"zfs-dracut","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"zfs-initramfs","binary_version":"0.8.3-1ubuntu12.17"},{"binary_name":"zfs-test","binary_version":"0.8.3-1ubuntu12.17"},{"binary_version":"0.8.3-1ubuntu12.17","binary_name":"zfs-zed"},{"binary_version":"0.8.3-1ubuntu12.17","binary_name":"zfsutils-linux"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49298.json"}},{"package":{"name":"zfs-linux","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/zfs-linux?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.5-1ubuntu6~22.04.4"}]}],"versions":["2.0.6-1ubuntu2","2.0.6-1ubuntu3","2.1.2-1ubuntu1","2.1.2-1ubuntu2","2.1.2-1ubuntu3","2.1.4-0ubuntu0.1","2.1.5-1ubuntu6~22.04.1","2.1.5-1ubuntu6~22.04.2","2.1.5-1ubuntu6~22.04.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libnvpair3linux","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"libpam-zfs","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"libuutil3linux","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"libzfs4linux","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"libzfsbootenv1linux","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"libzpool5linux","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"python3-pyzfs","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_version":"2.1.5-1ubuntu6~22.04.4","binary_name":"zfs-dkms"},{"binary_name":"zfs-dracut","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"zfs-initramfs","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"zfs-test","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"zfs-zed","binary_version":"2.1.5-1ubuntu6~22.04.4"},{"binary_name":"zfsutils-linux","binary_version":"2.1.5-1ubuntu6~22.04.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49298.json"}},{"package":{"name":"zfs-linux","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/zfs-linux?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.2-0ubuntu2"}]}],"versions":["2.2.0~rc3-0ubuntu4","2.2.0-0ubuntu1","2.2.0-0ubuntu3","2.2.1-0ubuntu1","2.2.2-0ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnvpair3linux","binary_version":"2.2.2-0ubuntu2"},{"binary_name":"libpam-zfs","binary_version":"2.2.2-0ubuntu2"},{"binary_name":"libuutil3linux","binary_version":"2.2.2-0ubuntu2"},{"binary_name":"libzfs4linux","binary_version":"2.2.2-0ubuntu2"},{"binary_version":"2.2.2-0ubuntu2","binary_name":"libzfsbootenv1linux"},{"binary_version":"2.2.2-0ubuntu2","binary_name":"libzpool5linux"},{"binary_name":"python3-pyzfs","binary_version":"2.2.2-0ubuntu2"},{"binary_version":"2.2.2-0ubuntu2","binary_name":"zfs-dkms"},{"binary_version":"2.2.2-0ubuntu2","binary_name":"zfs-dracut"},{"binary_version":"2.2.2-0ubuntu2","binary_name":"zfs-initramfs"},{"binary_version":"2.2.2-0ubuntu2","binary_name":"zfs-test"},{"binary_version":"2.2.2-0ubuntu2","binary_name":"zfs-zed"},{"binary_name":"zfsutils-linux","binary_version":"2.2.2-0ubuntu2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-49298.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}