Linux Kernel Race Condition
CVE-2016-5195 is a high-severity concurrent execution using shared resource with improper synchronization vulnerability in Ubuntu Linux from Canonical, with a CVSS 3.1 base score of 7.0 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. Affected Ubuntu Linux versions: 12.04; 14.04; 16.04, and others listed below. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on March 3, 2022, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Linux Kernel to 3.2.83 or 3.4.113 or 3.10.104 or 3.12.66, whichever matches your release line, or a later version.
- Update Pan-os to 7.0.14 or 7.1.8, whichever matches your release line, or a later version.
- CISA's required action: Apply updates per vendor instructions.
- Read the advisory on git.kernel.org for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Canonical | Ubuntu Linux | 12.04; 14.04; 16.04; 16.10 | Not stated |
| Linux | Linux Kernel | 2.6.22 up to, but not including, 3.2.83; 3.3 up to, but not including, 3.4.113; 3.5 up to, but not including, 3.10.104; 3.11 up to, but not including, 3.12.66; 3.13 up to, but not including, 3.16.38; 3.17 up to, but not including, 3.18.44; 3.19 up to, but not including, 4.1.35; 4.2 up to, but not including, 4.4.26; and 2 more ranges | 3.2.83, 3.4.113, 3.10.104, 3.12.66, 3.16.38, 3.18.44 |
| Red Hat | Enterprise Linux | 5; 6.0; 7.0 | Not stated |
| Red Hat | Enterprise Linux AUS | 6.2; 6.4; 6.5 | Not stated |
| Red Hat | Enterprise Linux EUS | 6.6; 6.7; 7.1 | Not stated |
| Red Hat | Enterprise Linux Long Life | 5.6; 5.9 | Not stated |
| Red Hat | Enterprise Linux TUS | 6.5 | Not stated |
| Debian | Debian Linux | 7.0; 8.0 | Not stated |
| Fedora Project | Fedora | 23; 24; 25 | Not stated |
| Palo Alto Networks | Pan-os | 5.1 up to, but not including, 7.0.14; 7.1.0 up to, but not including, 7.1.8 | 7.0.14, 7.1.8 |
| NetApp | Cloud Backup | Not specified in the record | Not stated |
| NetApp | Hci Storage Nodes | Not specified in the record | Not stated |
| NetApp | Oncommand Balance | Not specified in the record | Not stated |
| NetApp | Oncommand Performance Manager | Not specified in the record | Not stated |
| NetApp | Oncommand Unified Manager For Clustered Data Ontap | Not specified in the record | Not stated |
| NetApp | Ontap Select Deploy Administration Utility | Not specified in the record | Not stated |
| NetApp | Snapprotect | Not specified in the record | Not stated |
| NetApp | Solidfire | Not specified in the record | Not stated |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- HighSuccess depends on conditions outside the attacker's control.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.0 | High | NVD |
| CVSS 3.1 | 7.0 | High | CISA (ADP) |
| CVSS 2.0 | 7.2 | High | NVD |
Official description
Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect handling of a copy-on-write (COW) feature to write to a read-only memory mapping, as exploited in the wild in October 2016, aka "Dirty COW."
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Concurrent Execution using Shared Resource with Improper Synchronization
The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
How developers prevent this class of flaw
- In languages that support it, use synchronization primitives. Only wrap these around critical code to minimize the impact on performance.
- Use thread-safe capabilities such as the data access abstraction in Spring.
- Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring. Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Patches and release notes
- kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.8.3Release Notes
Third-party and government advisories
- fortiguard.com/advisory/FG-IR-16-063Third Party Advisory
- kb.juniper.net/InfoCenter/index?page=content&id=JSA10770Third Party Advisory
- kb.juniper.net/InfoCenter/index?page=content&id=JSA10774Third Party Advisory
- kb.juniper.net/InfoCenter/index?page=content&id=JSA10807Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.htmlThird Party Advisory
- packetstormsecurity.com/files/142151/Kernel-Live-Patch-Security-Notice-LSN-0021-1.htmlThird Party Advisory, VDB Entry
- rhn.redhat.com/errata/RHSA-2016-2098.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2105.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2106.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2107.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2110.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2118.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2120.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2124.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2016-2126.htmlThird Party Advisory
Technical write-ups (may include proof of concept)
- packetstormsecurity.com/files/139277/Kernel-Live-Patch-Security-Notice-LSN-0012-1.htmlExploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/139286/DirtyCow-Linux-Kernel-Race-Condition.htmlExploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/139287/DirtyCow-Local-Root-Proof-Of-Concept.htmlExploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/139922/Linux-Kernel-Dirty-COW-PTRACE_POKEDATA-Privilege-Escalation.htmlExploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/139923/Linux-Kernel-Dirty-COW-PTRACE_POKEDATA-Privilege-Escalation.htmlExploit, Third Party Advisory, VDB Entry
Other references
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00034.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00035.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00036.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00038.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00039.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00040.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00045.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00048.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00049.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00050.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00051.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00052.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00053.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00054.htmlMailing List
- lists.opensuse.org/opensuse-security-announce/2016-10/msg00055.htmlMailing List
Other vulnerabilities in Ubuntu Linux
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.5 High severity
- 7.1 High severity
- 7.8 High severity
Recent Concurrent Execution using Shared Resource with Improper Synchronization vulnerabilities
- 6.9 Medium severity
Linux Kernel Race Condition Exploited
Spotted an error? Tell us.