{"id":"UBUNTU-CVE-2022-2347","details":"There exists an unchecked length field in UBoot. The U-Boot DFU implementation does not bound the length field in USB DFU download setup packets, and it does not verify that the transfer direction corresponds to the specified command. Consequently, if a physical attacker crafts a USB DFU download setup packet with a `wLength` greater than 4096 bytes, they can write beyond the heap-allocated request buffer.","modified":"2026-02-04T04:37:11.296641Z","published":"2022-09-23T13:15:00Z","related":["USN-5764-1","USN-6523-1"],"upstream":["CVE-2022-2347"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-2347"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2022/07/08/2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5764-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6523-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-2347"}],"affected":[{"package":{"name":"u-boot","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/u-boot@2016.01+dfsg1-2ubuntu5?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2015.04+dfsg1-2ubuntu1","2015.10+dfsg1-2","2015.10+dfsg1-3","2015.10+dfsg1-4","2016.01+dfsg1-1","2016.01+dfsg1-1ubuntu1","2016.01+dfsg1-2ubuntu1","2016.01+dfsg1-2ubuntu2","2016.01+dfsg1-2ubuntu3","2016.01+dfsg1-2ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_name":"u-boot","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-exynos","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-imx","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-omap","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-rockchip","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-rpi","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-sunxi","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-tegra","binary_version":"2016.01+dfsg1-2ubuntu5"},{"binary_name":"u-boot-tools","binary_version":"2016.01+dfsg1-2ubuntu5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"}},{"package":{"name":"u-boot","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/u-boot@2020.10+dfsg-1ubuntu0~18.04.3?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2020.10+dfsg-1ubuntu0~18.04.3"}]}],"versions":["2016.03+dfsg1-6ubuntu2","2018.07~rc3+dfsg1-0ubuntu1~18.04.1","2018.07~rc3+dfsg1-0ubuntu2~18.04.1","2018.07~rc3+dfsg1-0ubuntu3~18.04.1","2019.07+dfsg-1ubuntu4~18.04.1","2020.10+dfsg-1ubuntu0~18.04.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"u-boot","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-amlogic","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-exynos","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-imx","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-mvebu","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-omap","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-qcom","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-qemu","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-rockchip","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-rpi","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-sunxi","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-tegra","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"},{"binary_name":"u-boot-tools","binary_version":"2020.10+dfsg-1ubuntu0~18.04.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"}},{"package":{"name":"u-boot","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/u-boot@2021.01+dfsg-3ubuntu0~20.04.5?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2021.01+dfsg-3ubuntu0~20.04.5"}]}],"versions":["2019.07+dfsg-1ubuntu3","2019.07+dfsg-1ubuntu5","2019.07+dfsg-1ubuntu6","2020.10+dfsg-1ubuntu0~20.04.2","2021.01+dfsg-3ubuntu0~20.04.1","2021.01+dfsg-3ubuntu0~20.04.3","2021.01+dfsg-3ubuntu0~20.04.4"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"u-boot","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-amlogic","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-exynos","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-imx","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-mvebu","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-omap","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-qcom","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-qemu","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-rockchip","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-rpi","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-sifive","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-sunxi","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-tegra","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"},{"binary_name":"u-boot-tools","binary_version":"2021.01+dfsg-3ubuntu0~20.04.5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"}},{"package":{"name":"u-boot","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/u-boot@2022.01+dfsg-2ubuntu2.3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2022.01+dfsg-2ubuntu2.3"}]}],"versions":["2021.07+dfsg-0ubuntu8","2021.07+dfsg-0ubuntu9","2021.07+dfsg-0ubuntu10","2022.01+dfsg-2ubuntu1","2022.01+dfsg-2ubuntu2","2022.01+dfsg-2ubuntu2.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"u-boot","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-amlogic","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-exynos","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-imx","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-microchip","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-mvebu","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-omap","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-qcom","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-qemu","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-rockchip","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-rpi","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-sifive","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-sunxi","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-tegra","binary_version":"2022.01+dfsg-2ubuntu2.3"},{"binary_name":"u-boot-tools","binary_version":"2022.01+dfsg-2ubuntu2.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"}},{"package":{"name":"u-boot-nezha","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/u-boot-nezha@2022.04+git20220405.7446a472-0ubuntu0.4?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2022.04+git20220405.7446a472-0ubuntu0.4"}]}],"versions":["2021.09+git20211008.62392d3-0ubuntu1","2022.04+git20220405.7446a472-0ubuntu0.1","2022.04+git20220405.7446a472-0ubuntu0.2","2022.04+git20220405.7446a472-0ubuntu0.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"u-boot-nezha","binary_version":"2022.04+git20220405.7446a472-0ubuntu0.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"}},{"package":{"name":"u-boot-nezha","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/u-boot-nezha@2024.01~rc1-190-g2e89b706f5-0ubuntu2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2022.10-1089-g528ae9bc6c-0ubuntu2","2024.01~rc1-190-g2e89b706f5-0ubuntu1","2024.01~rc1-190-g2e89b706f5-0ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"u-boot-nezha","binary_version":"2024.01~rc1-190-g2e89b706f5-0ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}