u-boot, u-boot-nezha — security advisory
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.
- Products
- u-boot, u-boot-nezha
- Affected 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, 2016.01+dfsg1-2ubuntu5+esm1, 2016.01+dfsg1-2ubuntu5+esm2, 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-1ubuntu3, 2019.07+dfsg-1ubuntu4~18.04.1, 2019.07+dfsg-1ubuntu5, 2019.07+dfsg-1ubuntu6, 2020.10+dfsg-1ubuntu0~18.04.2, 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, 2021.07+dfsg-0ubuntu10, 2021.07+dfsg-0ubuntu8, 2021.07+dfsg-0ubuntu9, 2021.09+git20211008.62392d3-0ubuntu1, 2022.01+dfsg-2ubuntu1, 2022.01+dfsg-2ubuntu2, 2022.01+dfsg-2ubuntu2.1, 2022.04+git20220405.7446a472-0ubuntu0.1, 2022.04+git20220405.7446a472-0ubuntu0.2, 2022.04+git20220405.7446a472-0ubuntu0.3, 2022.10-1089-g528ae9bc6c-0ubuntu2, 2024.01~rc1-190-g2e89b706f5-0ubuntu1, 2024.01~rc1-190-g2e89b706f5-0ubuntu2, 2024.01~rc1-190-g2e89b706f5-0ubuntu2.24.04.2
- Fixed versions
- 2020.10+dfsg-1ubuntu0~18.04.3, 2021.01+dfsg-3ubuntu0~20.04.5, 2022.01+dfsg-2ubuntu2.3, 2022.04+git20220405.7446a472-0ubuntu0.4
- CVEs
- CVE-2022-2347
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:00 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2022-2347
u-boot
Fixed versions: Not specified
u-boot
Fixed versions: 2020.10+dfsg-1ubuntu0~18.04.3
u-boot
Fixed versions: 2021.01+dfsg-3ubuntu0~20.04.5
u-boot
Fixed versions: 2022.01+dfsg-2ubuntu2.3
u-boot-nezha
Fixed versions: 2022.04+git20220405.7446a472-0ubuntu0.4
u-boot-nezha
Fixed versions: Not specified
Complete source record
{
"id": "4914b13780c246a4b60a9adce97d4efe3093eb678f94c01b284bd71eb18bd1e6",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-2347",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-2347",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2022-2347",
"products": [
{
"name": {
"value": "u-boot",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2015.04+dfsg1-2ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "2015.10+dfsg1-2",
"evidence": "/affected/0/versions"
},
{
"value": "2015.10+dfsg1-3",
"evidence": "/affected/0/versions"
},
{
"value": "2015.10+dfsg1-4",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-1",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-1ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-2ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-2ubuntu2",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-2ubuntu3",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-2ubuntu5",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-2ubuntu5+esm1",
"evidence": "/affected/0/versions"
},
{
"value": "2016.01+dfsg1-2ubuntu5+esm2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "u-boot",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2020.10+dfsg-1ubuntu0~18.04.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "2016.03+dfsg1-6ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "2018.07~rc3+dfsg1-0ubuntu1~18.04.1",
"evidence": "/affected/1/versions"
},
{
"value": "2018.07~rc3+dfsg1-0ubuntu2~18.04.1",
"evidence": "/affected/1/versions"
},
{
"value": "2018.07~rc3+dfsg1-0ubuntu3~18.04.1",
"evidence": "/affected/1/versions"
},
{
"value": "2019.07+dfsg-1ubuntu4~18.04.1",
"evidence": "/affected/1/versions"
},
{
"value": "2020.10+dfsg-1ubuntu0~18.04.2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "u-boot",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2021.01+dfsg-3ubuntu0~20.04.5",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "2019.07+dfsg-1ubuntu3",
"evidence": "/affected/2/versions"
},
{
"value": "2019.07+dfsg-1ubuntu5",
"evidence": "/affected/2/versions"
},
{
"value": "2019.07+dfsg-1ubuntu6",
"evidence": "/affected/2/versions"
},
{
"value": "2020.10+dfsg-1ubuntu0~20.04.2",
"evidence": "/affected/2/versions"
},
{
"value": "2021.01+dfsg-3ubuntu0~20.04.1",
"evidence": "/affected/2/versions"
},
{
"value": "2021.01+dfsg-3ubuntu0~20.04.3",
"evidence": "/affected/2/versions"
},
{
"value": "2021.01+dfsg-3ubuntu0~20.04.4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "u-boot",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2022.01+dfsg-2ubuntu2.3",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": [
{
"value": "2021.07+dfsg-0ubuntu8",
"evidence": "/affected/3/versions"
},
{
"value": "2021.07+dfsg-0ubuntu9",
"evidence": "/affected/3/versions"
},
{
"value": "2021.07+dfsg-0ubuntu10",
"evidence": "/affected/3/versions"
},
{
"value": "2022.01+dfsg-2ubuntu1",
"evidence": "/affected/3/versions"
},
{
"value": "2022.01+dfsg-2ubuntu2",
"evidence": "/affected/3/versions"
},
{
"value": "2022.01+dfsg-2ubuntu2.1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "u-boot-nezha",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2022.04+git20220405.7446a472-0ubuntu0.4",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": [
{
"value": "2021.09+git20211008.62392d3-0ubuntu1",
"evidence": "/affected/4/versions"
},
{
"value": "2022.04+git20220405.7446a472-0ubuntu0.1",
"evidence": "/affected/4/versions"
},
{
"value": "2022.04+git20220405.7446a472-0ubuntu0.2",
"evidence": "/affected/4/versions"
},
{
"value": "2022.04+git20220405.7446a472-0ubuntu0.3",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "u-boot-nezha",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2022.10-1089-g528ae9bc6c-0ubuntu2",
"evidence": "/affected/5/versions"
},
{
"value": "2024.01~rc1-190-g2e89b706f5-0ubuntu1",
"evidence": "/affected/5/versions"
},
{
"value": "2024.01~rc1-190-g2e89b706f5-0ubuntu2",
"evidence": "/affected/5/versions"
},
{
"value": "2024.01~rc1-190-g2e89b706f5-0ubuntu2.24.04.2",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2022-2347",
"aliases": [
"UBUNTU-CVE-2022-2347"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "u-boot",
"purl": "pkg:deb/ubuntu/u-boot?arch=source&distro=esm-infra-legacy%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"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",
"2016.01+dfsg1-2ubuntu5+esm1",
"2016.01+dfsg1-2ubuntu5+esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "u-boot",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-exynos",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-imx",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-omap",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-rockchip",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-rpi",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-sunxi",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-tegra",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
},
{
"binary_name": "u-boot-tools",
"binary_version": "2016.01+dfsg1-2ubuntu5+esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2020.10+dfsg-1ubuntu0~18.04.3"
}
]
}
],
"package": {
"name": "u-boot",
"purl": "pkg:deb/ubuntu/u-boot?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"
},
"ecosystem_specific": {
"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"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2021.01+dfsg-3ubuntu0~20.04.5"
}
]
}
],
"package": {
"name": "u-boot",
"purl": "pkg:deb/ubuntu/u-boot?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"
},
"ecosystem_specific": {
"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"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2022.01+dfsg-2ubuntu2.3"
}
]
}
],
"package": {
"name": "u-boot",
"purl": "pkg:deb/ubuntu/u-boot?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"
},
"ecosystem_specific": {
"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"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2022.04+git20220405.7446a472-0ubuntu0.4"
}
]
}
],
"package": {
"name": "u-boot-nezha",
"purl": "pkg:deb/ubuntu/u-boot-nezha?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2021.09+git20211008.62392d3-0ubuntu1",
"2022.04+git20220405.7446a472-0ubuntu0.1",
"2022.04+git20220405.7446a472-0ubuntu0.2",
"2022.04+git20220405.7446a472-0ubuntu0.3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "u-boot-nezha",
"binary_version": "2022.04+git20220405.7446a472-0ubuntu0.4"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "u-boot-nezha",
"purl": "pkg:deb/ubuntu/u-boot-nezha?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2022.10-1089-g528ae9bc6c-0ubuntu2",
"2024.01~rc1-190-g2e89b706f5-0ubuntu1",
"2024.01~rc1-190-g2e89b706f5-0ubuntu2",
"2024.01~rc1-190-g2e89b706f5-0ubuntu2.24.04.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2347.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "u-boot-nezha",
"binary_version": "2024.01~rc1-190-g2e89b706f5-0ubuntu2.24.04.2"
}
]
}
}
],
"modified": "2026-10-17T12:56:20.915665140Z",
"provider": "osv",
"upstream": [
"CVE-2022-2347"
],
"references": [
"https://ubuntu.com/security/CVE-2022-2347",
"https://www.openwall.com/lists/oss-security/2022/07/08/2",
"https://ubuntu.com/security/notices/USN-5764-1",
"https://ubuntu.com/security/notices/USN-6523-1",
"https://www.cve.org/CVERecord?id=CVE-2022-2347"
]
},
"related_cves": [
{
"value": "CVE-2022-2347",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355367,
"published_at": "2022-09-23T13:15:00+00:00"
}