nasm: Use-after-free in the detoken() function
Published Jun 29, 2017
7.8
HIGHCVSS 3.0
EPSS 2.95%
Description
In Netwide Assembler (NASM) 2.14rc0, there are multiple heap use after free vulnerabilities in the tool nasm. The related heap is allocated in the token() function and freed in the detoken() function (called by pp_getline()) - it is used again at multiple positions later that could cause multiple damages. For example, it causes a corrupted double-linked list in detoken(), a double free or corruption in delete_Token(), and an out-of-bounds write in detoken(). It has a high possibility to lead to a remote code execution attack.
Affected products
No data.
Configuration 1
- 2.14
Configuration 2
- 14.04
No data.
Red Hat Enterprise Linux 5
nasm
Not affected
Red Hat Enterprise Linux 6
nasm
Not affected
Red Hat Enterprise Linux 7
nasm
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | nasm | Not affected | n/a |
| Red Hat Enterprise Linux 6 | nasm | Not affected | n/a |
| Red Hat Enterprise Linux 7 | nasm | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (24 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.95% (0.02946) | 86.67th | v5 (v2026.06.15) |
| Sep 22, 2026 | 2.95% (0.02946) | 86.55th | v5 (v2026.06.15) |
| Sep 21, 2026 | 4.45% (0.04445) | 90.99th | v5 (v2026.06.15) |
| Sep 6, 2026 | 2.95% (0.02946) | 86.25th | v5 (v2026.06.15) |
| Sep 5, 2026 | 4.45% (0.04445) | 90.79th | v5 (v2026.06.15) |
| Aug 30, 2026 | 2.95% (0.02946) | 86.17th | v5 (v2026.06.15) |
| Aug 28, 2026 | 4.45% (0.04445) | 90.74th | v5 (v2026.06.15) |
| Aug 24, 2026 | 2.95% (0.02946) | 86.09th | v5 (v2026.06.15) |
| Aug 23, 2026 | 4.45% (0.04445) | 90.71th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.95% (0.02946) | 85.31th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.62% (0.00621) | 68.28th | v4 (v2025.03.14) |
| Jul 20, 2024 | 2.05% (0.02049) | 89.15th | v3 (v2023.03.01) |
| Nov 14, 2023 | 2.05% (0.02049) | 87.73th | v3 (v2023.03.01) |
| Jun 9, 2023 | 2.04% (0.02042) | 87.35th | v3 (v2023.03.01) |
| May 9, 2023 | 1.76% (0.01763) | 86.13th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.43% (0.01431) | 84.49th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.97% (0.04967) | 89.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.97% (0.04967) | 88.42th | v2 (v2022.01.01) |
| Mar 26, 2022 | 4.97% (0.04967) | 75.44th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.84% (0.04836) | 74.71th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.83% (0.01828) | 35.38th | v1 |
| Jan 6, 2022 | 1.83% (0.01828) | 34.69th | v1 |
| Sep 1, 2021 | 1.83% (0.01828) | 74.99th | v1 |
| Apr 14, 2021 | 1.83% (0.01828) | 0.00th | v1 |
References (7)
- https://access.redhat.com/security/cve/CVE-2017-10686 Vendor Advisory
- https://bugzilla.nasm.us/show_bug.cgi?id=3392414 x_refsource_MISCExploitIssue TrackingPatchThird Party AdvisoryVDB Entry
- https://bugzilla.redhat.com/show_bug.cgi?id=1472882 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2017-10686
- https://security.gentoo.org/glsa/201903-19 vendor-advisoryx_refsource_GENTOO
- https://usn.ubuntu.com/3694-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-10686
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2017-10686 | Vendor Advisory | |
| https://bugzilla.nasm.us/show_bug.cgi?id=3392414 | x_refsource_MISCExploitIssue TrackingPatchThird Party AdvisoryVDB Entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1472882 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-10686 | ||
| https://security.gentoo.org/glsa/201903-19 | vendor-advisoryx_refsource_GENTOO | |
| https://usn.ubuntu.com/3694-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2017-10686 |
Change history (0)
No recorded changes yet.