NULL pointer dereference in Linux kernel - CVE-2018-1095

 

NULL pointer dereference in Linux kernel - CVE-2018-1095

Published: April 24, 2018 / Updated: April 25, 2018


Vulnerability identifier: #VU12112
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-1095
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote authenticated attacker to cause DoS condition on the target system.

The weakness exists in the ext4_xattr_check_entries function in fs/ext4/xattr.c due to improper validation of xattr sizes, which causes misinterpretation of a size as an error code. A remote attacker can submit a specially crafted ext4 image, trigger NULL pointer dereference and cause the service to crash.

Affected software

Linux kernel
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for IBM System z (Structure A)
Red Hat Enterprise Linux for ARM 64
Ubuntu
linux-kvm (Ubuntu package)
linux-hwe (Ubuntu package)
linux-azure (Ubuntu package)
linux (Ubuntu package)
linux-aws (Ubuntu package)
linux-oem (Ubuntu package)
linux-gcp (Ubuntu package)
kernel-alt (Red Hat package)

How to mitigate CVE-2018-1095

Update to version 4.15.16.

linux-kvm (Ubuntu package) - update to 4.15.0-1012.12
linux-hwe (Ubuntu package) - update to 4.15.0-24.26~16.04.1
linux-azure (Ubuntu package) - addressed in versions 4.15.0-1014.14~16.04.1, 4.15.0-1014.14
linux (Ubuntu package) - update to 4.15.0-24.26
linux-aws (Ubuntu package) - update to 4.15.0-1011.11
linux-oem (Ubuntu package) - update to 4.15.0-1009.12
linux-gcp (Ubuntu package) - update to 4.15.0-1010.10
kernel-alt (Red Hat package) - update to 4.14.0-115.el7a

External References

Related Security Bulletins