Linux Kernel Prior to 5.0.8 Vulnerable to Remote Code Execution.

Update: Added a link HERE to possible mitigation measures as recommended by Red Hat for a local privilege escalation security flaw found in the Reliable Datagram Sockets (RDS) module during 2010.

Update: TrendMicro has a blog post detailing how this vulnerability works in more detail and that the chances of it being exploited are “essentially zero.”

Linux machines running distributions powered by kernels prior to 5.0.8 are affected by a race condition vulnerability leading to a use after free, related to net namespace cleanup, exposing vulnerable systems to remote attacks.

Potential attackers could exploit the security flaw found in Linux kernel’s rds_tcp_kill_sock TCP/IP implementation in net/rds/tcp.c to trigger denial-of-service (DoS) states and to execute code remotely on vulnerable Linux machines.

The attacks can be launched with the help of specially crafted TCP packets sent to vulnerable Linux boxes which can trigger use-after-free errors and enable the attackers to execute arbitrary code on the target system.

The remotely exploitable vulnerability has been assigned a 8.1 high severity base score by NIST’s NVD, it is being tracked as CVE-2019-11815 (Red HatUbuntuSUSE, and Debian) and it could be abused by unauthenticated attackers without interaction from the user.

Linux Kernel Prior to 5.0.8 Vulnerable to Remote Code Execution

Linux Kernel Prior to 5.0.8 Vulnerable to Remote Code Execution

Luckily, because the attack complexity is high, the vulnerability received an exploitability score of 2.2 while the impact score is limited to 5.9.

According to CVSS 3.0 the impact metrics, the CVE-2019-11815 flaw comes with high confidentiality, integrity, and availability impact which makes it possible for would-be attackers to gain access to all resources, modify any files, and deny access to resources after successfully exploiting the vulnerability.

As detailed in the Common Weakness Enumeration (CWE) software security weaknesses database, an Use-After-Free flaw is caused by the attempt to reference memory after it was already been freed, causing the software “to crash, use unexpected values, or execute code.”

The Linux kernel developers issued a patch for the CVE-2019-11815 issue during late-March and fixed the flaw in the Linux kernel 5.0.8 version released on April 17.

 

 

Mitigation measures:

Seeing that the vulnerability affects only systems were the Reliable Datagram Sockets (RDS) module is present and loaded, users can check if their Linux-powered machine is impacted and apply the mitigation measures available as part of the CVE-2010-3904 advisory published by Red Hat.

Linux Kernel Prior to 5.0.8 Vulnerable to Remote Code Execution: MiTM vulnerabilities leading to code execution patched in APT

Back in late-January, a code execution flaw impacting the APT high-level package manager used by Debian, Ubuntu, and other related Linux distributions was also patched.

At the time, the vulnerability was described as a “content injection in http method,” it is tracked as CVE-2019-3462, and it leads to man-in-the-middle attacks once exploited, making it possible for attackers to use it later for “code execution with root privileges on the target machine.”

A very similar issue that could lead to arbitrary code execution was also discovered by Google Project Zero’s Jann Horn in December 2016, a flaw which got patched in the 1.0.9.8.4 and 1.4~beta2 versions of APT.


Related Posts:

Microsoft is building the full Linux kernel into Windows 10 as a way to pry developers away from their Apple MacBooks(Opens in a new browser tab)

Coding Resources Recommended by Tech Experts(Opens in a new browser tab)

RobbinHood ransomware takes down Baltimore City government networks(Opens in a new browser tab)

10 Visual Studio Code extensions for every developer(Opens in a new browser tab)

B0r0nt0K Ransomware Wants $75,000 Ransom, Infects Linux Servers(Opens in a new browser tab)

Remote code execution vulnerability discovered in WordPress(Opens in a new browser tab)

Java, PHP or .NET Which programming languages will earn you the most?(Opens in a new browser tab)

How to Spy on Competitors with Python & Data Studio(Opens in a new browser tab)

AI and Machine Learning Exploit, Deepfake Videos, Now Harder to Detect(Opens in a new browser tab)

Addressing the Biases Plaguing AI Algorithms(Opens in a new browser tab)

Doomsday Docker security hole uncovered(Opens in a new browser tab)

Connected through code, Choose Your Platform!

About the Author: Bernard Aybout

In the land of bytes and bits, a father of three sits,With a heart for tech and coding kits, in IT he never quits.At Magna's door, he took his stance, in Canada's wide expanse,At Karmax Heavy Stamping - Cosma's dance, he gave his career a chance.With a passion deep for teaching code, to the young minds he showed,The path where digital seeds are sowed, in critical thinking mode.But alas, not all was bright and fair, at Magna's lair, oh despair,Harassment, intimidation, a chilling air, made the workplace hard to bear.Management's maze and morale's dip, made our hero's spirit flip,In a demoralizing grip, his well-being began to slip. So he bid adieu to Magna's scene, from the division not so serene,Yet in tech, his interest keen, continues to inspire and convene.