patch: NULL pointer dereference in pch.c:intuit_diff_type() causes a crash
Published Feb 13, 2018
7.5
HIGHCVSS 3.0
EPSS 8.43%
Description
An issue was discovered in GNU patch through 2.7.6. There is a segmentation fault, associated with a NULL pointer dereference, leading to a denial of service in the intuit_diff_type function in pch.c, aka a "mangled rename" issue.
Affected products
No data.
Configuration 2
- 14.04
- 16.04
- 17.10
No data.
Red Hat Enterprise Linux 5
patch
Not affected
Red Hat Enterprise Linux 6
patch
Not affected
Red Hat Enterprise Linux 7
patch
Not affected
Red Hat Enterprise Linux 8
patch
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | patch | Not affected | n/a |
| Red Hat Enterprise Linux 6 | patch | Not affected | n/a |
| Red Hat Enterprise Linux 7 | patch | Not affected | n/a |
| Red Hat Enterprise Linux 8 | patch | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:N/I:N/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 (41 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 8.43% (0.08427) | 94.83th | v5 (v2026.06.15) |
| Sep 22, 2026 | 8.43% (0.08427) | 94.75th | v5 (v2026.06.15) |
| Sep 21, 2026 | 6.49% (0.06492) | 93.54th | v5 (v2026.06.15) |
| Sep 6, 2026 | 8.43% (0.08427) | 94.63th | v5 (v2026.06.15) |
| Sep 5, 2026 | 6.49% (0.06492) | 93.40th | v5 (v2026.06.15) |
| Aug 30, 2026 | 8.43% (0.08427) | 94.60th | v5 (v2026.06.15) |
| Aug 28, 2026 | 6.49% (0.06492) | 93.36th | v5 (v2026.06.15) |
| Aug 24, 2026 | 8.43% (0.08427) | 94.57th | v5 (v2026.06.15) |
| Aug 23, 2026 | 6.49% (0.06492) | 93.33th | v5 (v2026.06.15) |
| Jun 15, 2026 | 8.90% (0.08896) | 94.55th | v5 (v2026.06.15) |
| May 22, 2026 | 45.44% (0.45442) | 97.66th | v4 (v2025.03.14) |
| Dec 4, 2025 | 14.40% (0.14399) | 94.15th | v4 (v2025.03.14) |
| Nov 21, 2025 | 13.10% (0.13102) | 93.83th | v4 (v2025.03.14) |
| Nov 18, 2025 | 21.88% (0.21880) | 95.38th | v4 (v2025.03.14) |
| Sep 22, 2025 | 13.41% (0.13407) | 93.96th | v4 (v2025.03.14) |
| Sep 17, 2025 | 15.82% (0.15816) | 94.50th | v4 (v2025.03.14) |
| Sep 16, 2025 | 13.41% (0.13407) | 93.95th | v4 (v2025.03.14) |
| Sep 11, 2025 | 21.48% (0.21478) | 95.50th | v4 (v2025.03.14) |
| Sep 6, 2025 | 23.74% (0.23741) | 95.79th | v4 (v2025.03.14) |
| Sep 4, 2025 | 20.48% (0.20483) | 95.34th | v4 (v2025.03.14) |
| Aug 30, 2025 | 18.79% (0.18785) | 95.05th | v4 (v2025.03.14) |
| Apr 16, 2025 | 23.55% (0.23554) | 95.60th | v4 (v2025.03.14) |
| Apr 15, 2025 | 26.60% (0.26598) | 95.98th | v4 (v2025.03.14) |
| Mar 30, 2025 | 23.09% (0.23094) | 95.44th | v4 (v2025.03.14) |
| Mar 29, 2025 | 30.04% (0.30042) | 94.73th | v4 (v2025.03.14) |
| Mar 17, 2025 | 23.09% (0.23094) | 95.47th | v4 (v2025.03.14) |
| Jul 20, 2024 | 1.27% (0.01270) | 85.82th | v3 (v2023.03.01) |
| Nov 29, 2023 | 1.27% (0.01270) | 84.11th | v3 (v2023.03.01) |
| Aug 16, 2023 | 1.79% (0.01791) | 86.52th | v3 (v2023.03.01) |
| Jul 7, 2023 | 1.73% (0.01726) | 86.15th | v3 (v2023.03.01) |
| May 25, 2023 | 2.45% (0.02447) | 88.42th | v3 (v2023.03.01) |
| Mar 14, 2023 | 1.74% (0.01740) | 85.97th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.26% (0.01263) | 83.47th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.55% (0.01550) | 33.66th | v1 |
| Jan 6, 2022 | 1.55% (0.01550) | 32.96th | v1 |
| Sep 1, 2021 | 1.55% (0.01550) | 73.01th | v1 |
| Apr 14, 2021 | 1.55% (0.01550) | 0.00th | v1 |
References (9)
- http://www.securityfocus.com/bid/103044 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-6951 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1545046 Issue Tracking
- https://git.savannah.gnu.org/cgit/patch.git/commit/?id=f290f48a621867084884bfff87f8093c15195e6a x_refsource_MISCPatchVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-6951
- https://savannah.gnu.org/bugs/index.php?53132 x_refsource_MISCIssue TrackingVendor Advisory
- https://security.gentoo.org/glsa/201904-17 vendor-advisoryx_refsource_GENTOO
- https://usn.ubuntu.com/3624-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-6951
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/103044 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2018-6951 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1545046 | Issue Tracking | |
| https://git.savannah.gnu.org/cgit/patch.git/commit/?id=f290f48a621867084884bfff87f8093c15195e6a | x_refsource_MISCPatchVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-6951 | ||
| https://savannah.gnu.org/bugs/index.php?53132 | x_refsource_MISCIssue TrackingVendor Advisory | |
| https://security.gentoo.org/glsa/201904-17 | vendor-advisoryx_refsource_GENTOO | |
| https://usn.ubuntu.com/3624-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-6951 |
Change history (0)
No recorded changes yet.