Description Preview
CVE-2017-18221 affects the Linux kernel's memory locking mechanism. A vulnerability in the __munlock_pagevec function in mm/mlock.c in Linux kernel versions before 4.11.4 allows local users to cause a denial of service condition. The issue stems from improper input validation (CWE-20) where attackers can corrupt NR_MLOCK accounting through crafted use of mlockall and munlockall system calls. This corruption can lead to system instability or crashes, affecting the availability of the system.
Overview
This vulnerability affects the memory management subsystem of the Linux kernel, specifically the mechanism that handles locking pages in memory. The __munlock_pagevec function contains a flaw in how it tracks and accounts for locked memory pages. By manipulating the mlockall and munlockall system calls in a specific sequence, an attacker with local access can cause corruption in the NR_MLOCK counter, which tracks the number of locked pages. This corruption can lead to kernel instability, resource exhaustion, or complete system crashes. The vulnerability is particularly concerning in multi-user environments where local users should not be able to affect system stability.
Remediation
To address this vulnerability, system administrators should:
- Update the Linux kernel to version 4.11.4 or later which contains the fix.
- If running Ubuntu, apply the security updates referenced in USN-3655-1 and USN-3655-2.
- If immediate patching is not possible, consider implementing additional access controls to restrict who can use the mlockall/munlockall system calls.
- Monitor system logs for unusual memory-related errors or crashes that might indicate exploitation attempts.
- For systems where kernel updates are challenging, apply the specific patch referenced in the kernel commit (70feee0e1ef331b22cc51f383d532a0d043fbdcc).
References
- Linux Kernel Patch: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=70feee0e1ef331b22cc51f383d532a0d043fbdcc
- GitHub Mirror of Patch: https://github.com/torvalds/linux/commit/70feee0e1ef331b22cc51f383d532a0d043fbdcc
- Security Focus BID: http://www.securityfocus.com/bid/103321
- Ubuntu Security Notice USN-3655-1: https://usn.ubuntu.com/3655-1/
- Ubuntu Security Notice USN-3655-2: https://usn.ubuntu.com/3655-2/
- Linux Kernel 4.11.4 Changelog: https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.11.4
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Health Care & Social AssistanceHealth Care & Social Assistance
- Public AdministrationPublic Administration
- Educational ServicesEducational Services
- Finance and InsuranceFinance and Insurance
- Retail TradeRetail Trade
- UtilitiesUtilities
- Other Services (except Public Administration)Other Services (except Public Administration)
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Transportation & WarehousingTransportation & Warehousing
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- ConstructionConstruction
- InformationInformation
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- Wholesale TradeWholesale Trade
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- MiningMining