Meltdown Security Vulnerability Last Updated : 29 Sep, 2022 Comments Improve Suggest changes Like Article Like Report What is Meltdown security vulnerability? Meltdown, also known as Rogue Data Cache Load, is a security vulnerability that affects microprocessors of the types Intel x86, IBM Power, and ARM, by allowing some malicious processes to read memory, even without authorization. Exploiting race condition, this vulnerability allows a process to bypass the normal privilege check that prevents a process from accessing data belonging to other processes and the operating system which enables an unauthorized process to read data from any address that is mapped to the current process's memory space. Therefore, the data from an unauthorized address gets loaded into the CPU's cache, from where it can easily be execute by the processor, even if the privilege checker somehow identifies the rogue process trying to access other addresses in the RAM. It is also possible for the malicious process to effectively read any physical, kernel or any other process's mapped memory, even though it may not have the permission to do so. How does Meltdown exploitation work? Meltdown takes advantage of the following features inherent in CPU design: Virtual Memory Privilege levels Instruction pipelining and speculative execution CPU cache The above features provide the basis of the way all the modern CPUs work, and are considered secure. However, meltdown takes advantage of how they interact with each other. The following points explain the exploitation mechanism: The virtual address space of an operating system doesn't have privilege control checks in order to maximize efficiency. The control mechanism is entrusted with the CPU privilege control. Like every other process, the rogue process too, is assigned some address space here. If a process tries reading from unauthorized memory, the read instruction will be scheduled and pipelined by the CPU. Before the instruction is allowed to produce any output, the privilege check will complete elsewhere. In the case of an unauthorized read, the execution unit will be told that the instruction failed the privilege check. In the early stages of the instruction execution, the CPU's scheduler scheduled two events – a privilege check, and the first steps of executing the instruction. As part of that, while it was waiting for the privilege check to complete, the execution unit started by fetching the data. In the case of the rogue process, the data was from an unauthorized address, but it was still fetched by the memory controller during the initial stage of instruction execution, even if it was then discarded and abandoned when the privilege check completed and failed. Despite the instruction failure, the data has already been requested by the execution unit and fetched by the memory controller, in order to be ready to process it, and although the execution unit discards the data upon privilege check failure, the CPU cache was in fact updated as an automatic part of fetching the data from memory, in case the same data might be needed shortly a second time. At this point, Meltdown kicks in. By employing cache timing side channel attack, the rogue process can determine whether data from a specific address is held within the CPU cache, even if it cannot itself read the actual data from there. If data from some address has been cached by the CPU then a second instruction to read that address will use the CPU cache for the purpose (fast), if not then the CPU would have to request the data to be read from memory (slower). The rogue process can use this difference in timing to detect which of these took place, and whether the address was already in the CPU cache. Meltdown can use it combined with other features of the CPU instruction set to gain full access to all mapped memory. How have processor vendors addressed this vulnerability? Discovered in early 2018, the meltdown vulnerability caused a lot of panic throughout the processor making industry as well as several hardware/software firm. Therefore, to combat this crisis, Intel. AMD, Snapdraggon etc released distinct patches for their own products. However, all of them loosely implemented the same mitigation strategy, called Kernel page table isolation, which separates user-space and kernel-space page tables entirely. One set of page table includes both kernel-space and user-space addresses same as before, but it is only used when the system is running in kernel mode. The second set of page table for use in user mode contains a copy of user-space and a minimal set of kernel-space mappings that provides the information needed to enter or exit system calls, interrupts and exceptions. Although KPTI has enabled the device to be invulnerable to the meltdown issue, it has also resulted in performance loss, with some Intel processors losing upto 30% of their performance. However, Intel has assured it's consumers that the performance issued will be fixed over time. Several guidelines have also been published to help the end users to remain unaffected from the newly discovered vulnerability, which include regularly updating software, not clicking on unrecognized hyperlinks, and not downloading software or documents from untrusted sources. References:https://en.wikipedia.org/wiki/Meltdown_(security_vulnerability) https://meltdownattack.com/ Create Quiz Comment P ParthDutt Follow 0 Improve P ParthDutt Follow 0 Improve Article Tags : Misc Ethical Hacking system-programming secure-coding vulnerability +1 More Explore Introduction to Ethical HackingWhat is Hacktivism ? 11 min read The Hackers Methodology 4 min read Remote Access in Ethical Hacking 5 min read Information Gathering Tools for Kali Linux 5 min read ARIN in Ethical Hacking 3 min read Characteristics of Computer Networks 5 min read Foot Printing and ReconnaissanceWhat is DNS Footprinting? 6 min read Footprinting Through Search Engines 5 min read What is Whois Footprinting? 4 min read Footprinting Using Social Engineering Method 4 min read Scanning NetworksWhat is Credentialed Vulnerability Scan? 4 min read What are Scanning Attacks? 7 min read Malware Scan in Ethical Hacking 5 min read What is Running of a Malware Scan? 5 min read WAScan - web application security scanner in Kali Linux 2 min read What is TCP-ACK Scanning? 2 min read Port Scanning Techniques By Using Nmap 5 min read What is SYN Scanning? 3 min read What is UDP Scanning? 2 min read EnumerationCyber Security - Types of Enumeration 13 min read What is DNS Enumeration? 3 min read SMTP Enumeration 2 min read LDAP Enumeration 6 min read What is NTP Enumeration? 4 min read What is IPsec Enumeration? 4 min read What is NetBIOS Enumeration? 5 min read SNMP Enumeration 7 min read What is Security Testing in Enumeration? 4 min read System HackingWhat is System Hacking in Ethical Hacking? 2 min read What is Windows Hacking ? 6 min read Importance of Physical Security in Ethical Hacking 3 min read What is Non-Electronic Password Attack on a System? 3 min read Password Guessing Attack 5 min read Credential Stuffing in Ethical Hacking 2 min read Reverse Brute Force Attack in System Hacking 4 min read Brute Force Attack 2 min read What is a Default Password Attack Threat? 3 min read USB Drop Attack in System Hacking 5 min read What is Sniffing Attack in System Hacking? 4 min read How to Prevent Man In the Middle Attack? 5 min read How To Generate Rainbow Table Using WinRTGen? 4 min read What is Elcomsoft Distributed Password Recovery? 4 min read pwdump7 in System Hacking 3 min read FGDUMP in System Hacking 5 min read Password Auditing With L0phtcrack 7 Tool 5 min read What is Salted Password Hashing? 4 min read How to Defend Against Password Cracking of Systems? 6 min read How to Defend Against Wi-Fi Pineapple? 6 min read What is DLL Hijacking? 8 min read How to Prevent Privilege Escalation? 4 min read Malware AnalysisMost Popular Methods Used By Hackers to Spread Ransomware 3 min read What is Malvertising? Working and Examples 8 min read How to Find Trojan on Computers? 4 min read Malwares - Malicious Software 8 min read What is WannaCry and How does WannaCry ransomware works 5 min read Working of Stuxnet Virus 6 min read CryptoLocker Ransomware Attack 4 min read Storm Worm 3 min read What is Zeus Malware? 8 min read What is SQL Slammer Virus? 2 min read How to Install Trojan Virus on Any Computer? 5 min read Different Ways to Remove Trojan Horse Malware 5 min read How to Defend Against Botnets ? 5 min read What is Proxy Trojan? 3 min read What are Banking Trojans? 3 min read What is a Computer Virus? 9 min read Virus Hoax 2 min read Difference between Worms and Virus 5 min read Port Scanning Attack 3 min read What is System Integrity Check? 6 min read Code Emulation Technique For Computer Virus Detection 5 min read Heuristic Virus 6 min read How to Prevent Backdoor Attacks? 3 min read SniffingWhat are Active Sniffing Attacks? 6 min read What is Protocol Analyzer? 3 min read What is MAC Spoofing Attack? 5 min read How to Prevent MAC Flooding? 4 min read What is Port Stealing? 3 min read Dynamic Host Configuration Protocol (DHCP) 8 min read DHCP Starvation Attack 4 min read What is Rogue DHCP Server Attack? 4 min read What is ARP Spoofing Attack? 3 min read How to Prevent DNS Poisoning and Spoofing? 6 min read DNS Spoofing or DNS Cache poisoning 3 min read How to Detect Sniffer in Your Network? 5 min read Mitigation of DHCP Starvation Attack 5 min read Social EngineeringWhat is Social Engineering? Working, Types, Prevention and Impact 8 min read What is Insider Attack? 6 min read What is an Impersonation Attack? 6 min read What are Tailgating? 5 min read How Hackers Use Social Engineering to Get Passwords on Facebook? 4 min read Pretexting in Social Engineering 4 min read Credit Card Frauds 2 min read Active Social Engineering Defense (ASED) 6 min read Cyber Crime - Identity Theft 5 min read Penetration Testing - Software Engineering 9 min read Denial-of-ServiceDistributed Denial of Service DDoS attack 6 min read What are Bandwidth Attacks? 6 min read HTTP Flood Attack 9 min read ICMP Flood DDoS Attack 12 min read Ping Flood Attack 6 min read What is a Permanent DoS (PDoS) Attack? 6 min read What is Phlashing? 4 min read Session HijackingTCP/IP Hijacking 3 min read UDP Session Hijacking 3 min read What are Types of Session Hijacking ? 6 min read Difference Between Spoofing and Hijacking 3 min read Application Level Hijacking Using Proxy Hacking 3 min read Man-in-the-Browser Attack 5 min read DOM-Based Cookie Manipulation 6 min read What are Session Replay Attacks? 4 min read What is Cookie Hijacking? 9 min read Session Prediction Software Attack 3 min read What is Session Hijacking? 6 min read Types of Client-Side Attacks 3 min read Difference Between XSS and SQL Injection 4 min read How SYN cookies are used to preventing SYN Flood attack 6 min read IPSec Architecture 2 min read Like