Azure Linux Agent Information Disclosure Vulnerability (CVE-2019-0804)
The Azure Linux agent created swap files on resource disks in a way that left swap contents readable, so an authenticated attacker could view data in swap that is normally hidden. The disclosed data is kernel memory that a user-mode process should not be able to read.
Originally disclosed on Microsoft
Description
An information disclosure vulnerability exists in the way Azure WaLinuxAgent creates swap files on resource disks. An authenticated attacker who successfully exploited this vulnerability could view data in swap that is normally hidden. None of the Azure endorsed distros are vulnerable to this issue by default, but this can occur on customer customized or modified images when swapfile is created by the Azure linux agent and python3 is enabled as the default python version. This update addresses this vulnerability by preventing how the swap information is accessed.
FAQ
What type of information could be disclosed by this vulnerability? The type of information that could be disclosed if an attacker successfully exploited this vulnerability is Kernel memory read - unintentional read access to memory contents in kernel space from a user mode process.
Azure
Azure
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Azure Linux agent created the swap file with permissions that allowed ordinary users to read it, rather than restricting access to the system.
Impact
An authenticated attacker could read kernel memory contents that are normally hidden, but only on customer-customised images where the agent created the swap file and python3 was the default; Azure-endorsed distributions are not affected by default.
What the attacker needed
Authenticated local access; customised image, not default distro; python3 as default python
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a computer runs low on memory, it moves some data to disk in a file called swap. That data can include sensitive things from memory, so the swap file should only be readable by the system itself. Here the agent that sets up the machine made the swap file readable by other users, so someone already logged in could read memory contents they should never see.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.