CVE-2022-39274: LoRaMac-node - Buffer Overflow
- Cve: CVE-2022-39274
- Name: LoRaMac-node - Buffer Overflow
- Description: LoRaMac-node is a reference implementation and documentation of a LoRa network node. Versions of LoRaMac-node prior to 4.7.0 are vulnerable to a buffer overflow. Improper size validation of the incoming radio frames can lead to an 65280-byte out-of-bounds write. The function `ProcessRadioRxDone` implicitly expects incoming radio frames to have at least a payload of one byte or more. An empty payload leads to a 1-byte out-of-bounds read of user controlled content when the payload buffer is reused. This allows an attacker to craft a FRAME_TYPE_PROPRIETARY frame with size -1 which results in an 65280-byte out-of-bounds memcopy likely with partially controlled attacker data. Corrupting a large part if the data section is likely to cause a DoS. If the large out-of-bounds write does not immediately crash the attacker may gain control over the execution due to now controlling large parts of the data section. Users are advised to upgrade either by updating their package or by manually applying the patch commit `e851b079`.
- Impact: Attackers can cause a denial of service or potentially execute arbitrary code by corrupting memory through out-of-bounds writes.
- Remediation: Update to version 4.7.0 or later, or manually apply patch commit e851b079.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02047
- Epss percentile: 0.81706
- Assignee: [email protected]
- Published at: 2022-10-06T18:16:16Z
- Age in days: 1510
- Modified at: 2026-06-17T04:58:02Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39274
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input |
| CWE-193 | Off-by-one Error |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Lora-net/LoRaMac-node/security/advisories/GHSA-7vv8-73pc-63c2 | nvd | 2022-10-06 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/Lora-net/LoRaMac-node/commit/e851b079c82ba1bcf3f4d291ab69a571b0bf458a | nvd | Patch, Third Party Advisory |
| https://github.com/Lora-net/LoRaMac-node/security/advisories/GHSA-7vv8-73pc-63c2 | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| semtech:loramac-node | < 4.7.0 | no | nvd | /v1/products/semtech/loramac-node |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Lora-net/LoRaMac-node | commit, fix, security_advisory | yes | /v1/repositories/Lora-net/LoRaMac-node |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-10-06
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts